ABAP Keyword Documentation → ABAP - Dictionary → ABAP CDS in ABAP Dictionary → ABAP CDS - Annotations → ABAP CDS - Specifying Annotations → ABAP CDS Metadata Extensions → ABAP CDS - DDL for Metadata Extensions → ABAP CDS - ANNOTATE ENTITY, VIEW
ABAP CDS - ANNOTATE, metadata_extension_annot
Other versions:
7.31 | 7.40 | 7.54
Syntax
... @annotation ...
Effect
Specifies an annotation annotation as a metadata extension annotation in front of the statement ANNOTATE. in the definition of a CDS metadata extension in ABAP CDS The character @ must be placed in front of the name annotation of the annotation. The annotation must be defined as a CDS object in a CDS annotation definition and the annotation definition annotation @Scope must be specified here using the value #ANNOTATE.
The table below shows the possible ABAP annotations that can be specified, and their meanings.
The first column of the table displays the (possibly structured) name annotation of an ABAP annotation and the second column displays its meaning. The third column shows the possible annotation values. The fourth column shows the value set implicitly for the annotation value if the annotation is not used explicitly. The fifth column displays the default value set implicitly for value in accordance with the annotation definition if the annotation is specified without a value. If nothing is specified for the annotation value, the annotation should be specified without a value.
Note
All other annotations specified in this place are extension annotations @entity_annot1, @entity_annot2, ..., @view_annot1, @view_annot2, ..., used to expand the entity.
Metadata Annotations
Defines how the CDS metadata extension is evaluated.
Annotation | Meaning | Annotation Values | Default Value if Not Used | Default Value if Used Without Value |
---|---|---|---|---|
Metadata.layer | Defines the priority of the metadata extension when it isevaluated by assignment to a layer.The #CUSTOMER layer has the highest priority. The #CORE layer has the lowest priority. | #CUSTOMER: Customer |
||
#PARTNER: Partner |
||||
#INDUSTRY: SAP Industry Solution |
||||
#LOCALIZATION: SAP Application Component |
||||
#CORE: ABAP Platform |
- | - |
This translation does not reflect the current version of the documentation.