2022 Dec 20 5:34 PM
Hello Experts,
I have using cl_gui_frontend_services=>file_save_dialog to select Desktop path where my file would be saved. It works fine with GUI, but when we assign T-code to Fiori app it behaves different.
In Fiori app it does not Desk top path to save the file.
DATA: filename1 TYPE string,
lv_path TYPE string .
lv_path = 'C:\Documents and Settings\Desktop\'.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = 'Select File'
default_file_name = '.csv'
CHANGING
filename = filename1
path = lv_path
fullpath = filename.
IN GUI---->
In FIORI app it shows below popup ---->
How to avoid this Dialog ? the file gets downloaded in some path like Z:\filename... it doesn't show Desktop to select, please let me know if anyone knows any solution for this issue
2022 Dec 22 12:21 PM
I can use CALL FUNCTION 'F4_FILENAME', but using this function module in GUI I am able to select path and add my folder name as shown below. and File will get save in give folder.
If I perform same action in FIORI app it throw's an error stating that Test file does not exists as we have assigned Custom T-code to FIORI app will not behave same as GUI ?
Is there any way to get DESKTOP path from FIORI app and download the file at selected path.
I can not use ODATA Services because we not have License
Please help me if anyone have solution for this.