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

Calling Function module parameters Dynamically

Former Member
0 Likes
1,642

Hi Folks,

I am having a requirement where in user enters the Function module name in Selection screen and based on the FM name i need to generate its Importing,Exporting and TABLES parameters dynamically.

Once i get these parameters i need to call that FM with the above parameters and fetch the Data returned from that FM.

Let me know your views on how to achieve this.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,437

You can get the function module template using a function call. I have used that quite successfully in previous projects called 'FUNCTION_STUB_GENERATE'. That gives you the parameter lists etc. You then use the function module parameter table (not table parameters...) to build your parameters. It's actually quite easy.

Rich

4 REPLIES 4
Read only

muttepawar-2009
Active Participant
0 Likes
1,437
Read only

0 Likes
1,437

Hi Prashant,

The issue is we don't know which function module will be called at runtime. Based on user entry we need to get FM parameters.

Regards,

Read only

0 Likes
1,437

Bindu all you asking for is SE37 functionality where you enter FM name press F8 and then add your testing parameters and test. Why dont you reuse that?

Read only

Former Member
0 Likes
1,438

You can get the function module template using a function call. I have used that quite successfully in previous projects called 'FUNCTION_STUB_GENERATE'. That gives you the parameter lists etc. You then use the function module parameter table (not table parameters...) to build your parameters. It's actually quite easy.

Rich