获取服务器上文件夹中文件LIST形式
Posted china_wangxiaowen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取服务器上文件夹中文件LIST形式相关的知识,希望对你有一定的参考价值。
data: gdf_source_path TYPE epsf-epsdirnam. gdf_source_path = ‘/usr/sap/D01/DVEBMGS00/data/‘. DATA:gds_dir_list TYPE epsfili, gdt_dir_list TYPE TABLE OF epsfili. CALL FUNCTION ‘EPS_GET_DIRECTORY_LISTING‘ EXPORTING dir_name = gdf_source_path TABLES dir_list = gdt_dir_list 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. IF sy-subrc = 0. ENDIF.
日期比较
*TYPE-POOLS TRFF . * *DATA LOG_OP TYPE TRFF_TYPE_C_2. * *CALL FUNCTION ‘FIMA_DATE_COMPARE‘ * EXPORTING * I_FLG_INTRADAY = ‘ ‘ * I_DATE = ‘20140101‘ * I_TIME = ‘000000‘ * I_SINCL = ‘0‘ "计算期间开始的排除标识 * I_SULT = ‘ ‘ "计算期间开始的月末标识符 * I_COMP_DATE = ‘20140201‘ "比较日期 * I_COMP_TIME = ‘000000‘ "比较时间 * I_COMP_SINCL = ‘0‘ "计算期间结束的包含标识 * I_COMP_SULT = ‘ ‘ "计算期间结束的月末标识符 * IMPORTING * E_LOG_OP = LOG_OP. "返回比较结果:LT * *IF SY-SUBRC = 0. * *ENDIF.