10-23-2007 11:21 AM
Hi All,
I have developed Module pool Program , in module pool program i have save button and Execute button when i press save button whatever the data is there in transaction, it will store in the tables and when i click Execute button, it will generate a smartform.
so here my question is how to link with the smartform with Module Pool Program.
plese help me on this
Thanks in Advance.
Prasad.
10-23-2007 11:24 AM
Hi Prasad,
To call a smartform from custom program
you can use fm SSF_FUNCTION_MODULE_NAME.
regards
ramesh
10-23-2007 11:33 AM
in your Module pool program
in PBO event you can do like this...
either use
CALL FUNCTION '/1BCDWB/SF00003434'.
here /1BCDWB/SF00003434 is name of function module generated from smartform
==========================
or if you want to get the function module name dynamically then use below function module to get the FM name for your Smart form name.
SSF_FUNCTION_MODULE_NAME
and then use that from export parameter..
Hope it will solve your problem.
Thanks & Regards
ilesh 24x7
10-23-2007 11:34 AM
on click of Execute button..
call the Smartform's Function Module.
06-22-2012 7:27 PM
Guys, we don't try to hardcode FM names for SmartForms! Why? Because they are generated in each instance transported into and the same SmartForm can have different names, as a result! We always want to get the name of the FM into a variable with
SSF_FUNCTION_MODULE_NAME
Then, call the function specifying the field obtained into the variable, like 'call function lv_ssf_fm_name . . .'.
Suggested methods to call the SmartForm's FM directly are not a good answer!