‎2008 Nov 11 11:55 PM
I get the otf files from smart form
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = V_LEN_IN
bin_file = otf_bin
TABLES
otf = i_otf
lines = t_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
OPEN DATASET p_file IN text mode encoding default FOR OUTPUT.
open dataset p_file in binary mode FOR OUTPUT.
CHECK SY-SUBRC IS INITIAL.
LOOP AT T_LINES.
TRANSFER T_LINES TO p_file. "I want to append every time to same file but this is replacing the file.
ENDLOOP.
CLOSE DATASET p_file.
NOW the problem is that the pdf's are not appending but only latest is getting downloading if I run the nast
‎2008 Nov 12 12:11 AM
First create PDF at Presentation server than upload at application server.
https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=uploadpdftoapplicationserver+&adv=false&sortby=cm_rnd_rankvalue
Edited by: Amit Gujargoud on Nov 12, 2008 1:12 AM
‎2008 Nov 12 12:41 AM
I am able write to the unix file.
but the problem is that I am only able to see the last pdf only..
but the size of pdf is like 2mb.
Any ideas why is that soo.?
‎2008 Nov 12 10:19 PM