2012 Aug 28 1:50 PM
Hey All,
We are facing issues that function C_DIR_READ_START is not identifying the files on the application server.
Error message given by the system is Error number " 2 Open Dir : No such file or directory."
The issue is over occuring after SAP in the system have been upgraded .
I checked the same function on other system which was not upgraded where the same Function is working correctly.
below is logic written :
DATA: BEGIN OF FILE,
DIRNAME(75) TYPE C, " name of directory. (possibly truncated.)
NAME(75) TYPE C, " name of entry. (possibly truncated.)
TYPE(10) TYPE C, " type of entry.
LEN(8) TYPE P, " length in bytes.
OWNER(8) TYPE C, " owner of the entry.
MTIME(6) TYPE P, " last modification date, seconds since 1970
FMODE(9) TYPE C, " like "rwx-r-x--x": protection mode.
USEABLE(1) TYPE C,
SUBRC(4) TYPE C,
ERRNO(3) TYPE C,
ERRMSG(40) TYPE C,
MOD_DATE TYPE D,
MOD_TIME(8) TYPE C, " hh:mm:ss
SEEN(1) TYPE C,
CHANGED(1) TYPE C,
END OF FILE.
DATA: ERRCNT(2) TYPE P VALUE 0.
CALL 'C_DIR_READ_FINISH' " just to be sure
ID 'ERRNO' FIELD FILE_LIST-ERRNO
ID 'ERRMSG' FIELD FILE_LIST-ERRMSG.
CALL 'C_DIR_READ_START' ID 'DIR' FIELD DIRNAME
ID 'FILE' FIELD FILENM
ID 'ERRNO' FIELD FILE-ERRNO
ID 'ERRMSG' FIELD FILE-ERRMSG.
IF SY-SUBRC <> 0.
raise ACCESS_ERROR.
ENDIF.
Has any one face the same issue before ?
I know the issue can be resolved by using FM EPS_GET_DIRECTORY_LISTING but I want to know the reason why its not workind propelry after SAP Upgrade !!!
Thanks in Advance.
With Regards,
Haresh Lathia
Did you check via AL11 if directory has been renamed, moved, destroyed, or if your authorizations have been changed ?
Regards,
Raymond
2012 Aug 28 2:11 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |