2007 Sep 13 6:35 PM
What does this statement means.
call 'C_DIR_READ_START' id 'DIR' field file-dir
id 'FILE' field file-name
id 'ERRNO' field file-err
id 'ERRMSG' field file-msg.
Can anyone explain what does it mean ? may be in brief...
2007 Sep 13 6:39 PM
Well, this is actually a call to the kernal which is C, this call can not be debugged and the source can not be viewed, so it is a little hard to figure out exactly what it does, but sometimes you can guess by the name and the parameters.
It appears that it may read the files from the application server.
Regards,
RIch Heilman
What does this statement means.
call 'C_DIR_READ_START' id 'DIR' field file-dir
id 'FILE' field file-name
id 'ERRNO' field file-err
id 'ERRMSG' field file-msg.
Can anyone explain what does it mean ? may be in brief...
2007 Sep 13 6:39 PM
Well, this is actually a call to the kernal which is C, this call can not be debugged and the source can not be viewed, so it is a little hard to figure out exactly what it does, but sometimes you can guess by the name and the parameters.
It appears that it may read the files from the application server.
Regards,
RIch Heilman
2007 Sep 13 6:52 PM
Hi,
this is OS function used to read the file from a server directory.
like this
Start reading
l_fname = '.'. "Mask
CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_folder
ID 'FILE' FIELD l_fname
ID 'ERRNO' FIELD l_ferrn
ID 'ERRMSG' FIELD l_ferrm.
CHECK sy-subrc = 0.
read Directory
WHILE sy-subrc = 0.
CLEAR l_flist.
CALL 'C_DIR_READ_NEXT' ID 'TYPE' FIELD l_flist-ftype
ID 'NAME' FIELD l_flist-fname
ID 'LEN' FIELD l_flist-fleng
ID 'OWNER' FIELD l_flist-fownr
ID 'MTIME' FIELD l_flist-fmtme
ID 'MODE' FIELD l_flist-fmode
ID 'ERRNO' FIELD l_ferrn
ID 'ERRMSG' FIELD l_ferrm.
CHECK sy-subrc = 0 AND NOT l_flist-fleng IS INITIAL.
l_flist-direc = p_folder.
INSERT l_flist INTO TABLE lt_flist.
ENDWHILE.
finish reading
CALL 'C_DIR_READ_FINISH' ID 'ERRNO' FIELD l_ferrn
ID 'ERRMSG' FIELD l_ferrm.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |