Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  Classic Objects in ABAP Dictionary →  Data Types →  Data Elements 

Technical Attributes of Data Elements

A data element describes an elementary data type or a reference type with the following technical attributes:

  • Elementary type
A data element that describes an elementary type has a built-in data type from ABAP Dictionary, a length, and an (optional) number of fractional digits as its technical attributes. These technical attributes are defined either directly in the data element or are applied from a domain.
  • Reference type
A data element that describes a reference type is either a type for a data reference variable or for an object reference variable.
  • The static type for an object reference variable is either the generic type OBJECT or a global class or global interface from the class library.

Other versions: 7.31 | 7.40 | 7.54


Notes

  • When existing data elements are modified, all consumers of the data element are also affected. In particular, foreign keys can become inconsistent when used for fields of database tables, which makes conversions necessary.

  • Global reference types in ABAP Dictionary can be used to specify types in ABAP programs. They cannot, however, be used for fields of database tables or in CDS views.

Example

The data element S_CONN_ID takes its technical attributes (data type NUMC, length 4) from the domain S_CONN_ID. The data element S_CONN_ID has documentation and further texts that describe its semantics. It is used as a data type of many table fields that match these semantic attributes, such as the column CONNID of the database tables SPFLI, SBOOK, and SFLIGHT.