DATA: itab TYPE STANDARD TABLE OF string.
DATA: lv_file TYPE string VALUE 'c:\temp\test.txt'.
...
TRY.
cl_gui_frontend_services=>gui_download(
EXPORTING
filename = lv_file
filetype = 'DAT' " mögliche Filetypen: BIN, ASC, DAT, DBF, WK1, VSS, IBM
codepage = '4110' " UTF-8 Encoding: 4110, UTF-16 Big Endian : 4102, UTF-16 Little Endian : 4103.
CHANGING
data_tab = itab ).
CATCH cx_root INTO DATA(e_text).
MESSAGE e_text->get_text( ) TYPE 'I'.
ENDTRY.
Weiterführende Infos: Link