ABAP Keyword Documentation → ABAP - Release-Specific Changes → Changes in Release 4.6A
Named Includes in Release 4.6A
The statements INCLUDE STRUCTURE rec.
and INCLUDE TYPE type.
were enhanced so that symbolic accesses to groups of fields in structures are possible.
Other versions: 7.31 | 7.40 | 7.54
Variants
-
The addition
AS
name causes the components of a type or structure inserted withINCLUDE
to be accessed as a whole under the alias name.
-
The addition
RENAMING WITH SUFFIX suff
renames the component names by appending the IDsuff
. The structure type can then be included more than once.
Advantages
-
Flat</ structures and hierarchy views can be defined simultaneously.
-
There are no problems in alignment because the flat structure is automatically aligned so that it can carry the hierarhic structure.
-
Flat and hierarchic views use the same storage space, so no exchange between the different storage areas is necessary.
-
Existing structures can be extended compatibly and are completely integrated in the ABAP Dictionary.