Skip to Content
author's profile photo Former Member
Former Member

CONVERT_OTFSPOOLJOB_2_PDF

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!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 10:10 AM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 10:14 AM

    Hi,

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

    Regards,

    Jeswanth

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.