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: 

Directory Existence Check Before File-Download.

Former Member
0 Kudos

Hi,

How to check the existence of a directory say USR/INTERFACES/HR/NONHR/SAP_TO_IFS/

before I download a file into that particular directory using GUI_Download.

Currently even if such a directory does not exist,

The download is successful.

But I want to validate the existence of the directory before the download.I tried using the FM PFL_CHECK_DIRECTORY.

Kindly Advice.

Thanks .

.

1 REPLY 1

uwe_schieferstein
Active Contributor
0 Kudos

Hello Renu

It seems that you are mixing directories on presentation (GUI_DOWNLOAD) and application server (USR/INTERFACES/HR/NONHR/SAP_TO_IFS/).

To check the existance of a directory on the presentation server use method cl_gui_frontend_services=>DIRECTORY_EXIST.

This class has many more useful methods.

Regards

Uwe