04-22-2008 7:08 AM
Hi All,
I am using GUI_DOWNLOAD. If for the presentation server, I provide an Invalid path for the directory , lets 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
04-22-2008 7:08 AM
04-22-2008 7:17 AM
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.
04-22-2008 11:18 AM
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