Application Development and Automation 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: 
Read only

How to validate File path

Former Member
0 Likes
953

hi experts,

how to validate file path, weather given file exists in the given path or not. for both presentation and application server files.

kindly suggest Function modules

i am using F4 function module to take input to the file name parameter. if user didn't used those options and directly entered the file path then i have to validate that path.

regards,

pavan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
860

Hello,

Use the method FILE_EXIST in the class CL_GUI_FRONTEND_SERVICES.

Regards,

Vasanth

hi experts,

how to validate file path, weather given file exists in the given path or not. for both presentation and application server files.

kindly suggest Function modules

i am using F4 function module to take input to the file name parameter. if user didn't used those options and directly entered the file path then i have to validate that path.

regards,

pavan

5 REPLIES 5
Read only

Former Member
0 Likes
861

Hello,

Use the method FILE_EXIST in the class CL_GUI_FRONTEND_SERVICES.

Regards,

Vasanth

Read only

0 Likes
860

hi,

will this work for both application and presentation server.

regards,

pavan

Read only

Former Member
0 Likes
860

Hi pavan,

for the application server side, you may also have a look at function group EPSF.

I hope this helps. Best regards,

Alvaro

Read only

Former Member
0 Likes
860

hi all,

for presentation server path cl_gui_frontend_services=>file_exist is working.

for application server path

PFL_CHECK_OS_FILE_EXISTENCE--function module is working fine.

Thank you all for your quick responses.

regards,

pavan

Read only

Former Member
0 Likes
860

Hi,

My requirement is ,how to validate input file path ,if file will be on application server ,how to define physical filepath on applcation server,will u pls send me procedure how to do that.

Regards,

Vidya