2012 Jun 28 11:35 AM
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
2012 Jun 28 11:42 AM
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.
2012 Jun 29 7:15 AM
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)
2012 Jun 29 7:29 AM
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
2012 Jun 29 7:45 AM
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)
2012 Jun 29 8:50 AM
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.
2012 Jun 29 9:17 AM
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
2012 Jun 29 9:35 AM
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
2014 May 05 3:44 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |