cancel
Showing results for 
Search instead for 
Did you mean: 

flow of smart form

Former Member
0 Kudos

Hi all

We are using print program , functional module , include pgms in a smart forms. can any one explain how is the flow..?

Thanks

vivek

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Each Smartform generates a function module when it is activated.

To get this function modulr name you can execute the smartform. However, in the calling program or include we generally use the function module 'SSF_FUNCTION_MODULE_NAME' where you pass on the form name as exporting parameter and get the function module in a variable g_var as importing parameter.

Now the calling program/Include will call this function in variable g_var and pass on the parameters required for the form.

Based on these parameters passed, the form processing would be done and the printing occurs. After printing the control returns back to the program/include.

Hence to summarize the flow is

Print program>Include>Function Module.

Hope this is clear.

Award point if answer is helpful.

Former Member
0 Kudos

Thanks for the valued answer,

I think the functional module is inside the include program , Is it...?

Former Member
0 Kudos

Vivekkv,

The function module SSF_FUNCTION_MODULE_NAME basically takes the nice friendly name of your smartform (I.E. Z_Invoice_Smartform) and returns the name of the function module which actually is your form (I.E. /1AFEWB/SF00000055 ).

This value will be returned in a parameter from SSF_FUNCTION_MODULE NAME (say LV_FORM_FM). You will then call that variable like CALL FUNCTION LV_FORM_FM along with the parameters that the form will require.

Now, understanding that, the exact process will likely be

Print Program->More than likely an Include->

CALL FUNCTION SSF_FUNCTION_MODULE_NAME

Exporting

formname = 'Z_INVOICE_SMARTORM'

...

Importing

fm_name = LV_FORM_FM.

-> CALL FUNCTION LV_FORM_FM

IMPORTING

...

EXPORTING

...

.

Hope this helps. That's basically the exact process, but it will differ slightly here an there depending on the print program you are working with or what you decide to write...

Former Member
0 Kudos

each smartform on activation generates a function module. lets say F1 is FM name. you can get the FM name for the smartform though menubar navigation.

print program is from where your smartform is called. its called by calling the FM (say F1 here) for the smartform generated.

this FM will work as an interface between program and smartform. from the print program we pass the data to the smartform though the import , table parameter of the FM(here F1).

hope this helps

Former Member
0 Kudos

thanks for the answer