Ansicht
Dokumentation

ABENCDS_F1_DCL_PFCG_MAPPING - CDS F1 DCL PFCG MAPPING

ABENCDS_F1_DCL_PFCG_MAPPING - CDS F1 DCL PFCG MAPPING

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

- DEFINE ROLE, Converting Field Values

Elements of CDS entities are linked with an authorization object in PFCG conditions in the CDS DCL. The access condition itself is generated from authorizations of the current user for the authorization object. Here, the value of CDS elements is supplied with field values of the authorizations. The following points should be noted.

Invalid Values

The field values of authorizations are saved as text fields with length 40. For the assignment, they must be convertible to the data type of the CDS elements:

  • The rules for lossless assignments must be followed. If this is not possible, the field value is ignored.
  • If an authorization requests a pattern comparison using a wildcard character (*), the data type of the CDS element must be character-like.

If a field value cannot be converted, the field value is ignored.

Notes

  • Field values that are ignored are, for example, field values that are longer than the CDS element or field values with a non-numeric content for a numeric CDS element.
  • If field values are ignored, CDS access control may block access completely.
  • Ignored field values are not logged, which means that they cannot be known to the system administrator or to the user.

Wildcard Characters

If a field value contains a wildcard character (*) as its final character, it is used to create a LIKE condition in which the wildcard character * is replaced by the SQL wildcard character %.

If the field value contains the SQL wildcard characters % and _, the escape character # is assigned to them implicitly. This means that CDS access control checks the characters % and _ in field values like regular characters.

Example

The field value "10%*" produces the condition LIKE '10#%%' ESCAPE '#'.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3542 Date: 20240426 Time: 145512     sap01-206 ( 46 ms )