ABAP Keyword Documentation → ABAP − Release-Specific Changes → Changes in Release 6.10
Type Concept in Release 6.10
1. Constants for structures and internal tables
2. New generic types for field symbols and formal parameters
3. Methods for displaying specific properties of types
4. Type objects for all friends of a class
Other versions: 7.31 | 7.40 | 7.54
Modification 1
Constants for structures and internal tables
You can now define constants for structures and internal tables, which in turn contain internal tables or references and strings. However, only the initial value is possible.
Example
types:
begin of STRUC,
ITAB type standard table of SPFLI with non-unique key CARRID,
MREF type ref to OBJECT,
end of STRUC.
constants:
CONST type STRUC value is initial.
Modification 2
New generic types for field symbols and formal parameters
The new generic types can be used for typing field symbols and parameters in subroutines, function modules, or methods. The following table shows their respective specification:
Gen. TypTypes
Modification 3
Methods for displaying specific properties of types
The class CL_ABAP_TYPEDESCR has been extended to include the method GET_PROPERTY, which provides information on specific type properties at runtime.
Modification 4
Type objects for all friends of a class
In the class CL_ABAP_CLASSDESCR, the method GET_FRIEND_TYPES has been introduced. It allows the type objects for all friends of a class to be determined at runtime.