10-07-2008 10:14 AM
Hi
I have declared following variable:
data o type ref to I_OI_SPREADSHEET.
How to instantiate it?
10-07-2008 10:25 AM
Pls check this link
http://www.sap-img.com/abap/abap-object-oriented-spreadsheet-with-unlimited-power.htm
Regards
Madhan
10-07-2008 10:15 AM
10-07-2008 10:17 AM
Hi,
You need to use CREATE OBJECT o.
Check the below simplest example to know how it works
INTERFACE i1.
METHODS m1.
ENDINTERFACE.
CLASS c1 DEFINITION.
PUBLIC SECTION.
INTERFACES i1.
ENDCLASS.
CLASS c1 IMPLEMENTATION.
METHOD i1~m1.
...
ENDMETHOD.
ENDCLASS.
DATA: o1 TYPE REF TO c1,
o2 TYPE REF TO c1,
ir TYPE REF TO i1.
START-OF-SELECTION.
CREATE OBJECT o1.
o2 = o1.
ir = o1.
Cheers,
Kothand
10-07-2008 10:25 AM
Pls check this link
http://www.sap-img.com/abap/abap-object-oriented-spreadsheet-with-unlimited-power.htm
Regards
Madhan