ABAP - Keyword Documentation → ABAP Core Data Services (ABAP CDS) → ABAP CDS - Data Definitions → ABAP CDS - DDL for Data Definitions → ABAP CDS - Common DDL Elements → 

    CDS DDL - element_annot

    Syntax


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

    Description


    Specifies an annotation annotation as an element annotation for the following CDS entities:

    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 In the annotation definition, the 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.

    For annotation, both ABAP annotations and framework-specific annotations can be specified that are available for this scope. For framework-specific annotations, refer to Framework-Specific Annotation Syntax.

    The following is a list of the ABAP annotations for the current scope:

    Hints