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.
Showing results for 
Search instead for 
Did you mean: 


Former Member
0 Kudos


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!


Former Member
0 Kudos


Use this FM to convert string data to bin data,


Examples u can find where used list of above FM.

Thanks and Regards,

Former Member
0 Kudos


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