‎2006 Jun 20 4:26 PM
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.
‎2006 Jun 20 4: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.
‎2006 Jun 20 4:39 PM
‎2006 Jun 20 4: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
‎2006 Jun 20 4: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
‎2006 Jun 20 4: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.
‎2006 Jun 20 5:24 PM
vijay,
Thanks alot. Your idea is working fine.
if you donot mind please give your mail id
to
abapbalaji@yahoo.com
Thanks alot.
Balaji.
‎2006 Jun 20 5:36 PM
‎2006 Jun 20 5:43 PM
Hi,
if your Problem is solved please close the thread ,and try to reward for helpful answers.
Regards
vijay