Skip to Content
0
Jan 10, 2012 at 08:31 PM

Adobe form printing and "LOCL" printer

1284 Views

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!