Ansicht
Dokumentation

ABENCDS_DCL_ROLE_COND_EXPR - CDS DCL ROLE COND EXPR

ABENCDS_DCL_ROLE_COND_EXPR - CDS DCL ROLE COND EXPR

CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- DEFINE ROLE, cds_cond

... condition
  | $[NOT$] cds_cond $[AND$|OR cds_cond$] ...



Effect

Formulates an access condition in the statement DEFINE ROLE in CDS DCL. The result of an access condition is true or false.

An access condition is either a single condition, condition, or an expression constructed from the Boolean operators NOT, AND, and OR in which parenthesized full conditions cds_cond using parentheses ( ... ) are possible. The Boolean operators work as follows:

  • NOT negates the result of the following condition. It cannot be used if cds_cond is one of the following conditions:
  • A PFCG condition pfcg_condition whose left side specifies CDS elements that themselves are assigned authorization fields on the right side after ASPECT pfcg_auth using mapped_field1, mapped_field2, ...

  • A self-defined aspect aspect.

  • An AND combination is true if both combined conditions are true.
  • An OR combination is true if at least one of the combined conditions is true.

The operator NOT is a stronger binding than AND, which itself is a strong binding than OR. This produces implicit parentheses, which can be overridden by explicit parentheses.

When an access condition is evaluated using CDS access control, only those lines are selected for which the access condition is true.

Notes

  • Inside of the NOT operator (also in nested subconditions), some constituents of access conditions cannot be used:
  • PFCG conditions with left side elements.

  • Self-defined aspects.

  • Literal conditions using optional elements.






CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 4499 Date: 20240424 Time: 045036     sap01-206 ( 37 ms )