Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Download spool to PDF document on application server


I am using function CONVERT_OTFSPOOLJOB_2_PDF to convert a sapscript spool and then downloading the internal table provided to a pdf file on the application server. The sapscript form contains company logos.

After transferring the file from the application server to PC and then opening the pdf document I get the following message:

"There was an error while trying to parse an image."

The PDF doc contains everything except the company logo.

I noticed that this works (i.e. company logo is present in the downloaded file) when I transfer the internal table that contains the PDF contents onto my PC using GUI_DOWNLOAD using mode 'BIN'. However, when I transfer the contents of the same internal

table to a file on the application server using abap statement:

'Open Dataset <filename> FOR OUTPUT IN BINARY MODE'

I get the problem described above.

I noticed that SAP has provided standard program RSTXPDFT4 to convert a spool and download it into a PC file. However is there a similar program that downloads a spool onto the application server? Perhaps there is a 'special' way in downloading PDF documents onto the application server?

I don't this problem with sapscripts that do not have a company logo.

Is there a certain restriction on 'Open Dataset'with transfering logos in PDF documents?

Any help would be greatly appreciated in the form of reward points.



Former Member
Not what you were looking for? View more on this topic or Ask a question