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

How to get the Function Module for Smartforms?

Former Member
0 Likes
1,742

Hi,

To determine the name of the function module for the smartform is "SSF_FUNCTION_MODULE_NAME". All parameters for this function is added to code when U click Pattern then select CALL FUNCTION and type "SSF_FUNCTION_MODULE_NAME".

When it comes to Execute function module for the form(output) how do I get the list of parameters added to code when using Pattern. What should I type in CALL FUNCTION to get below;

CALL FUNCTION fm_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

output_options = wrk_outputoptions

  • USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

it_zpplot = it_zpplot

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Thanks,

Kishan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
831

hi u need to regenerate the Function module to see the latest insertions.

just click pattern and enter the function module name.

and click enter key.

all ur new additions will be visible.

satish

3 REPLIES 3
Read only

Former Member
0 Likes
832

hi u need to regenerate the Function module to see the latest insertions.

just click pattern and enter the function module name.

and click enter key.

all ur new additions will be visible.

satish

Read only

0 Likes
831

Hi,

In the smartform follow the link

Environment -> Function Module Name.

U can use this name in the driver program when calling pattern. After u get all the parameters just comment the Function Module name after CALL FUNCTION and add the function module name that u get using

call function 'SSF_FUNCTION_MODULE_NAME'

exporting formname = lf_formname

  • variant = ' '

  • direct_call = ' '

importing fm_name = lf_fm_name

exceptions no_form = 1

no_function_module = 2

others = 3.

Thanks,

Rashmi

Read only

0 Likes
831

Thanks Satish, your points awarded.