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

Problem in Function C_DIR_READ_START

Former Member
0 Likes
13,470

     We are with problem when use the function C C_DIR_READ_START... When program access directory through of the function generate the Error number " 2 Open Dir : No such file or directory.". The directory is NFS and all configuration with nfs is correct.



CALL 'C_DIR_READ_FINISH'           

      ID 'ERRNO'  FIELD file_list-errno

      ID 'ERRMSG' FIELD file_list-errmsg.


  CALL 'C_DIR_READ_START' ID 'DIR'   

                          FIELD p_path

                          ID 'FILE'   FIELD '*'

                          ID 'ERRNO'  FIELD file-errno

                          ID 'ERRMSG' FIELD file-errmsg.


  IF sy-subrc <> 0.

    sy-subrc = 4.

    MESSAGE e020(zsd) WITH 'No such file or directory'.

    EXIT.

  ENDIF.


regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
9,697

Hi,

please check, that parameter p_path is defined with option LOWER CASE. What's your directory name, 'NFS' or 'nfs' ? for the directory name is case sensitive, you have to fill the parameter with the right directory name.

Regards,

Klaus

3 REPLIES 3
Read only

Former Member
0 Likes
9,698

Hi,

please check, that parameter p_path is defined with option LOWER CASE. What's your directory name, 'NFS' or 'nfs' ? for the directory name is case sensitive, you have to fill the parameter with the right directory name.

Regards,

Klaus

Read only

Sandra_Rossi
Active Contributor
0 Likes
9,697

Moreover, make sure P_PATH is defined as type C, it will return such an error with type STRING.

Read only

Juwin
Active Contributor
0 Likes
9,697

Based on the operating system of the application server, the path may be case sensitive. Please check if the path has the correct case.

Thanks,

Juwin