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
463

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
406

i_oi_document_proxy is implemented by which class?

Solution can be create subclass of that implementing class and implement your new method.

You can then type-cast parent instance to child instance and call your method.

G@urav.

2 REPLIES 2
Read only

Former Member
0 Likes
407

i_oi_document_proxy is implemented by which class?

Solution can be create subclass of that implementing class and implement your new method.

You can then type-cast parent instance to child instance and call your method.

G@urav.

Read only

Former Member
0 Likes
406

Not Possible