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: 

How to Call Smartform from Custom Transaction.

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member

Hi Prasad,

To call a smartform from custom program

you can use fm SSF_FUNCTION_MODULE_NAME.

regards

ramesh

former_member387317
Active Contributor
0 Kudos

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

Former Member
0 Kudos

on click of Execute button..

call the Smartform's Function Module.

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!