Skip to Content
0
Former Member
Jul 04, 2007 at 07:18 AM

Print immediately without screen dialog

53 Views

Hello,

I want to print a smartforms immediately without screen dialog.

The spool is created but not sent to the printer.

I call function module with following parameters :

ws_control-device = 'PRINTER'.

ws_control-no_dialog = 'X'.

ws_control-langu = 'F'.

ws_options-tdnoprev = 'X'.

ws_options-tdcovtitle = 'Releve'.

ws_options-tddest = 'LOCL'.

ws_options-tdnewid = 'X'.

ws_options-tdimmed = 'X'.

ws_options-tdcover = 'D'.

ws_options-tdcopies = '001'.

CALL FUNCTION lf_fm_name

EXPORTING

control_parameters = ws_control

output_options = ws_options

user_settings = 'X'

TABLES tbl_em = wt_em

EXCEPTIONS formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Thanks for your help.