Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

smart forms function modules

hi all,

what is the function module to pass the print partamets in smartforms.

Former Member
Former Member replied

Hi,

data: gst_control_parameters type ssfctrlop,

gst_output_options type ssfcompop,

gt_job_output_info type ssfcrescl,

gt_output_options type ssfcresop.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = gc_formname

formname = gp_layut

importing

fm_name = gv_fm_name

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

gst_control_parameters-no_dialog = 'X'.

gst_control_parameters-getotf = 'X'.

gst_control_parameters-preview = 'X'. "Deactivate preview!

call function gv_fm_name

exporting

control_parameters = gst_control_parameters

output_options = gst_output_options

inv_header = gst_invheader

importing

job_output_info = gt_job_output_info

job_output_options = gt_output_options

tables

inv_data = gt_invitems

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4.

if sy-subrc 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

for more information on parameters of FM[http://help.sap.com/saphelp_nw2004s/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/frameset.htm]

Pls.reward if useful...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question