SAP CDS F1 ANNOTATE VIEW SELE LIST
Get Example source ABAP code based on a different SAP table
ABAP_CDS_DDL - ANNOTATE>, element_list> ABAP_SYNTAX ... @element_annot1>
$[@element_annot2>
...$]
element1$[;
@element_annot1>
$[@element_annot2>
...$]
element2;
...;$]>
What does it do?
Specifies annotations in a CDS metadata extension> introduced with ANNOTATE>> for the following:
Elements> in the element list> of an CDS abstract entity>
Elements> in the SELECT> list> of a CDS view entity>
Elements> in the SELECT> list> of a ABAP_CDS_V1_VIEW >
A semicolon-separated list element1>; element2>; ...; prefixed with annotations element_annot> can be specified in the curly brackets of the statement ANNOTATE> . There must be a semicolon after the last element of the list.
Each specified element element> should appear in the SELECT> list of the entity that is annotated using ANNOTATE>. If not, the syntax check produces a warning. An externally visible element name must be used. For ABAP_CDS_V1_VIEWS >, this is either the direct name, an alternative element name defined with AS>>, or the name defined in a name list>. For CDS view entities>, this is either the direct name, or an alternative element name defined with AS>>.
All elements of the SELECT> list can be used exactly once. Valid SAP annotations> @element_annot> can be specified before these as element annotations>. It is not possible here to specify annotations after the name of an element element> with the syntax @ < element_annot>.
At least one element annotation @element_annot> must be specified before each element of the list. However, the curly brackets of the ANNOTATE> statement can also be empty.
Latest notes:
An element must be specified directly with its name. It cannot be specified using names with multiple parts separated by periods, which can be used within the entity for its definition.
The program ABAP_DOCU_MDE_ANNOS>> shows all annotations that can be specified in metadata extensions.
NON_V5_HINTS
Element annotations can be specified here only if this is allowed in their annotation definition> using the annotation @MetadataExtension.usageAllowed:true>>.
An element that is not in the element list of the entity is handled like a regular element in the evaluation of annotations> with the class CL_DD_DDL_ANNOTATION_SERVICE>>.
ABAP_HINT_END