现在的位置: 首页 > 综合 > 正文

ABAP-读取应用服务器目录信息的函数代码摘抄

2013年04月27日 ⁄ 综合 ⁄ 共 755字 ⁄ 字号 评论关闭

获取目录列表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.

 

抱歉!评论已关闭.