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

Appedning pdf's to application server.

Former Member
0 Likes
424

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

3 REPLIES 3
Read only

Former Member
0 Likes
402

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

Read only

0 Likes
402

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.?

Read only

Former Member
0 Likes
402

done