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

this Function module RZL_READ_DIR module consider only 10000files in directory.

0 Likes
1,710

Hi Experts,

I got a one requirement in that requirement. we use RZL_READ_DIR this function module it consider only 10000 files from archive directory . So in archive directory have more than 10000 files . How to collect all the files in archive directory?(we are using 4.7version)

Please help me on above question.

Hi Experts,

I got a one requirement in that requirement. we use RZL_READ_DIR this function module it consider only 10000 files from archive directory . So in archive directory have more than 10000 files . How to collect all the files in archive directory?(we are using 4.7version)

Please help me on above question.

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
1,508

You could enhance the FM or create a class to replace this code

Read only

jmodaal
Active Contributor
0 Likes
1,508

Hello,

there are some other function modules available doing same/similar job. For example EPS_GET_DIRECTORY_LISTING and EPS2_GET_DIRECTORY_LISTING.
There is also a static method READDIR in class CL_FILE_UTIL which returns the entries of a given directory.

I could not find a limitation regarding the directory entries, so just give it a try...

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,508

In my 7.52 version the limit is 100.000, not 10.000 !

  IF NRLINES > 100000.
    RAISE ARGUMENT_ERROR.
  ENDIF.
Read only

0 Likes
1,508

We are using 4.7version. class is not available this version .any chance to increase more than 10000 files. We are using this FM(RZL_READ_DIR)

Read only

jmodaal
Active Contributor
0 Likes
1,508

Hello,

what about the other mentioned function modules (EPS_GET_DIRECTORY_LISTING and EPS2_GET_DIRECTORY_LISTING)?

If they also don't exist, then I guest the best option is to follow the suggestion of @frdric.girod by modifying the function module or create a modified copy.