Application Development 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: 

Calling Function module parameters Dynamically

0 Kudos

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

former_member182550
Active Contributor
0 Kudos

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

muttepawar-2009
Active Participant

0 Kudos

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,

0 Kudos

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?

former_member182550
Active Contributor
0 Kudos

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