‎2007 Jul 05 6:29 PM
Hi Experts,
I would like to use the same function module multiple times but with different tables (with different structures) each time. How do I acheive this using perform statement with only one table parameter while calling the form OR optimize in any other way?
Thanks
UV
‎2007 Jul 05 6:47 PM
Hi,
Another way is to use Sub Routine.
perform ........ tables tab1.
perform ........ tables tab2.
Form .....
call function .........
Endform.
Regards,
Srilatha.
‎2007 Jul 05 6:41 PM
Hi,
May be try with Macro
define callfm.
....... call your fm and &1 " Here &1 table contains value table you are passing
........
end-of-definition.
callfm ztable.
callfm ytable.
callfm wtable.
aRs
‎2007 Jul 05 6:47 PM
Hi,
Another way is to use Sub Routine.
perform ........ tables tab1.
perform ........ tables tab2.
Form .....
call function .........
Endform.
Regards,
Srilatha.
‎2007 Jul 05 6:57 PM
Thanks Ars and Srilatha.
Srilatha,
In form, each table is referred to a structure. Now, this structure is different for each table. So, I think it may not work. Share your thoughts.
form table tab1 structure tab1
call function XYX
tables
data = tab1
..........
endform.
‎2007 Jul 05 7:03 PM
‎2007 Jul 05 9:09 PM
Thanks Seshu.
Field symbol seems close. But still the examples in the link are addressing tables of same structure not tables with different structures.
UV