Skip to Content
avatar image
Former Member

ADS_CREATE_PDF_SPOOLJOB retunring NO PDF Error

Hello All,

I have string and pass to ADS_CREATE_PDF_SPOOLJOB, But its returning error 'Not PDF'.

What I did is - I convert string into xstring as below

DATA :lv_buffer TYPE xstring,
lv_xstrpdf_ads TYPE xstring.
CLEAR : lv_buffer.

EXPORT my_data = lv_string_cc TO DATA BUFFER lv_buffer.
IMPORT my_data TO lv_xstrpdf_ads FROM DATA BUFFER lv_buffer IN CHAR-TO-HEX MODE.

and pass this lv_xstrpdf_asd to above FM.

My question is how to pass string to this FM so it will give me success.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 16 at 02:42 PM

    How did you manage to obtain a string of characters from a PDF file? Because a PDF is known to not be a text file ; a PDF is a binary file i.e. a string of bytes (XSTRING). So, your question should be how to get a PDF as a XSTRING (and then passing it to ADS_CREATE_PDF_SPOOLJOB is easy).

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sandra Rossi

      Hello Sandro,

      Yes, the problem was in the string. Now they(web Service) are sending xstring and that xstring is start with 2550444.

      Thank You very much.