Ansicht
Dokumentation

ABENCDS_ANNOTATION_ARRAY_ABEXA - CDS ANNOTATION ARRAY ABEXA

ABENCDS_ANNOTATION_ARRAY_ABEXA - CDS ANNOTATION ARRAY ABEXA

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

, Annotation Array

This example shows how an annotation array is evaluated in a piece of DDL source code.

Source Code

Execute

Description

The program reads the element annotations of the following CDS view:

An annotation array Consumption.filter.hierarchyBinding with two elements is assigned to the view field ID and each of the elements is structured using three subannotations type, value, and variableSequence.

The annotation array is a subannotation of a framework-specific annotation delivered by SAP and defined as follows in its annotation definition:

annotation Consumption
{

   ...

   filter
   {

      ...

      hierarchyBinding : array of
      {
          type: String(12) enum { ELEMENT;
                                  PARAMETER;
                                  CONSTANT;
                                  USER_INPUT;
                                  SYSTEM_FIELD; };
         value : String(512);
         variableSequence : Integer;
      };
   };
};

In the case of elements of the annotation array, square brackets are specified in the tabular list of the framework-specific annotations. These brackets are used as placeholders for the $ signs used in the internal metadata repository, which enclose the serial index of an array element.






Fill RESBD Structure from EBP Component Structure   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3501 Date: 20240420 Time: 100625     sap01-206 ( 34 ms )