Skip to Content
0
Former Member
Jun 30, 2009 at 06:50 AM

data object point to an object???

107 Views

Hello everyone,

I've a strange thought here, what is a data object which point to an object. Below is the example coding.

after creating the data object REF_ANY, what exactly it is?

CLASS MAN DEFINITION .

  PUBLIC SECTION.

    DATA AGE TYPE I.
    METHODS: CONSTRUCTOR.

  PROTECTED SECTION.

  PRIVATE SECTION.


ENDCLASS.


CLASS MAN IMPLEMENTATION.
  METHOD CONSTRUCTOR.
    AGE = 25.

  ENDMETHOD.


ENDCLASS.


DATA REF_ANY TYPE REF TO DATA.
FIELD-SYMBOLS: <FS_ANY> TYPE ANY.



START-OF-SELECTION.

  CREATE DATA REF_ANY TYPE REF TO MAN.

  ASSIGN REF_ANY->* TO <FS_ANY>.


  WRITE: 'KKK'.