Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Copy object

Former Member
0 Likes
410

Hi,

I have two objects declared as follows.


 w_document          TYPE REF TO i_oi_document_proxy,
  w_handle            TYPE REF TO i_oi_spreadsheet,

I am calling a method of w_docuemnt


      CALL METHOD w_document->get_spreadsheet_interface
        IMPORTING
          sheet_interface = w_handle.

Inside the method "get_spreadsheet_interface" there is a code where its written


sheet_interface = me.

I dont want to call "get_spreadsheet_interface" due to some problem, want to replicate the same action as "sheet_interface = me."

Please let me know how to do this.

2 REPLIES 2
Read only

Former Member
0 Likes
382

Hi,

i don't know these classes, but if the assignment

sheet_interface = me

.is taking place within method of i_oi_document_proxy i would simply try

w_handle = w_document.

Hope this works!

Regards

Mark-André

Read only

Former Member
0 Likes
382

hi Swastik,

can u send the implementation part of the i_oi_document_proxy and i_oi_spreadsheet coz i think u have to do some changes in i_oi_document_proxy or i_oi_spreadsheet ...

Regards

Preetesh