09-09-2014 9:45 AM
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?
09-09-2014 10:14 AM
09-09-2014 10:14 AM
09-09-2014 10:20 AM
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.
09-09-2014 10:23 AM
Dear Srishti,
Use OPEN DATASET in BINARY MODE.
following link will help you.
http://scn.sap.com/thread/1480434
thanks,
vidyasagar