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: 

How to submit a PDF document to spool request by coding

Former Member
0 Kudos
361

Hi experts,

I have a pdf document that is stored somewhere in SAP system, for example MIME repository. So I can read this PDF document and get its content as an xstring.

I know SAP can print a smartform directly by calling its function module, or submit a program (list output) to SAP-SPOOL to generate a spool request.

But how can I submit a document or an xstring which presents the content of a document to spool request in order to print it out?

Or should I do it in some other way?

Any of the suggestion or hint will be help.

Thanks!

3 REPLIES 3

Former Member
0 Kudos
145

Hi,

Just see this link.

http://wiki.sdn.sap.com/wiki/display/Snippets/ConvertsspoolrequestintoPDFdocumentand+emails

Regards and Best wishes.

0 Kudos
145

Hi Kiran,

Thanks for reply.

But that seems not be an answer to my question.

My problem is to convert the PDF (or some other document) to spool request.

The above wiki link is the reversed way which is not what I want.

Former Member
0 Kudos
145

We have checked it with SAP and it seems no solution for printing a pdf doc by coding.

The final workaround is to use an virtual printer or some converter on PC to convert the pages in that pdf document into BMP files. Then upload those BMP files in t-code se78 and build a smartform to include them.

It is convenient to use the printing function of smartforms in ABAP coding.