Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  ABAP CDS in ABAP Dictionary 

ABAP CDS - Annotations

A CDS annotation uses metadata to enrich CDS objects. It can be specified in fixed annotation syntax for specific scopes of a CDS object, namely specific places in a piece of CDS source code.

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.

Other versions: 7.31 | 7.40 | 7.54


Note

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.

Continue

ABAP CDS - Definition of Annotations

ABAP CDS - Specifying Annotations

ABAP CDS - Evaluation of Annotations

ABAP CDS - SAP Annotations