Application Development and Automation 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: 
Read only

FUNCTION MODULE 'LF_FM_NAME'

Former Member
0 Likes
2,128

Hi every one,

I am unable to find the function module 'lf_fm_name'. When I enter the name in call function it is showing the message function 'lf_fm_name' not found. Please help me in this.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

former_member186660
Participant
0 Likes
1,309

Good day Aditya,

Usually in SAP the call to the smartform we determine dynamic

FM as each SM is assigned one but lf_fm_name is a variable not the name of the FM .

see e.g. below.

DATA: lf_fm_name            TYPE rs38l_fnam.

"Get Function module name for given smartform

           CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

             EXPORTING

               formname = 'SMARTFORMNAME'

             IMPORTING

               fm_name  = lf_fm_name.

           "Call Smartform function module.

           CALL FUNCTION lf_fm_name

             EXPORTING

               control_parameters = ssfctrlop

Regards,

Tumelo Modise

4 REPLIES 4
Read only

former_member186660
Participant
0 Likes
1,309

Good day Aditya,

Where did you find the function module name?

Regards,

Tumelo Modise

Read only

former_member186660
Participant
0 Likes
1,310

Good day Aditya,

Usually in SAP the call to the smartform we determine dynamic

FM as each SM is assigned one but lf_fm_name is a variable not the name of the FM .

see e.g. below.

DATA: lf_fm_name            TYPE rs38l_fnam.

"Get Function module name for given smartform

           CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

             EXPORTING

               formname = 'SMARTFORMNAME'

             IMPORTING

               fm_name  = lf_fm_name.

           "Call Smartform function module.

           CALL FUNCTION lf_fm_name

             EXPORTING

               control_parameters = ssfctrlop

Regards,

Tumelo Modise

Read only

0 Likes
1,309

thanks

Read only

0 Likes
1,309

Good day Aditya,

Was my info helpful or answered you question?

if so please mark as such.

Thanks in advanced,

Regards,

Tumelo Modise