SAP CDS F1 DEFINE ACCESSPOLICY



Get Example source ABAP code based on a different SAP table
  


• DEFINE ACCESSPOLICY ABAP_CDS_DCL_STATEMENT

ABAP_CDS_DCL - DEFINE ACCESSPOLICY

ABAP_SYNTAX
$[@access_policy_annot$]
$[DEFINE$] ACCESSPOLICY access_policy {
pfcg_mapping_definition $| aspect_definition
}

What does it do?
Defines a CDS access policy access_policy in the CDS DCL to be used as a medium 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 PFCG mapping DEFINE PFCG_MAPPING
A user-defined aspect DEFINE ASPECT.
DEFINE ACCESSPOLICY can be used to specify the optional annotation @access_policy_annot in front of the actual definition of the access policy.



Latest notes:

Separate DCL source code must be created for each CDS access policy.
The DCL source code of a CDS access policy must have the same name as this policy.
NON_V5_HINTS
ABAP_HINT_END