I guess all of us often had to work with files in ABAP usign some of available FM like 'GUI_UPLOAD', 'GUI_DOWNLOAD' etc. When doing so sometimes there is a need to display in ALV the filename ...
...
form export_to_excel.
data: f_filename type string.
* create zcl_excel_worksheet object
data: lo_excel type ref to zcl_excel,
lo_worksheet type ref to zcl_excel_worksheet. ...
...
data: g_filename type string.
data: g_path type string.
"get path
parameters: p_path type string obligatory.
at selection-screen on value-request for p_path.
cl_gui_frontend_services=>file_save_dialog( ...
... "get_filename_from_path", its code is posted here. The method I'm posting bellow allows you to choose if during download of files from document you want to zip them all together into one ...
... to be zipped
I_FILENAME TYPE STRING -> filename used as name of file inside the zip container
I_SOLIX TYPE SOLIX_TAB OPTIONAL -> SOLIX_TAB to be zipped
I_SOLI TYPE SOLI_TAB OPTIONAL -> SOLI_TAB to ...