on 07-04-2007 8:18 AM
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.
If usr01-spdb ne 'G'
I modify usr01-spdb before call function to print smartforms
Then, I modify usr01 to set spdb with initial value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If usr01-spdb not egal 'G'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sebastian,
first of all u check for user settings.....in TABLE USR01
Selecting user master records from USR01 table
SELECT SINGLE * FROM usr01
INTO ls_usr01
WHERE bname = sy-uname.
ls_outputoptions-tddest = ls_usr01-spld.
IF ls_usr01-spdb = 'H'.
ls_outputoptions-tdimmed = ' '. "Print immediatetly
ELSE.
ls_outputoptions-tdimmed = 'X'.
ENDIF.
and in control parameters use
ls_outputoptions-no_dialog = 'X'.
this will help u out..
please reward in case usefull...
regards,
prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you set this parameter....
<b>Print immediately PRIMM If you mark this field, the system sends the spool request to the Output device immediately after completing it.</b>
(Default values taken from user defaults).
<b>for more information foow this link.............</b>
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba56d35c111d1829f0000e829fbfe/content.htm
regards,
Ashok Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Yes you can do it programatically.
By writing the
send immediately parameter = 'X'.
u can achieve this.
<b>Reward points</b>
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.