cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Report

Former Member
0 Kudos

hi all,

Can i Have Sample Progarm or Steps to upload and download the file from Presentation Server

thanks

himanshu Sharma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Make use of function modules 'GUI_DOWNLOAD' for dowloading a file into presentation server.

Data : v_download_path Type string( UR CHOICE),

p_v_data_tab type standard table of ( UR CHOICE)

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = v_download_path

filetype = 'ASC'

append = c_true

trunc_trailing_blanks = c_true

write_lf = c_true

TABLES

data_tab = p_v_data_tab

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

unknown_error = 6

header_not_allowed = 7

separator_not_allowed = 8

filesize_not_allowed = 9

header_too_long = 10

dp_error_create = 11

dp_error_send = 12

dp_error_write = 13

unknown_dp_error = 14

access_denied = 15

dp_out_of_memory = 16

disk_full = 17

dp_timeout = 18

file_not_found = 19

dataprovider_exception = 20

control_flush_error = 21

OTHERS = 22.

Similarly For uploading, you can make use of FM 'GUI_UPLOAD' .

Reward points if helpful.

Thanks,

Asha

Answers (1)

Answers (1)

Former Member
0 Kudos

its quite simple....

use 2 fm's thats it ... to upload the data use GUI_UPLOAD OR WS_UPLOAD based on ur version and

use GUI_DOWNLOAD or WS_DOWNLOAD to download the file on to the local system.