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

Call OCX method

Former Member
0 Likes
525

Hi

I use OCX from ABAP and call method it works but nothing return and give after execute class dump

"Use of local result variables in a Control/Automation call"

           CALL METHOD CALL_METHOD
             EXPORTING
               method = 'MyMethod,'
               p1 = '1'
               p_count = 1
            IMPORTING
              result = im_result
             EXCEPTIONS
                 OTHERS = 1.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

Declare im_result as a global variable. Hope this helps.

Thanks,

Shambu

1 REPLY 1
Read only

Former Member
0 Likes
468

Declare im_result as a global variable. Hope this helps.

Thanks,

Shambu