码迷,mamicode.com
首页 > 其他好文 > 详细

ABAP获取文件夹路径,及文件夹下所有文件

时间:2018-07-11 12:39:39      阅读:1665      评论:0      收藏:0      [点我收藏+]

标签:gui   init   获取   count   frontend   support   tor   ted   row   

 1 CALL METHOD cl_gui_frontend_services=>directory_browse
 2   EXPORTING
 3     window_title    = File Directory
 4     initial_folder  = C:\‘
 5   CHANGING
 6     selected_folder = g_path.
 7 
 8 CALL METHOD cl_gui_cfw=>flush.
 9 CONCATENATE g_path ‘‘ INTO p_wqj.
10 
11 CLEAR:tab_g_filetab,tab_g_filetab[],g_filter.
12 
13 CALL METHOD cl_gui_frontend_services=>directory_list_files
14   EXPORTING
15     directory                   = g_path
16     filter                      = g_filter
17   CHANGING
18     file_table                  = tab_g_filetab[]
19     count                       = g_count
20   EXCEPTIONS
21     cntl_error                  = 1
22     directory_list_files_failed = 2
23     wrong_parameter             = 3
24     error_no_gui                = 4
25     not_supported_by_gui        = 5
26     OTHERS                      = 6.

 

ABAP获取文件夹路径,及文件夹下所有文件

标签:gui   init   获取   count   frontend   support   tor   ted   row   

原文地址:https://www.cnblogs.com/ferzalez/p/9293354.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!