ABAP Keyword Documentation → ABAP − Release-Specific Changes → Changes in Release 4.6C
ABAP Objects in Release 4.6C
SAP has extended ABAP Objects 4.6 C to include the following components:
1. Run Time Type Identification
3. Declaring the %_FRIEND Addition
Other versions: 7.31 | 7.40 | 7.54
Modification 1
Run Time Type Identification
The APPLIES_TO_CLASS method defined in the class CL_ABAP_OBJECTDESCR checks whether or not a reference that has the
same type as the type object can point to an object of the class you specify. The class CL_ABAP_OBJECTDESCR is assigned to the
Run Time Type Identification (RTTI) area in the ABAP Runtime System.
Run Time Type Identification also lets you define a technical type name, although types without names can also be used for dynamic type declarations like
CREATE DATA ...
or ASSIGN ... CASTING
.
Modification 2
Local Types and Classes
Now you can also use local types of CLASS-POOLS
in the PRIVATE SECTION
of
the relevant global class, even though this class does not have the
FINAL
addition.
===CCDEF-Include ===CCIMP-Include ===CL-Include ===CCDEF
macro ===CCMAC
Modification 3
Declaring the %_FRIEND Addition
Adding the %_FRIEND addition to the DATA ... TYPE REF TO
statement lets you access all the methods and data elements of the
classclass
system class.