
SAP annotations are CDS annotations created and delivered by SAP. Dependent on the evaluation, we distinguish two groups of SAP annotations: ABAP annotations and framework-specific annotations.
- ABAP annotations
ABAP annotations define technical and semantic attributes of a CDS object. They are evaluated when the object defined in the CDS source code is activated or when the object is used in the ABAP runtime environment. ABAP annotations can modify the behavior of ABAP SQL statements that access a CDS object.
- Framework-specific annotations
Framework-specific annotations define the technical and semantic properties of CDS objects that are required by specific software components, such as ODATA, UI, Analytics, and so on. They are evaluated by the frameworks of the corresponding software components using a suitable API and are not relevant for activations and the ABAP runtime environment.
Dependent on the scope, we distinguish five groups of annotations:
- Entity annotations
Annotations for CDS views and CDS view entities. Placed in front of the DEFINE VIEW statement or the DEFINE VIEW ENTITY statement.
- Element annotations
- Annotations for an element of the SELECT list of a CDS view. Placed in front of the element.
- Parameter annotations
- Annotations for a parameter of a CDS view. Placed In front of the parameter.
- Extension annotations
- Annotations for a CDS view extension. Placed in front of the EXTEND VIEW statement or the DEFINE VIEW ENTITY statement.
- Function annotations
- Annotations for a CDS table function. Placed in front of the DEFINE TABLE FUNCTION statement.
Important ABAP Annotations for CDS View Entities

For CDS view entities, the following important ABAP annotations exist:
- AbapCatalog.dataMaintenance
Can be used to restrict data preview for a CDS view entity.
- ABAPCatalog.viewEnhancementCategory
Specifies how the view entity is extended using CDS view extensions. A comma-separated list of values can be specified in the square brackets of the annotation array.
- AccessControl.authorizationCheck
Defines the implicit access control when ABAP SQL is used to access the CDS view.
- ObjectModel.usageType.<...>
Characterize CDS view entities with respect to their performance-relevant properties.
- AbapCatalog.entityBuffer.definitionAllowed
Can be used to enable or disable table buffering for a CDS view entity.