Skip to content

ABAP Keyword Documentation →  ABAP Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Authorizations →  ABAP CDS - DCL Statements →  ABAP CDS - DEFINE ACCESSPOLICY 

This functionality is not yet released and must not be used

ABAP CDS - DEFINE ACCESSPOLICY, aspect_annot

Other versions: 7.31 | 7.40 | 7.54

Syntax


... @annotation ...

Effect

Specifies an annotation annotation in the definition of an access policy before the definition of an aspect with DEFINE ASPECT. The character @ must be placed before the name annotation of the annotation. The table below shows the possible predefined annotations, which can be specified, and their meanings. All other annotations are user-defined annotations.

annotation value Default Value Meaning
EndUserText.label Character string with a maximum of 80 characters - Short text describing the aspect


Note

Aspects and access policies are not currently implemented, since there is no tool available for assigning assignment roles.


Example

Defines an aspect aspacmtst_country with the annotation @EndUserText.label whose text can, for example, be displayed by users on the interface.

@EndUserText.label: 'Country code of an employee'
aspect aspacmtst_country as
  SELECT FROM sacm_cds_snwd_ad { country }
    WHERE $User IN toemployee.login_name;