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 description 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.
From now on, you define local classes in ===CCDEF-Include
and implement them in ===CCIMP-Include
(instead of in
===CL-Include
as before). You must define local value types in ===CCDEF
.
Moreover, the macro include ===CCMAC
allows you to define macros in global classes.
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.