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: 

GUI_DOWLOAD Problem

Former Member
0 Kudos

Hi All,

I am using GUI_DOWNLOAD. If for the presentation server, I provide an Invalid path for the directory , let’s say ‘XXX’ which is an invalid path, then GUI_DOWNLOAD does not returns any errors instead it creates the folder in the SAP work directory with the name 'XXX' on the local PC and downloads the files at that place which is not correct. Is there any flag in the importing parameter which can override this?

Please help.

Thanks & Regards

Anu

3 REPLIES 3

Former Member
0 Kudos

Hi

Former Member
0 Kudos

Hi Anu,

I don't think we have any option in GUI_Download, But this you can get by , using class and related method , i.e

cl_gui_frontend_services->DIRECTORY_EXIST

this method will check , whether particular directory existed or not..

so i think , you can achive what do you want.

regards,

vinesh.

Former Member
0 Kudos

Hi Anu,

Are you using a logical path to get the filename? (Transaction FILE).

If so you can retrieve the path and filename with the FM "FILE_GET_NAME"

There you have the parameter "Emergency_Flag" which you can use to determine if an error occured.

Kind Regards