获取目录列表Get directory path for EPS subdirectories
CALL FUNCTION 'EPS_GET_DIRECTORY_PATH'
EXPORTING
eps_subdir = lc_eps_in
IMPORTING
dir_name = lv_eps_dir
EXCEPTIONS
OTHERS = 99.
获取文件列表Get directory listing
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = space
IMPORTING
dir_name = lv_eps_dir
TABLES
dir_list = lt_file_list
EXCEPTIONS
OTHERS = 99.
* 获取文件信息 get file attributes
CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
EXPORTING
file_name = lv_output_file
dir_name = lv_dir_name
IMPORTING
file_size = lv_file_size
EXCEPTIONS
read_directory_failed = 01
read_attributes_failed = 02.