SAP CDS ANNO USAGE



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS - Specifying Annotations
CDS entities and CDS roles plus CDS annotation definitions themselves can (or must) be annotated with metadata using CDS annotations. This is done by specifying annotations directly in the associated CDS source code or in CDS metadata extensions. The annotations of CDS metadata extensions expand (or override) the annotations specified in the source code of a CDS entity.
An annotation is specified in fixed annotation syntax. This is then checked by the syntax check of the annotated source code. Only those annotations should be specified that are defined as a CDS object in a CDS annotation definition. An annotation definition specifies the precise way an annotation must be specified. ADT supports the specification of valid annotations (namely annotations with an annotation definition) by using colors in the source code and code completion. The syntax check for the definition of a CDS entity in DDL source code for CDS entities does not yet evaluate the annotation definitions. DDLA source code and DDLX source code also check annotations with respect to their annotation definitions.
CDS annotation syntax
CDS metadata extensions
Scopes for annotations



Latest notes:

CDS annotation definitions can currently only be made by SAP, which means that only SAP annotations should currently be specified in CDS source code.
The program ABAP_DOCU_CDS_ANNOS_OVERVIEW shows all SAP annotations and their properties.
NON_V5_HINTS
ABAP_HINT_END