hi,
You can use:
DATA: it_file_dir TYPE STANDARD TABLE OF epsfili,
v_path TYPE EPSDIRNAM VALUE '/usr/sap/'.
CALL FUNCTION 'ZEPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = v_path
TABLES
dir_list = it_dir
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
I think the best way to select only the file list from SAP application server.
Regards,