‎2008 Apr 02 5:26 AM
Hi All,
I am calling some FM dynamically. All these Fm have been created by me. these function modules have one table parameter. I want these table data dynamicaally.
code
-
CALL FUNCTION fmname
tables t1 = lt_data.
I am getting dump. Can somebody tell me I am calling it correctly or not.
Regards,
Jeetu
‎2008 Apr 02 5:32 AM
Hi,
yaa u can call like this but the tables parameters t1 should exist in the function module and the table you are passing should be the same type as t1.
rgds,
bharat.
‎2008 Apr 02 5:32 AM
Hi,
yaa u can call like this but the tables parameters t1 should exist in the function module and the table you are passing should be the same type as t1.
rgds,
bharat.
‎2008 Apr 02 5:36 AM
Hi Bharat,
If I got your point correctly, t1 should be of type table of FM called. should I declare ti of type the table used by FM.
‎2008 Apr 02 5:40 AM
yaa.in ur case T1 should be of table type in the calling FM.
and in dynamic FM calling all the mandatory(importing,changing&tables) parameters should be provided.
rgds,
bharat.
‎2008 Apr 02 5:50 AM
Hi,
Still I am getting a dump of that "parameter missing in the FM call". The Fms do not have any import, export of changing parameters. These have only table parameters.
I declared t1 of type table specified in the table parameter of FM.
What is wrong now?
‎2008 Apr 02 5:54 AM
Hi Jeetu,
R u calling a Smartforms FM.
Reply..
Regards,
Morris Bond.
‎2008 Apr 02 5:55 AM
‎2008 Apr 02 5:59 AM
Hi All,
Now I am not getting the error since I changed the t1 to to exact table parameter name of FM which is going to be called dynamically. My doubt is if I have many FMs which are going to be called dynamically. How can I achieve this since in every FM the table parameter name is different.
‎2008 Apr 02 6:02 AM
Hi,
in such a case u cannot call like this.
in real time u'll not get a situation to call like this.
only we will call like this in case of smartforms(in that case the structure is same every time)
rgds,
bharat.