Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

cl_gui_frontend_services=>file_save_dialog doesn't work for FIORI app

dubbaka
Participant
0 Kudos
1,669

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

1 REPLY 1

dubbaka
Participant
0 Kudos
1,214

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.