01-11-2019 10:12 AM
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,
01-11-2019 12:59 PM
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
01-11-2019 10:56 AM
01-11-2019 11:29 AM
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,
01-13-2019 8:56 AM
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?
01-11-2019 12:59 PM
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