SAP CDS F1 ELEMENT ANNOTATION



Get Example source ABAP code based on a different SAP table
  


NO •

ABAP_CDS_DDL - element_annot

ABAP_SYNTAX
... @annotation ...
... @ < annotation ...

What does it do?
Specifies an annotation annotation as an element annotation for the following CDS entities:
Elements in the SELECT list of a CDS view entity
Elements in the element list of a CDS projection view
Elements in an element list of a CDS table function
Elements in an element list of a CDS hierarchy
Elements in an element list of a CDS custom entity
Elements in an element list of an CDS abstract entity
Elements in the SELECT list of a ABAP_CDS_V1_VIEW
The elements of the SELECT list or element list of a CDS entity define the components of the result set of database accesses using SELECT and of structured data types in ABAP. The annotations enrich these components with additional semantic properties. The annotation should be defined as a CDS object in a CDS annotation definition and the annotation definition annotation @Scope should be specified using the value #ELEMENT .
Element annotations can be specified before and after the element:
In front of the element, the character @ must be placed before the name annotation of the annotation.
After the element, the characters @ < must be placed before the name annotation of the annotation. This notation is possible for all CDS entities listed above, except for CDS view entities. For CDS view entities, all annotations, including element annotations, are possible only in front of the element they refer to.