ABAP CDS - Annotations
CDS annotation definitions can be used to create CDS annotations themselves as CDS objects. A definition of this type dictates precisely how it is specified as part of the annotation syntax in CDS source code. The naming and software component of an annotation definition also expresses the semantics of the annotation. This includes annotation documentation containing further information about the meaning of the annotation and its environment.
The metadata specified by annotations is saved internally when a CDS object is activated. The system class CL_DD_DDL_ANNOTATION_SERVICE is used to evaluate the annotations of CDS entities.
Only those annotations should be specified that have an annotation definition and the way they are specified should follow the rules in the definition. SAP delivers a set of predefined SAP annotations.
7.31 | 7.40 | 7.54
Currently, only those SAP annotations predefined by SAP should be used.
- Only those annotations should be specified in CDS source code for which an annotation definition exists.
- Partners and customers cannot currently define their own annotations.