cancel
Showing results for 
Search instead for 
Did you mean: 

FM ssf_function_module_name

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

see u r correct while generating smartform it generates its generates its own FM the name of that function module is system dependent , i.e. if u develop that smart in development system then suppose it generated FM with name /BCD/00023.

it may differ in quality system and it also difeers in production system so instead of giving that FM name we give smartform name to the FM ssf_function_module_name and we will import FM name and then proceed further

this is the use of the FM

if u have any further quiries my mail id mutyalasunilkumar@gmail.com

plzz reward if it is useful...

Answers (6)

Answers (6)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

SSF_FUNCTION_MODULE_NAME is used to get the function module name of the smartform dynamically.

In real time you will develop the smartform in development system.

but the generated function module names may vary from client to client and system to system.

So it is better to get the FM names by dynamically only.

Thanks

Bhanu

Former Member
0 Kudos

Hi,

This function module is used for to generate the function module for the smart form.

We will develop in the development system generally it will generate by number wise but it is not necessary that it have same number in production system so instead of number it will generate the name for the particular smartform so we will not get problem in the quality and production system.

Plzz reward points if it helps.

Former Member
0 Kudos

Hi,

For Every smartform,There is one Function Module (se37),.This FM, is GENERATED DYNAMICALLY,and the name is also dynamic. IT MEANS, that the FM name will Be DIFFERENT.in DEV, QA and PRD Server.Hence, we CANNOT HARDCODE the fm name.So, to fetch the FM name, given the smartform name,

this fm SSF_FUNCTION_MODULE_NAME is used. After that, we call the FM dynamically,with some specified/pre-defined format

Regards,

Omkaram.

Former Member
0 Kudos

if u don't use this FM u will error / dump in other servers

in dev ur activating ur SF then it creating a FM with soem XYZ.

but afterwards u r transporting to qty there it many not create with same name. so to find FM name for

that particular smartform u need to use SSF_function_module.

Madhavi