ABAP Keyword Documentation → ABAP - Dictionary → Classic Objects in ABAP Dictionary → Data Types → Structures
Technical Attributes of Structures
A structure describes a structure type constructed from components and with the following technical attributes:
- Component name
- A component name cannot be the name of the pseudo component
table_line
reserved in ABAP.
- If a structure is inserted in a database table, however, the component names cannot have any of the reserved names that are not permitted in database tables.
- Component type
- For elementary components, the technical attributes ( built-in data type, length, and any fractional digits) are defined with reference to a data element for an elementary type in ABAP Dictionary or directly in the structure component. In the case of currency fields and quantity fields, a reference field must be specified for the unit.
- For reference-like components, the technical attributes are defined using a reference to a data element that describes a reference type or defined directly in the structure component. When specified directly, data references can be defined by reference to any data type in ABAP Dictionary or to the generic type DATA. Object references can be defined by reference to classes or interfaces in the class library or to the generic type OBJECT,
- Substructures are defined by reference to structures, database tables, or views in ABAP Dictionary. A substructure can be defined as a static box. In ABAP data objects declared with reference to the structure in ABAP Dictionary, a static box supports initial value sharing.
- Tabular components are defined by reference to a table type in ABAP Dictionary.
- Enhancement category
- Activation type
Other versions:
7.31 | 7.40 | 7.54
Notes
- In ABAP, the component names of structures are not strictly speaking a technical type attribute. They are listed here however to simplify the picture.
- The above rules for component names are checked strictly by ABAP Dictionary only for table fields of database tables and not for structures. Component names of structures can contain special characters (such as :) that prevent the component from being addressed in an ABAP program. For this reason, only those component names should be used that comply with the above rules.
- A substructure cannot be defined using a reference to a CDS entity, but it can be defined using a reference to a CDS database view of a CDS view.