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

Passing parameters to a method getting called inside a method

jaigupta
Product and Topic Expert
Product and Topic Expert
0 Likes
524

Hi ,

I have a requirement where I am calling a standard SAP class 'CL_RSBK_DTP' method 'get_obj_ref_filter', using a custom program 'ZTEST', inside this method we have another method  'GET_OBJ_REF_DISPLAY'  getting called. So in short we have a method getting called inside a method.

Now my requirement is to pass the values to the parameter of method 'GET_OBJ_REF_DISPLAY' from my custom program 'ZTEST' by calling the method 'get_obj_ref_filter'. is there any way by which I can pass the value to the inside method or somehow overwrite default value of the parameter in the inside method,If so then please let me know.

Regards,

Jai

1 ACCEPTED SOLUTION
Read only

PeterJonker
Active Contributor
0 Likes
480

GET_OBJ_REF_DISPLAY is a public instance method, so why not call it direct ?

2 REPLIES 2
Read only

PeterJonker
Active Contributor
0 Likes
481

GET_OBJ_REF_DISPLAY is a public instance method, so why not call it direct ?

Read only

jaigupta
Product and Topic Expert
Product and Topic Expert
0 Likes
480

thanks peter for replying i have already resolved the issue but your answer is quite helpful.