cancel
Showing results for 
Search instead for 
Did you mean: 

to supress print dialog box

Former Member
0 Kudos

HI all,

here i kept my smartform in a loop.

i have to supress my print preview dialog box .

can any one please give me the parameters to pass

wtih regards

anand

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

To suppress dialog, fill the parameters of the smartforms function module :

    setcontrol_parameters-no_dialog = 'X'.
    setcontrol_parameters-preview=' '.

Don't forget to fill the output parameters (sample)

    output_options-tddest = <myprinter>.
    output_options-tdimmed = 'X'.
    output_options-tdnewid = 'X'.
    output_options-tddelete = 'X'.

[SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]

Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

please check this

In the SSF_OPEN function module,

Set the OUTPUT OPTIONS paramter TDDEST to your printer name.

Set the CONTROL PARAMETERS and control parameters as shown below,

control-preview = 'X'.

control-no_open = 'X'.

control-no_close = 'X'.

control-no_dialog = 'X'.

control-device = 'LP01'.

control_parameters-no_dialog = 'X'.

control_parameters-no_open = 'X'.

control_parameters-no_close = 'X'.

OUTPUT_OPTIONS-TDDEST = 'LP01'.

OUTPUT_OPTIONS-TDNOPRINT = 'X'.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

output_options = output_options

control_parameters = control

user_settings = ' '

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Best regards,

raam