cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe form printing and "LOCL" printer

fisher_li
Participant
0 Kudos

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!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

fisher_li
Participant
0 Kudos

Sri Hari,

My problem is that if the user default printer is "LOCL" , the function module FP_JOB_OPEN will return error code 4 (INTERNAL_ERROR ).

Thanks!

Fisher