on 12-16-2008 3:28 PM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.