You are on page 1of 8

Follow RSS feed Like

Community

Ask a Question Write a Blog Post Login

Former Member
January 7, 2014 1 minute read

Converting Print spool output in to a PDF in SAP


31 Likes 136,947 Views 17 Comments

When can this be used:

1)      Whenever one triggers a print output in SAP it either gets immediately printed or will be saved as bu er
in print spool.
2)      It might require that at some point user want to convert this output in to a PDF le .

SAP provides two ways in which a print output can be converted in to a PDF format.

1. Directly from print preview of output. Steps involved for the same is as below.

A.)   Goto the print preview of the document which needs to be converted in to pdf format.

B.)    Execute the command ‘PDF!’ in the command line as shown below. This will convert print preview
of output in to PDF which can be saved.

Converting Spool output into a PDF format

This section can be further divided in to two.

1. When the spool output contains less than 99 pages.


2. When the spool output contains more than 99 pages.

When spool output contains less than 99 pages:

When a spool has less than 99 pages we can run a SAP report RSTXPDFT4 in SE38 to convert the output to PDF. We
can also have a Z t-code made for the program made for the same .

steps:
a) Execute the program RSTXPDFT4 in SE38 by entering the spool number which is to be converted to PDF.
Follow RSS feed Like

b) Enter the path for the file to be saved.

c) You will receive success message once file is saved.

When spool output contains more than 99 pages: The above steps are only useful if number of pages is less than 99.
When the number of pages in spool is more than 99 in addition to RSTXPDFT4 program we need to run one additional
program RSTXPDFT5. Steps are as explained below.

STEP BY STEP DESCRIPTION

Step 1 :- Spool number identified which has more than 99 pages in it.

Step 2:- Run the program RSTXPDFT4 with the Spool number.

Step 3:- There will be message pop up “PDF convertion in Back ground?”. Click on Yes.

Step 4:- On clicking ‘Yes’ a batch job will be created and scheduled.

Step 5:- Go to sm37 and you can see the batch job running. Note down the spool number from the batch job.

Step 6:- Run the Second program( using se38) – RSTXPDFT5 and enter the Second spool number(the one got in
background job) in the selection screen and execute.

Step 7 :- On executing there will be pop up for entering the file name. Name the file and path for saving the file. The file
name extension would be .pdf

PDF File downloaded will be downloaded to the path specified in save as screen

Alert Moderator

Assigned tags

SD Sales |

Related Blog Posts

Multiple Packing List Overview


By raghavendra sai , Jun 10, 2019
Follow RSS feed Like
Handheld (legacy system ) to SAP Sales Process overview
By Former Member , Oct 29, 2013

SAP delivered: more than 30 new improvements in the area of SD Sales & Billing
By Carolin Hormuth , Oct 20, 2017

Related Questions

Output Issue for order con rmation


By Former Member , Oct 04, 2011

Output Using communication strategy


By Former Member , May 17, 2013

output is not going to spool


By Former Member , Sep 25, 2008

17 Comments

You must be Logged on to comment or reply to a post.

Pradeep Mani

January 8, 2014 at 11:33 am

Good one..

Like(0)

Former Member

July 16, 2014 at 4:45 pm

Thanks Very useful note

Like(0)

Santosh Sharma

July 17, 2014 at 1:48 pm

Thanks for sharing…very useful.


Like(0) Follow RSS feed Like

Former Member

September 21, 2014 at 9:19 pm

Not sure if any of you can help, I have the following problem

we are converting our purchase order in pdf format and the content of the le does not match what we see in
the print preview…

any idea of what the problem can be?

Like(0)

G Lakshmipathi

September 22, 2014 at 1:24 pm

Roberto Cotechino

Post your query in the following forum

Output Management

Like(0)

Phanikumar Valiveti

September 23, 2014 at 6:27 pm

Dear Roberto,

your technical guy is right person here, to get it resolved.

Phanikumar

Like(0)

Shareeq Hussain K M

March 31, 2015 at 1:34 pm

Dear Krishna Prasad

Thanks for sharing. My out put is more than 200 pages. It is around 5000 pages. RSTXPDFT5 is not creating the
PDF file. It is working fine if it is 199 pages.
Kindly help.
Follow RSS feed Like
Regards,

Shareeq

Like(0)

Former Member

September 25, 2015 at 9:42 am

Usefull information. Thanks for sharing.

Like(0)

John Vo

January 19, 2016 at 7:37 am

Noted this, very useful. Thanks.

Like(0)

Former Member

March 1, 2016 at 8:14 am

Hi Krishna Prasad,

I have tried the local drive as well as AL11 path. I’m getting the message “xxxxxx bytes transferred” but I do not
see any le in the path. Please let me know is there anything I missed.

Like(0)

Former Member

March 1, 2016 at 9:26 am

Another alternate way could be using LOCL printer as any PDF writer.

Like(0)
Follow RSS feed Like
Former Member

April 4, 2016 at 10:26 am

We had a P1 ticket for printing some HR documents for year closure.

The documents had to be sent to government o cials in a couple of hours and the user was not able to print via
SAP.

So next step was printing via Windows.

I tried above steps for converting to pdf but did not work.

Maybe it was print via SapScript.

Work around was exporting it to pdf

Specify the location.

In our case there were 1058 pages without extension

Easier way to change the extension to pdf is via CMD command “ren * *.pdf”

Later merge the pages into 1 pdf using


3rd party tools like adobe.

I used PDFSAM.

Hope this helps someone 🙂

Like(1)

Anitha Paul

March 6, 2017 at 10:55 pm

Good one! I followed the steps and it worked!


Like(0) Follow RSS feed Like

Chris Bermel

September 14, 2017 at 12:47 pm

Could someone tell me if they know if what is the magic number of pages to export the spool le to a PDF? The
job is cancelling when I run RSTXPDFT4 in back ground with the – “PDF data of length 95698316 created”

Like(0)

Former Member

October 10, 2017 at 8:24 pm

When I execute the command ‘PDF!’ in the command line, SAP will only convert the print preview of the quote
output to PDF if the quote is not longer than 1 page.  How would you print a quote containing multiple pages?
Many quotes exceed 1 page and I need to gure out how to convert them to PDF.

Like(0)

Maheshkumar Gattu

February 7, 2019 at 3:27 pm

How can i disable the print button when i use pdf! ?

Like(0)

John Higgins

February 27, 2020 at 8:53 pm

I would also be interested in how to disable.  The only workaround I’ve found is to go into the messages output
and type NONE as my printer.  I still get an output to use the PDF! method but no wasting of paper.

Like(0)
Follow RSS feedFind us on Like

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

You might also like