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

OPEN DATA SET SY-SUBRC = 8

Former Member
0 Likes
2,034

Hello Friends ,

Actually I am facing a problem to read a file from a folder in application server   . that folder is password Protected  .

I Tried alot read all thread on Net but not getting any solution .it will be very helpful if you will give some light on this .

Thanks & regards :

Hemant Gulati(A1)

0971181469

Hello Friends ,

Actually I am facing a problem to read a file from a folder in application server   . that folder is password Protected  .

I Tried alot read all thread on Net but not getting any solution .it will be very helpful if you will give some light on this .

Thanks & regards :

Hemant Gulati(A1)

0971181469

8 REPLIES 8
Read only

laurent_fournier2
Contributor
0 Likes
1,617

Hi there,

I 'm not sure but I believe that you cannot access a password protected folder with open dataset. SapAdm user must have read access in order for open dataset to work.

Regards.

Read only

0 Likes
1,617

Hi laurent   ,

Thanks for the Reply .

Client is not ready to give access on that folder because of some security purpose , is there any other way to get that file from application server some thing like enchantments etc  i have tried CG3y but same Problem is there also.

Thanks & regards :

Hemant Gulati(A1)

Read only

0 Likes
1,617

Hi Hemant,

             you are getting this error because  operating system could not open file. the reason may be that the file might have got corrupted on application server.

what type of file u r opening?

may be u can try opening in binary mode

regards

uday

Read only

0 Likes
1,617

Hi Uday  ,

Thanks for Reply .

i am trying it to open in text mode  . The file is not corrupted , that is not going to open because of folder is password protected.

Thanks & regards :

Hemant Gulati(A1)

Read only

0 Likes
1,617

Hi,

I believe that with any way , you will need the sapadm or operating system user to have access privileges. I don't believe that there is a way to access this file by passing some login information. In the other hand, you could create a command in sm58( Not sure if I remember the correct transaction ) that somehow ( even in DOS mode ) access and copies the file in another shared location and then access the file from abap.If an ftp service is running on the server , you could use ftp access with login credentials to copy the file in abap.

Still, the whole issue is interesting. Post back the solution when and if you find it.

Regards.

Read only

0 Likes
1,617

In fact it is SM49.

You cannot bypass AS security, so ask this client which "is not ready to give access on that folder" to create a small executable or script on the OS to access the file. Or if the folder can be reached by FTP, you could use FTP commands to read the data, after passing an id and a password.

Regards,
Raymond

Read only

venkateswaran_k
Active Contributor
0 Likes
1,617

Dear Hemant,

Just review the following points.  (May be you might have done,,,just to ensure)

1. Is your file in operating system Unix / Windows?

2. If unix, confirm the case sensitive in file name, path name with slash etc...

3. Try to open in Binary mode....

4. Finally the user permission on that folder

Or

You can confirm with the followng FM - as what kind of error it is...

  eps_get_directory_listing

It will return the exception sy-subrc as

01              INVALID_EPS_SUBDIR
02            SAPGPARAM_FAILED
03            BUILD_DIRECTORY_FAILED
04            NO_AUTHORIZATION
05            READ_DIRECTORY_FAILED
06            TOO_MANY_READ_ERRORS
07            EMPTY_DIRECTORY_LIST

If it return 04 then it is permission error, 

Regards,

Venkat

Read only

Former Member
0 Likes
1,617

This message was moderated.