呵呵,终于发现可以在英文登陆状态下上传中文文本了,不过使用WS_UPLOAD仍然不能上传中文,而GUI_UPLOAD此时就可以。 我又查阅了相关资料果然,WS_UPLOAD是一个要被GUI_UPLOAD替代的funtion,所以以后写程序就都用GUI_UPLOAD就好了。 3.调用GUI_UPLOAD的两种方式 GUI_UPLOAD虽然是cl_gui_frontend_services类的静态方法但是...
GUI_DOWNLOAD – 从应用服务器下载内表到显示服务器。 GUI_EXEC – 调用一个文件或程序,取代了WS_EXECUTE。 GUI_GET_DESKTOP_INFO – 获得客户端桌面信息,取代了WS_QUERY。 GUI_REMOVE_DIRECTORY – 从显示服务器删除一个目录 。 GUI_RUN – 启动一个文件或程序 。 GUI_UPLOAD – 从显示服务器上传文件到应用...
若要上传文件,请使用方法CL_GUI_FRONTEND_SERVICES⇒GUI_UPLOAD: CALLMETHODCL_GUI_FRONTEND_SERVICES=>GUI_UPLOADEXPORTINGFILENAME=FULLPATHFILETYPE='DAT'CHANGINGDATA_TAB=itab 例如: *DATADECLARATIONforGUI_DOWNLOAD.DATA:lv_filename typeSTRING.lv_filename=file.CONSTANTS:LV_FILETYPETYPECHAR10VALUE'ASC'.CALLF...
GUI_DOWNLOAD – 从应用服务器下载内表到显示服务器。 GUI_EXEC – 调用一个文件或程序,取代了WS_EXECUTE。 GUI_GET_DESKTOP_INFO – 获得客户端桌面信息,取代了WS_QUERY。 GUI_REMOVE_DIRECTORY – 从显示服务器删除一个目录 。 GUI_RUN – 启动一个文件或程序 。 GUI_UPLOAD – 从显示服务器上传文件到应用...
最常用FM:GUI_UPLOAD 有同等作用的是CLASS METHOD:* cl_gui_frontend_services=>gui_upload*,文件可以按二进制或文本格式上传,数值和日期等依赖于用户的设置。上传二进制文件时,内表通常定义为只含一个数据类型为X的field。 DATA:BEGINOFitabOCCURS0,raw(255)TYPEx,ENDOFitab.CALLFUNCTION'GUI_UPLOAD'EXPORTINGfi...
CALL METHOD cl_gui_frontend_services=>file_open_dialog EXPORTING default_extension = l_extension default_filename = l_filename file_filter = l_filter multiselection = ' ' CHANGING file_table = l_tab_filetable rc = l_result1. * Check user did not cancel request ...
"upload cl_gui_frontend_services =>file_open_dialog ( EXPORTING window_title = 'Select files that you want to ZIP' multiselection = 'X' CHANGING file_table = it_filetab rc = ret_code user_action = v_usr ) . LOOP AT it_filetab INTO wa_filetab . ...
go_container2 TYPE REF TO cl_gui_custom_container, go_pic_old TYPE REF TO cl_gui_picture, go_pic_new TYPE REF TO cl_gui_picture. SELECTION-SCREEN BEGIN OF BLOCK 001 WITH FRAME. PARAMETERS p_fopen TYPE string DEFAULT 'D:\1.jpg' OBLIGATORY. ...
Programs that are executed in dialog and from SAP GUI can use the methods of the class CL_GUI_FRONTEND_SERVICES to access the current presentation server. They can use the methods GUI_UPLOAD and GUI_DOWNLOAD to read and write to files, the methods FILE_... to examine and process files...
GUI_UPLOAD和GUI_DOWNLOAD是类CL_GUI_FRONTEND_SERVICES的静态方法.SAP在静态方法中直接使用了FUNCTION---GUI_UPLOAD和GUI_DOWNLOAD。 WS_UPLOAD和WS_DOWNLOAD属于被淘汰的FUNCTION,不建议使用。 上传下载TXT文档:GUI_UPLOAD/GUI_DOWNLOAD 上传下载EXCEL文档:TEXT_CONVERT_XLS_TO_SAP/SAP_CONVERT_TO_XLS_FORMAT ...