Skip to Content

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

Getting run time error while calling smartform

hi,

Am getting run time error "please maintain output device in your master data" while calling smart form.

I have hardcoded the printer name in output options as shown:-

outputoptions-xsfcmode = 'X' .

p_output_options-xsf = space .

p_output_options-xdfcmode = 'X' .

p_output_options-xdf = space .

p_output_options-tddest = 'LP01'.

p_output_options-tdnewid = 'X'.

p_output_options-tddelete = SPACE.

p_control_parameters-no_dialog = 'X' .

p_control_parameters-getotf = 'X' .

p_control_parameters-DEVICE = 'PRINTER'.

and then am calling function module

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = form_name

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = fm_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

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