cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM ssf_function_module_name

Former Member
0 Likes
7,698

HI,

what is use of FM ssf_function_module_name while creating smart form it generates its own function module but we will call the function module by getting its name fom the above FM instead of giving it directly .

can anybody explain it.

max points will be rewarded for good answers.

Thanks in advance.

View Entire Topic
Former Member
0 Likes

Hi,

When we are executing the smart forms through report, then we create the function module for that smart form by calling this FM "ssf_function_module_name " and passing the form name.

for eg:

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = ws_c_formname " form name

IMPORTING

fm_name = ws_c_fm_name " FM created for form

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

then call this FM and pass all the variables to the form from the report.

CALL FUNCTION ws_c_fm_name

EXPORTING

all the variables

IMPORTING

document_output_info = wa_document_output_info_p

job_output_info = wa_tab_otf_data

job_output_options = wa_job_output_options_p

TABLES

tables used in form

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

But when you are directly execting the smart form then, there is no need of calling this FM.

Regards,

Nithya