abap中方法file_open_dialog的使用
来源:互联网 发布:广联达是什么软件 编辑:程序博客网 时间:2024/05/16 04:48
SAP中,经常会将整理好的数据(通常为excel表格)通过程序写入相应的表中。
这过程中,选择上传文件需要使用到SAP提供的标准方法:file_open_dialog。
它是接口CL_GUI_FRONTEND_SERVICES中的一个标准方法,调用例子如下:
data: v_rc type i,g_file like rlgrap-filename, v_filetable type filetable. call method cl_gui_frontend_services=>file_open_dialog exporting window_title = '选择源文件' file_filter = '全部文件 (*.*)' multiselection = space changing file_table = v_filetable rc = v_rc exceptions file_open_dialog_failed = 1 cntl_error = 2 error_no_gui = 3 not_supported_by_gui = 4 others = 5. if sy-subrc = 0 and v_rc = 1. read table v_filetable into g_file index 1. endif.
参数:
window_title:文件选择对话框标题
file_filter:文件过滤器
file_table:选择上传的文件,若打开多个文件,则将该参数定义为一个内表,此时打开文件参数rc>1
--the end--
- abap中方法file_open_dialog的使用
- 【abap】NUMBER_RANGE_ENQUEUE方法的使用
- abap中 provide 的使用
- ABAP中宏的使用
- SAP ABAP编程 选择文件对话框 CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
- ABAP中控制windows剪贴板的方法
- ABAP中控制windows剪贴板的方法
- ABAP中正则表达式的简单使用
- ABAP中正则表达式的简单使用
- ABAP中正则表达式的简单使用
- ABAP中动态内表的使用
- ABAP中特殊字符的使用
- ABAP中ALV使用HTML的例子
- abap中TEXT_CONVERT_XLS_TO_SAP、CS_WHERE_USED_MAT的使用
- BW中使用abap
- ABAP类的方法
- ABAP用FILE_OPEN_DIALOG打开多个文件后打印出名称
- SAP ABAP 开发中常用的方法总结
- 获取ajax返回的值供外层使用
- NodeJs has no method 'router' 错误解决方法
- 策略模式
- 见微知著 从Select语句看Oracle查询原理
- Duff's Device
- abap中方法file_open_dialog的使用
- What is the difference between WM_DESTROY and WM_NCDESTROY?
- ServletContext对象读取资源路径的三种方式
- [STL] __gnu_cxx::hash_map使用中的一些问题
- Android FragmentPagerAdapter数据刷新notifyDataSetChanged没效果研究
- java 命令模式下运行jar包
- Mongodb认证设置
- 2012-2013百度搜索引擎优化大事记
- java项目公共接口GenericDao GenericDaoImpl