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

# problem in open dataset

Hi Friends,

by using CONVERT_OTFSPOOLJOB_2_PDF we can obtain IT_PDF internal table.with IT_PDF , we can download system usinsg WS_DOWNLOAD correctly.

But to send Application server, # is coming at the end

-


open dataset filename binary mode.

loop at it_pdf .

concatenate it_pdf-tdline it_pdf-format into text.

transfer text to filename.

endloop.

when we download this PDF file from application server , it is giving file error.

please suggest me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jun 20, 2006 at 03:58 PM

    Hi,

    Why are you using

    concatenate....

    open dataset filename binary mode.
    loop at it_pdf .
    <b>*concatenate it_pdf-tdline it_pdf-format into text.
    transfer it_pdf to file.</b>
    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 03:39 PM

    What is the error?

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 20, 2006 at 03:44 PM

    That # is a new_line character.

    Before you download it to appl server, you can replace it.

    loop at it_pdf.

    replace all occurances of CL_ABAP_CHAR_UTILITIES=>NEWLINE with '' in it_pdf-tdline.

    concatenate it_pdf-tdline it_pdf-format into text.

    transfer text to filename.

    endloop.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 20, 2006 at 03:45 PM

    open dataset filename <b>for output in</b> binary mode.

    loop at it_pdf .

    concatenate it_pdf-tdline it_pdf-format into text.

    transfer text to filename.

    endloop.

    are you disturbing the IT_PDF any where after your FM

    <b>CONVERT_OTFSPOOLJOB_2_PDF</b> call,

    please tell us what error you got.

    Regards

    vijay

    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.