‎2007 Jul 16 11:45 AM
Hi,
I want to move some values from data from protected section of class into new table (tab) which is needed for FM 'download' to transfer data from sap to excel.
How can I do it?
‎2007 Jul 16 1:23 PM
If you want to do that from outside the instance ? In this case you'd have to implement a "get" method. Like
METHOD get_data EXPORTING E_MATNR type MATNR.
E_MATNR = ME->MATNR.
ENDMETHOD.
given that your class has a protected attribute MATNR.
You'd call that with
CALL METHOD myObject->get_data IMPORTING e_matnr = l_matnr.Hope that helps ...
Frank
‎2007 Jul 16 1:23 PM
If you want to do that from outside the instance ? In this case you'd have to implement a "get" method. Like
METHOD get_data EXPORTING E_MATNR type MATNR.
E_MATNR = ME->MATNR.
ENDMETHOD.
given that your class has a protected attribute MATNR.
You'd call that with
CALL METHOD myObject->get_data IMPORTING e_matnr = l_matnr.Hope that helps ...
Frank
‎2007 Jul 16 1:59 PM
‎2007 Jul 16 3:25 PM