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: 

CONVERT_OTFSPOOLJOB_2_PDF

Former Member
0 Kudos

Hi,

I´m using the function CONVERT_OTFSPOOLJOB_2_PDF to get the sppoljob, created by sapscript

in a pdf.

When I´m using the function GUI_DOWNLOAD afterwards, to get the pdf on my workstation, I´m using

the option 'BIN' and the filsize (got it from the function CONVERT_OTFSPOOLJOB_2_PDF).

I have the pdf now on my workstation and it´s working fine. but now my question...

I can see, that I have the whole pdf data in a string before using the GUI_DOWNLOAD function. That

means, that the data is not binary, it is in ASCII format, right? But when I´m using the function GUI_DOWNLOAD

in BIN mode then, is it going to be converted to binary and then written to a file? Because when I´m using the

GUI_DOWNLOAD in ASCII mode without filesize, it is not working. I can´t open the PDF afterwards...

the reason, why I´m asking: I want to use all this in a function, giving back the PDF value as binary in an exporting

parameter. So do I have to convert my pdf data, getting from CONVERT_OTFSPOOLJOB_2_PDF to binary? And how

do I have to do that?

thank you!

2 REPLIES 2

Former Member
0 Kudos

Hi,

Use this FM to convert string data to bin data,

SCMS_XSTRING_TO_BINARY

Examples u can find where used list of above FM.

Thanks and Regards,

Former Member
0 Kudos

Hi,

Write the Internal table holding the PDf data in application server and read from application server in Binary Mode..

Regards,

Jeswanth