SAP DDIC DATA ELEMENTS TECH



Get Example source ABAP code based on a different SAP table
  



ABAP_DDIC - Technical Properties of Data Elements
A data element describes an elementary data type or a reference type with the following technical properties:
Elementary type A data element that describes an elementary type has a built-in data type from the ABAP Dictionary, a length, and, if necessary, a number of decimal places as its technical properties. These technical properties are defined either directly in the data element or they are inherited 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 a data reference variable is either the generic type DATA, any existing data type from the ABAP Dictionary (including DDIC database tables or views), or a directly specified built-in data type.
The static type for an object reference variable is either the generic type OBJECT or an existing global class or a global interface from the class library .



Latest 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 DDIC database tables, which makes adjustments necessary.
Global reference types from the ABAP Dictionary can be used for typing in ABAP programs. They cannot, however, be used for fields of database tables or for elements of CDS entities.
NON_V5_HINTS
ABAP_HINT_END
VX_EXA_ONLY



Example ABAP Coding

The data element S_CONN_ID inherits its technical properties (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 properties, such as the column CONNID of the DDIC database tables SPFLI, SBOOK, and SFLIGHT.
ABAP_EXAMPLE_END