Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Data Definitions →  ABAP CDS - DDL for Data Definitions →  ABAP CDS - DEFINE HIERARCHY 

ABAP CDS - DEFINE HIERARCHY, hierarchy_annot

Other versions: 7.31 | 7.40 | 7.54

Syntax

... @annotation ...

Effect

Specifies an annotation annotation as a hierarchy annotation in front of the statement DEFINE HIERARCHY in the definition of a CDS hierarchy. The character @ must be placed directly in front of the name annotation of the annotation. The annotation should be defined as a CDS object in a CDS annotation definition and the annotation definition annotation @Scope should be specified here using the value #HIERARCHY.

The following tables show the possible ABAP annotations that can be specified and their meanings. The ABAP annotations are evaluated by the ABAP runtime environment for every CDS entity. Annotations with other identifiers are usually framework-specific annotations. These are not evaluated by the ABAP runtime environment but by other SAP frameworks instead.

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

Alongside the function annotations shown here, the globally valid entity annotations can also be specified for a CDS hierarchy.

AccessControl Annotations

Defines access control for the CDS hierarchy.

Annotation Meaning Annotation Values Default Value if Not Used Default Value if Used Without Value
AccessControl.authorizationCheck Defines implicit access control when ABAP SQL is used to access the CDS hierarchy #CHECK:
not yet implemented
#NOT_REQUIRED:
not yet implemented
#NOT_ALLOWED:
not yet implemented
#PRIVILEGED_ONLY:
not yet implemented
#CHECK #CHECK