Get Example source ABAP code based on a different SAP table
ABAP_CDS - Access Control ABAP CDS enables access control based on a data control language (CDS DCL)>. Access control in ABAP CDS further restricts the data returned from a CDS entity> in ABAP CDS. CDS access control is based on the following aspects:
CDS roles> defined using the CDS DCL statement DEFINE ROLE>>. A CDS role is not assigned to individual users and is evaluated for every user instead.
Access rules> defined for CDS entities> in a CDS role. Access rules> can define conditions, but also provide full access. In a CDS role, access rules can be inherited from another CDS entity or rule.
Access conditions> defined in an access rule for the elements of CDS entities >. Access conditions are based primarily on literal values, on classic authorizations> of the current users, or on data from other CDS entities defined by a selection with the current user (user-defined aspects >). If a CDS role with access rules is defined for a CDS entity>, the access conditions are evaluated implicitly in each AB_SQL > read, unless access control is switched off using the value #NOT_ALLOWED> for the annotation @AccessControl.authorizationCheck> or using the addition $[WITH$] PRIVILEGED ACCESS>> in AB-SQL . If access control is enabled, only that data is read that meets the access conditions. Every CDS role is defined in its own separate piece of DCL source code>. These pieces of DCL source code can only be edited in the ABAP Development Tools (ADT)>. BEGIN_SECTION VERSION 5 OUT DCL source code can also be displayed in Repository Browser> in ABAP Workbench>. END_SECTION VERSION 5 OUT The DCL source code of a CDS role is edited in a different editor than DDL>, DDLA>, and DDLX source code>. The ADT> documentation describes how the different types of source code are created.