Skip to content

ABAP Keyword Documentation →  ABAP - Release-Specific Changes →  Changes in Releases 4.xx →  Changes in Release 4.6C 

ABAP Objects in Release 4.6C

SAP has expanded ABAP Objects 4.6 C to include the following components:


1. Run Time Type Identification


2. Local types and classes


3. Specifying the addition %_FRIEND

Other versions: 7.31 | 7.40 | 7.54

Modification 1

Run Time Type Identification

The method APPLIES_TO_CLASS 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 passed class. 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 enables a technical type name to be defined, although types without names can also be used for dynamic type declarations like CREATE DATA ... or ASSIGN .... CASTING.

Modification 2

Local Types and Classes

Local CLASS-POOLS types can now be implemented in the PRIVATE SECTION of the global class in question too.

Local data types, classes, and interfaces are now defined in includes known as CCDEF and CCIMP includes instead of in the ===CL include. More information about using these includes can be found under Local Types for Global Classes.

Furthermore, the macro include ===CCMAC makes it possible to define macros in global classes.

Modification 3

Specifying the %_FRIEND Addition

Specifying the addition %_FRIEND of the statement DATA ... TYPE REF TO class makes it possible to access all methods and data elements of the system class class.