Showing results for 
Search instead for 
Did you mean: 

To Convert SAP Script o/p to Text File

Former Member
0 Kudos

Hi All,

I need to convert the script output to a text file.

Please let me know how to achieve this.


Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear TIA,

When you preview the script output on screen follow the below instruction to get same output in text file.

1. On Menu - GOTO - List Display.

2. It will change to normal list display.


4. Select unconverted and press enter.

5. Give the filename and path and click on generate

6. Your text file is created.

Enjoy SAP !


Former Member
0 Kudos

Hi Binita:

Try this..

Step I:

Do Print Preview of the SAP Document. Then do Goto>>>List Display

Step 2:

Then save it to a Local File.

If you want to do it programatically then you may have to create the spool first and then read the spool to convert it to a text file.Remember when you do a text file you will loose your formatting.Alternatively, there is a program RSTXPDFT4 to convert Spool to PDF.You issue the output, create the spool and then execute this program with the spool number and save it as a PDF File.

Hope this answers your question.

Former Member
0 Kudos

Dear Gisk,

Thanks to the replied query.It works to convert any file output to PDF file.But I wanted to do all this thru program and for that i needed function name to get spool request no.

If you can help me in this and also what function to be added in SAP Script program to send it to SAP Mail Box.

Thanks & waiting for your reply,


Active Contributor
0 Kudos