The following statement defines a structured type introduced by TYPES. The type name is preceded by BEGIN OF (which marks the beginning of the structured type definition) and END OF (the end of the definition).
The components - at least one must be defined - are listed in between.
Such structured type definitions are usually grouped together in a chained statement, i.e. TYPES is followed by a colon, and the components are separated by commas.
TYPES: BEGIN OF struc_type,
comp1 TYPE ...,
comp2 TYPE ...,
comp3 TYPE ...,
...,
END OF struc_type.
Alternatively, you can also use the following syntax. However, a chained statement may provide better readability.
TYPES BEGIN OF struc_type.
TYPES comp1 TYPE ... .
TYPES comp2 TYPE ... .
TYPES comp3 TYPE ... .
... .
TYPES END OF struc_type.
Serkan AKKAVAK
Computer Engineer BSc
Head of SAP & Software Department
Contact : serkurumsal@yandex.com

0 Comments