Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PDF document to SAP SPOOLER:

Former Member
0 Kudos

Hello everyone,

There are many many examples of objects outputted to PDF. ALV lists, grids, and also SAP Spooler.

Has anyone run across a way to send a pdf to SAP spooler to print out? I know that

Adobe Forms is currently doing this in some manor.

Is it possible to customize that functionality?

Thanks for any help on this.

Steve

5 REPLIES 5

Former Member
0 Kudos

you need to upload in binary format, convert to xstring, and then parse.

search for it in SCN for the parsing examples

this link may help as well.

Former Member
0 Kudos

I was able to read in the PDF document into a binary table. Is there a way to print this binary table to the spooler. I am trying to avoid using smartforms or sapscript. There has to be a way.

Former Member
0 Kudos

I was able to read in the PDF document into a binary table. Is there a way to print this binary table to the spooler. I am trying to avoid using smartforms or sapscript. There has to be a way.

0 Kudos

I am not an expert, but I hope it will help you:

1) SAP is able to convert ABAP lists and OTF documents (sapscript, smart form) into PDF binary, but it is not able to send this binary to printers. PDF1 device is a converter but I think it can't be used with printers. PDF conversion is only used to create files, attach PDF to mails, and so on.

2) SAP sends documents to printers by first converting them into PCL, PS, Prestige, etc. PDF is not used.

So I think that printing directly a PDF by sending it to a printer is not possible: it must be first converted to PCL, PS, etc. For that, you may use softwares like Ghostscript...

0 Kudos

I forgot to talk about the Adobe Interactive Forms: When ABAP generates a form, it's in fact Adobe document services (ADS) which generate the PDF document, and it may be stored in a SAP PDF spool. And we may print this PDF spool.

We could imagine that SAP is able to send a PDF binary to a printer. But I saw that ADS sends a PCL file with the PDF (both contain the same thing), and SAP may simply print the PCL when we ask to print the PDF spool.

So I still think there is no way to print directly a PDF binary from within SAP.