Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Access Control →  ABAP CDS - DCL Statements →  ABAP CDS - DEFINE ROLE →  ABAP CDS - DEFINE ROLE, condition 

ABAP CDS - 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 permitted:

  • Numeric Types
  • INT1, INT2, INT4, INT8
  • DEC
  • DF16_DEC, DF16_RAW, DECFLOAT16
  • DF34_DEC, DF34_RAW, DECFLOAT34
  • Character-Like Types
  • CHAR
  • SSTRING
  • 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 permitted 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.

Other versions: 7.31 | 7.40 | 7.54