Application Development 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: 

How can I upload a pdf file into the application server?

Former Member
0 Kudos

Hi,

I have the otf data, which i have converted into pdf using the funcation module "Convert_otf". Is it possible to upload the pdf file in application server?

1 ACCEPTED SOLUTION

This link might help you.

3 REPLIES 3

This link might help you.

former_member201275
Active Contributor
0 Kudos

This can be done directly by using OPEN DATASET in BINARY MODE.

data: filename(30) type c value '\user\temp\file.pdf'.      " Application server path

open dataset filename for output in binary mode.

if sy-subrc = o.

loop at it_pdf_output.

transfer it_pdf_output-tdformat to filename.

transfer it_pdf_output-tdline to filename.

endif.

endloop.

former_member212124
Active Participant
0 Kudos

Dear Srishti,

Use OPEN DATASET in BINARY MODE.

following link will help you.

http://scn.sap.com/thread/1480434

thanks,

vidyasagar