There are also a number of other function modules which could be used for uploading/downloding files between SAP and the presentation server.
* Download internal table to presentation server file(PC) DATA: ld_filename TYPE string, * Pre version 4.7 declaration e_file like rlgrap-filename. DATA: begin of it_datatab occurs 0, row(500) type c, end of it_datatab. call function 'GUI_DOWNLOAD' exporting filename = ld_filename filetype = 'ASC' tables data_tab = it_datatab[] exceptions file_open_error = 1 file_write_error = 2 others = 3.
* Download internal table to presentation server file(PC) * Separating fields/columns by a tab DATA: ld_filename TYPE string, * Pre version 4.7 declaration e_file like rlgrap-filename. DATA: begin of it_datatab occurs 0, col1(50) type c, col2(50) type c, col3(50) type c, * etc.... end of it_datatab. CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = ld_filename filetype = 'ASC' * APPEND = 'X' write_field_separator = 'X' * CONFIRM_OVERWRITE = 'X' TABLES data_tab = it_datatab[] EXCEPTIONS file_open_error = 1 file_write_error = 2 OTHERS = 3.