SAP CDS F1 CUSTOM ELEMENT ANNO



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS_DDL - DEFINE CUSTOM ENTITY, element_annot

ABAP_SYNTAX
... @annotation ...

What does it do?
Specifies an annotation annotation in the definition of an element or CDS association of an CDS custom entity as element annotation. The character @ must be placed directly in front of the name annotation of the annotation. In a CDS custom entity, element annotations can only be specified in front of an element or a CDS association.
All element annotations described in topic CDS DDL - element_annot can be used to annotate elements and associations in a CDS custom entity.

ABAP_EXAMPLE_VX5
The following DDL source code shows a CDS custom entity with element annotations:
DDLS DEMO_CDS_CUSTOM_ENTITY_ELEM
The class CL_DEMO_CDS_CUSTOM_ENTITY_ELEM shows that the element annotations of the CDS custom entity can be evaluated using the class CL_DD_DDL_ANNOTATION_SERVICE. The result set contains not only the direct element annotations, but also derived annotations which are defined for the simple type used for typing.
ABAP_EXAMPLE_END