Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pdf file

Former Member
0 Likes
347

Hi,

I have converted a script into pdf file thru standard program 'RSTXPDFT4. Now I am saving it in the application server. Again I have read that pdf by storing it in the internal table and then downloading thru 'gui_download'. At last what I found is I could not open it.

when I am opening it with adobe reader, it says the file is not properly decoded.

I did as below to store it in application server.

open dataset p_file1 for output in binary mode.

if sy-subrc eq 0.

loop at pdf into wa_pdf.

transfer pdf-tdformat to p_file1.

transfer pdf-tdline to p_file1.

endloop.

else.

message e003(zmsg).

endif.

close dataset p_file1.

if sy-subrc ne 0.

message e004(zmsg).

endif.

What may be the reason. Please help. Its urgent.Error is occuring while storing in application server. Please provide exact method.

Rgds,

khadeer.

Edited by: khadeer basha on Jul 26, 2008 2:48 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
323

Khadeer,

just refer:

also caution:

While adding the attachment using the mail FM, you will have to speify the correct file extension.

Amit.

1 REPLY 1
Read only

Former Member
0 Likes
324

Khadeer,

just refer:

also caution:

While adding the attachment using the mail FM, you will have to speify the correct file extension.

Amit.