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: 

Error while downloading the PDF file on presentation server

Former Member
0 Kudos

Hi all,

i have converted OTF file into PDF one and then downloading it to the presentation server . But it gives the error as follows

'Access to file denied' . Can anyone tell me what may be the issue ? Below is my code

DATA: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.

DATA: ws_bin_size TYPE i.

DATA: t_otf TYPE TABLE OF itcoo,

ws_filename TYPE string.

t_otf[] = wa_job_info-otfdata[].

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 132

IMPORTING

bin_filesize = ws_bin_size

TABLES

otf = t_otf

lines = i_lines.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

bin_filesize = ws_bin_size

filename = 'C:\ABC.PDF'

filetype = 'BIN'

TABLES

data_tab = i_lines.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sayeed,

You may not having the permissions to create files in 'C' folder. Change the path and try again.

1 REPLY 1

Former Member
0 Kudos

Hi Sayeed,

You may not having the permissions to create files in 'C' folder. Change the path and try again.