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

Function Module - RZL_READ_DIR_LOCAL returning RAISE NOT_FOUND

Former Member
0 Likes
1,610

Hello All,

I am passing a path viz *
shailesh\sap\timerecord* as path to FM RZL_READ_DIR_LOCAL. sy-subrc is returning 2 (not found) whereas the directory exists in my local system. I also tried the path with the application server but still its returning 2.

Can anybody figure out what might be causing this exception?

Regards,

1 ACCEPTED SOLUTION
Read only

alejiandro_sensejl
Active Participant
0 Likes
922

Hello shails81,

please check if you can navigate to the directory/file via transaction AL11. IIRC the RZL* function modules can only access files / directorys available there, because otherwise they aren't visible to the SAP instance.

Regards,

Alej

3 REPLIES 3
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
922

Execute the FM as stand alone , check the results , if still error check your Directory name (may be pass it with C:\).

if this is of no help then Debug the FM .

Read only

Former Member
0 Likes
922

Hi Sandeep,

I tried changing the path to C:\.. and also tried D:\... but still no breakthrough. I debugged the FM and found that the internal table LINE_TBL is initial. There are no recrods in it.

Read only

alejiandro_sensejl
Active Participant
0 Likes
923

Hello shails81,

please check if you can navigate to the directory/file via transaction AL11. IIRC the RZL* function modules can only access files / directorys available there, because otherwise they aren't visible to the SAP instance.

Regards,

Alej