Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Access Control →  ABAP CDS - DCL Statements 

ABAP CDS - DEFINE ACCESSPOLICY

Other versions: 7.31 | 7.40 | 7.54

Syntax


[@access_policy_annot] 
[DEFINE] ACCESSPOLICY access_policy {
  pfcg_mapping_definition | generic_aspect_definition
}

Effect

Defines a CDS access policy access_policy in the CDS DCL to be used as a framework for further definitions.

An ACCESSPOLICY contains the definition of one of the following objects (which must have the same name as the access policy):

  • A generic aspect DEFINE GENERIC_ASPECT.

DEFINE ACCESSPOLICY can be used to specify the optional annotation @access_policy_annot in front of the actual definition of the access policy.


Notes

  • The DCL source code of a CDS access policy must have the same name as this policy.

Continue

ABAP CDS - DEFINE ACCESSPOLICY, access_policy_annot

ABAP CDS - DEFINE PFCG_MAPPING

ABAP CDS - DEFINE ASPECT