cancel
Showing results for 
Search instead for 
Did you mean: 

Why does he search in the user settings for the printer?

Former Member
0 Kudos

Hi, I created a smartform and added output and control options when the form is called.

I read that if I assign tddest and tdprinter, and leave user_settings blank, that SAP would not go to the user settings to see if a standard printer was declared.

But apparently, the program still goes to the user settings, as I keep getting the error: "Please maintain an output device in the user master data."

Now I know that I can go to SU01 and create a standard printer, but that is not what I want. I want to pass the printer in the program, so that there is no need to have a standard printer defined.

What am I missing?

I have these options:

output_options-tdimmed = 'X'.

output_options-tddest = v_printer_name.

output_options-tdprinter = v_printer_name.

output_options-tdcopies = 1. "Just print one copy

control_parameters-no_dialog = 'X'.

  • and in the call function

call function FM_NAME

EXPORTING

control_parameters = control_parameters

output_options = output_options

user_settings = ' '

THX!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

try this.

output_options-tdimmed = 'X'.

output_options-tddest = v_printer_name. <---- pass output device(4 char)

output_options-tdprinter = v_printer_name.<------remove this

output_options-tdcopies = 1. "Just print one copy

control_parameters-no_dialog = 'X'.

Regards

Madhu