Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A



I have declared following variable:

data o type ref to I_OI_SPREADSHEET.

How to instantiate it?

Former Member
Former Member replied

I_OI_SPREADSHEET is an interface and you can't instantiate interfaces.

You can only create an instance of a class that implements this interface and assign this instance to your variable. Or you ask another class for an instance, e.g.:

      CALL METHOD m_oi_proxy->get_spreadsheet_interface
                  IMPORTING sheet_interface = m_oi_spreadsheet.

regards, Karsten

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question