on 01-10-2012 8:31 PM
hey, the form experts,
I used the following ABAP codes to print an Adobe form.
DATA: IE_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS.
SELECT SINGLE SPLD INTO PRINTER_ID
FROM USR01
WHERE BNAME = SY-UNAME.
IE_OUTPUTPARAMS-DEVICE = 'PRINTER'.
IE_OUTPUTPARAMS-CONNECTION = 'ADS'.
IE_OUTPUTPARAMS-NODIALOG = 'X'.
IE_OUTPUTPARAMS-DEST = PRINTER_ID.
IE_OUTPUTPARAMS-COPIES = 1.
IE_OUTPUTPARAMS-REQDEL = 'X'.
Sets the output parameters and opens the spool job
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
IE_OUTPUTPARAMS = IE_OUTPUTPARAMS
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 4
OTHERS = 5.
My problem was that if users use "LOCL" as their SAP default printer in SU01,
the program did not work.
What values should I put into the IE_OUTPUTPARAMS if users use "LOCL" as their SAP default printer in SU01?
Thanks in advance!
HI friend,
For Adobe the default printer is ADS. So just try using that and see it will work.
If you still face queries please revert back to me i will help you.
Thanks,
Sri Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.