Downloading Files To PC (Presentation Server) : Other Function Modules
Downloading Files To PC (Presentation Server) : Other Function Modules
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) * 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.