Ansicht
Dokumentation

ABENCDS_ANNOTATIONS_SCOPES - CDS ANNOTATIONS SCOPES

ABENCDS_ANNOTATIONS_SCOPES - CDS ANNOTATIONS SCOPES

Addresses (Business Address Services)   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Scopes for Annotations

Annotations can be specified in ABAP CDS source code for the following scopes by using annotation syntax. The scopes in which an annotation can be specified are determined with the @Scope annotation in the corresponding annotation definition.

in front of the statement DEFINE ANNOTATION

in front of the statements DEFINE VIEW ENTITY, DEFINE VIEW ENTITY AS PROJECTION, DEFINE TABLE FUNCTION, DEFINE HIERARCHY, DEFINE CUSTOM ENTITY, DEFINE ABSTRACT ENTITY, DEFINE VIEW.
  • View annotations for a CDS view. View annotations are subdivided into:

View entity annotations in front of the statement DEFINE VIEW ENTITY
Projection view annotations in front of the statement DEFINE VIEW ENTITY AS PROJECTION
DDIC-based view annotations in front of the statement DEFINE VIEW
Which view annotation can be used where is not governed by the @Scope annotation, but is documented for each DEFINE statement.

in front of the statement EXTEND VIEW or EXTEND VIEW ENTITY

in front of the statement DEFINE TABLE FUNCTION

in front of the statement DEFINE HIERARCHY

in front of and after the parameter

in front of and after the parameter

in front of the parameter

in front of the parameter

in front of and after the element

in front of and after the element

in front of the statement ANNOTATE

In the statement DEFINE SERVICE

in front of the statement DEFINE ROLE

in front of the statement DEFINE PFCG_MAPPING

The ABAP annotations that are possible for a scope are documented under ABAP annotations. For framework-specific annotations by SAP, see the tables in the document Framework-specific annotations.

Note

The annotations specified in the source code of a CDS entity can be annotated or overridden using the annotations of CDS metadata extensions.






CL_GUI_FRONTEND_SERVICES - Frontend Services   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 11699 Date: 20240424 Time: 183956     sap01-206 ( 77 ms )