Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to call dynamically a method of an OLE object.

$
0
0

Hello everyone.

 

If I call it with the explicit method it works.


CALL METHOD  of parent 'Workbooks' = child.    " This works

 

I want to call dynamically methods of OLE objects like this.

 

CALL METHOD  of parent lv_method = child.         " This doesn't work


But gives me a CX_SY_DYN_CALL_ILLEGAL_TYPE


The function module interface allows you to specify only

fields of a particular type under "VERB".

The field "LV_METHOD" specified here is a different

field type

 

SAP documentation says: The ABAP keyword CALL METHOD calls the method m of the object obj. m can be literal or a variable.


In the help there is addionally: The name of the method has to be specified in a character-type data object meth.

 

Thanks


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>