We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
Definition of a structured type struc_type. This is introduced using a TYPES statement with the addition BEGIN OF and must end with a TYPES statement with the addition END OF.
The following can be included between these TYPES statements:
Structured types must not be created without at least one component.
The TYPES statements within the statements BEGIN OF and END OF define the components of the structured type struc_type. If a component is a structured type or if a new structured type is defined within a structure using BEGIN OF and END OF, substructures are created. A structure with substructures is a nested structure.
A component of struc_type cannot be declared with reference to struc_type itself. If the name struc_type is specified after TYPE in the declaration of a component, a search is performed for the next type with this name in a higher visibility section, and used if found. If there is no other global type of this name, a syntax error occurs.
The statement INCLUDE defines components of the structured type struc_type by copying the components of a differently structured type or an existing structure at the same level.
The components of a structured type are addressed using the name struc_type and the name of the component, separated by the structure component selector (-).
This example defines two structured types, street_type and address_type. address_type
contains structured types as components. The definition of zipcode_type shows the access to substructures.