Ansicht
Dokumentation

ABENCDS_F1_DCL_COND_DATA_TYPES - CDS F1 DCL COND DATA TYPES

ABENCDS_F1_DCL_COND_DATA_TYPES - CDS F1 DCL COND DATA TYPES

General Data in Customer Master   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

- DEFINE ROLE, Data Types

The operand specified on the left side of a condition of an access rule of a CDS role cannot have all the built-in data types in ABAP Dictionary. Only the following types are allowed:

  • Numeric types
  • INT1, INT2, INT4, INT8

  • DEC

  • DF16_DEC, DF16_RAW, DECFLOAT16

  • DF34_DEC, DF34_RAW, DECFLOAT34

  • Character-like types
  • CHAR

  • SSTRING

  • Binary types
  • RAW

CDS elements of type RAW support the operators IS $[NOT$] NULL and IS $[NOT$] INITIAL and use as a part of the left side for a self-defined aspect or a PFCG mapping. Comparisons with a literal or an authorization field are not possible.
  • Special types
  • DATS, DATN, TIMS, TIMN, UTCLONG

  • NUMC

Any other data types generally produce a syntax error in the definition of a CDS role. In PFCG conditions, however, invalid data types are sometimes not detected until runtime.

In PFCG conditions, field values of authorizations are compared with CDS elements of the allowed data types and an appropriate conversion takes place.

Unlike DATS and TIMS, the types DATN and TIMN do not allow the LIKE operator to be used.






General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2971 Date: 20240418 Time: 033457     sap01-206 ( 43 ms )