Skip to Content
-1
Dec 20, 2022 at 05:34 PM

cl_gui_frontend_services=>file_save_dialog doesn't work for FIORI app

447 Views Last edit Dec 21, 2022 at 09:40 AM 2 rev

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---->

image.png

In FIORI app it shows below popup ---->

image.png

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

image.png

Attachments

image.png (46.6 kB)
image.png (33.5 kB)
image.png (124.1 kB)