SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
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.
Variants:
-
The addition AS name causes the components of a type or structure inserted with INCLUDE to be accessed as a whole under the alias name.
-
The addition RENAMING WITH SUFFIX suff renames the component names by appending the ID suff. 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.