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: 

FM or method for validation of network path

Former Member
0 Kudos

how to validate file path which is on the network, weather given file exists in the given path or not.

kindly suggest Function modules or any method.

method FILE_EXIST in the class CL_GUI_FRONTEND_SERVICES is taken care only for the local path which is there in the local system. I need it for the network path.

After that, i would like to read excel file from the network.

Kindly suggest any method.

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.

4 REPLIES 4

Former Member
0 Kudos

Hi Pritam,

Not sure if there is any FM. But after OPEN DATASET if sy-subrc <> 0 you can give error message that file does not exist.

Regards,

Atish

0 Kudos

Could you plz explain in depth, how open dataset will work for this particular case???

Former Member
0 Kudos

CALL FUNCTION 'BBP_REMOTE_CLNT_CHECK' DESTINATION RFCDES-RFCDEST

IMPORTING

CLIENT = REMOTE_CLIENT

RELEASE = REMOTE_RELEASE

EXCEPTIONS

COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT

SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

IF NOT SY-SUBRC IS INITIAL.

MESSAGE MSG_TEXT TYPE 'E'.

EXIT.

Use this function module hope it will help you.

Reward points.

Regards,

madan.

0 Kudos

This function module does not take even any filename as input parameter, how could you say that this function module will work for the validation of the file path?