cancel
Showing results for 
Search instead for 
Did you mean: 

Download a file without opening new window

HelenK
Employee
Employee
0 Kudos

Hi everybody,

I need to save a file to local PC into a certain predefined file in such a way that user does not get any pop-ups or new windows - i.e. 'in background'.

I have tried 'FileDownload' - this get file content displayed in new window and if saved is to be allowed - a save pop-up is displayed.

If I try attach_file_to_response of cl_wd_runtime_services - it also gives a pop-up.

Does anybody know a way to download a file to local PC in such a way that the content of the file is not displayed in the new pop-up window and save dialog does not appear?

Thank you for your help.

Helen

Accepted Solutions (1)

Accepted Solutions (1)

former_member194198
Active Participant
0 Kudos

Hi Olena,

You will not be able to download a file in the background due to the browser security defaults. All browsers always prompt the users to accept files otherwise viruses and trojans would be able to be installed on your pc without you accepting them.

I know it is possible to write via SAPGui without a prompt but not from a browser.

Sorry.

Richard

PS Dont forget the points!

Former Member
0 Kudos

Have you tired the GUI_DOWNLOAD FM in abap. I hav not used this is the WD enviroment but nevetheless it might be a good try!

- Harish.

Answers (0)