cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform

Former Member
0 Kudos

I would like to know how to call smartform, is it same as sapscript, called by print program? In PO, i would like to check once click print preview, which print program called? Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

Usually, whenever you create smartform in back ground a function module is generated upon activation of smartform.

You can read the function module name, by using standard FM "SSF_FUNCTION_MODULE_NAME" or from smartforms tcode, goto change.. click environment --> function module name

Goto Editor and call this function module name.

Rgds,

Sairam

Former Member
0 Kudos

see below example

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = lf_formname

IMPORTING

fm_name = lf_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> gc_zero.

ENDIF.

  • call samrtform.

IF gt_final_ssf1[] IS NOT INITIAL.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = space

TABLES

gt_final_ssf1 = gt_final_ssf1

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Former Member
0 Kudos

Hi

Check this link, you will get all details about smartform: [Smartforms|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]

Regards,

Vishwa.