GUI_DOWNLOAD method of cl_gui_frontend_services to download data to SAP within ABAP reportThe cl_gui_frontend_services=>gui_download abap method is used to download a file from SAP to your PC. This is supposed to be the latest way of downloading files into SAP but to be honest it just executes the gui_download function module so using this should be the same as using the FM. Having said that I guess SAP could change this in the future and add differnt functionality to the method. Its also good that all functionality is grouped together within the cl_gui_frontend_services class. *Selecting a Directory
DATA: datatab TYPE table_of_strings,
ld_lines TYPE i,
ld_file TYPE string.
PARAMETERS: p_file(300) TYPE c.
ld_file = p_file.
APPEND 'Line1' to datatab.
APPEND 'Line2' to datatab.
APPEND 'Line3' to datatab.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = ld_file
CHANGING
data_tab = datatab
EXCEPTIONS
OTHERS = 1.
|
||||