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

SUBST_GET_FILE_LIST

Former Member
0 Likes
1,102

Hi all,

I´m using the function SUBST_GET_FILE_LIST for get all files in the application server. But I have a problem with performance. The system take several minutes to list this files. I have about 50 files in the server.

Anybody know how to do to list this files more quickly????

Great,

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
795

Please try to fm EPS_GET_DIRECTORY_LISTING and check

4 REPLIES 4
Read only

Former Member
0 Likes
795

Hi,

check the below code which is used in F4 help for the method F4 in class in CL_RSAN_UT_FILES.

SELECT t1fileintern t2filename

FROM filenameci AS t1 JOIN filetextci AS t2 ON t1fileintern = t2fileintern

INTO ls_file.

IF ls_file-text IS INITIAL.

ls_file-text = ls_file-file.

ENDIF.

ls_value_tab = ls_file-file.

APPEND ls_value_tab TO lt_value_tab.

ls_value_tab = ls_file-text.

APPEND ls_value_tab TO lt_value_tab.

ENDSELECT.

Regards,

Boobalan S

Read only

Former Member
0 Likes
795

use this ..

Read only

former_member194669
Active Contributor
0 Likes
796

Please try to fm EPS_GET_DIRECTORY_LISTING and check

Read only

Former Member
0 Likes
795

The problema was in the network link..

Regards