on 04-22-2010 7:51 AM
Dear All,
my requirement is that the printing output to the inkjet printer.
till now we are using smartforms/script and printing output to laser/dmp printer.
can any body suggest how to code for inkjet printer and what all other factor to be consider.
if any sample code, pls provide same.
Thanks,
Radhashyam Sahoo
Hi,
Pls follow the steps.
1. Goto t-code SPAD. Give the o/p device number here, than display. (For eg PR01)
2. Here in Device type, You can specify your Device whichever you would like to use. Keep the other field as per your requirement.
In sapscript driver program, follow the coding:
data : s_itcpo type itcpo.
s_itcpo-TDDEST = 'PR01'. -----> Output device
s_itcpo-tdimmed = 'X'.
s_itcpo-tddelete = 'X'.
s_itcpo-tdnewid = 'X'.
* Display one dialog for user. Then enable several SAP-Script to prt
call function 'OPEN_FORM'
exporting
device = 'PRINTER'
dialog = 'X'
language = sy-langu
options = s_itcpo ----- > +Printing parameter+
importing
language = sy-langu
exceptions
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
others = 6.
Same thing you can define for smart forms before calling a smartform.
Is it helpful?
Regrads,
Lokesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.