sapdev logo background
sapdev logo sapdev logo
Comments

SAP NEWS-46C-OBJECTS documentation, setup help and example usage



Return to SAP documentation index



ABAP Objects in Release 4.6C

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

1 Run Time Type Identification
2 Local Types and Classes
3 Declaring the %_FRIEND Addition


ABAP_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


ABAP_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.


ABAP_MODIFICATION_3 Declaring the %_FRIEND Addition
Adding the %_FRIEND addition to the DATA ... TYPE REF TO class statement lets you access all the methods and data elements of the class system class.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




NEWS-46C
NEWS-46C-RUNTIME




comments powered by Disqus