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 Unix path

Former Member
0 Likes
1,280

Hi ,

I am passing a unix file as '/tmp/usr01/IT/rate1.txt' . My requirement is to validate only the unix path " /tmp/usr01/IT".

I tried with FM EPS_GET_DIRECTORY_LISTING , but it is giving one exception like 'NO Authorization '.

Hi ,

I am passing a unix file as '/tmp/usr01/IT/rate1.txt' . My requirement is to validate only the unix path " /tmp/usr01/IT".

I tried with FM EPS_GET_DIRECTORY_LISTING , but it is giving one exception like 'NO Authorization '.

7 REPLIES 7
Read only

jyotheswar_p2
Active Participant
0 Likes
1,212

Hi

Check if you have authorization to open the below mentioned file. I think that is the reason it is saying No authorization.

Regards

Jyo

Read only

0 Likes
1,212

No actually when i am trying to use open data set it is giving sy-subrc as 0.

i can't use open dataset as i do have to validate the directory.

Read only

0 Likes
1,212

Check also the function module AUTHORITY_CHECK_DATASET and its documentation.

Regards,

Andrea

Read only

Former Member
0 Likes
1,212

Hi,

The error raised after Authority Check (You may not be having the autorization to read the contents of the directory mentioned in the parameter) .

If the directory is not available then you will get the exception READ_DIRECTORY_FAILED.

Regards

Vinod

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,212

Also check RZL_READ_DIR

Read only

Former Member
0 Likes
1,212

resolved

Read only

Clemenss
Active Contributor
0 Likes
1,212

>

> resolved'.

Hi related,

thank you for not sharing the solution.

Regards,

Clemens

Edited by: Clemens Li on Jan 23, 2011 3:20 PM