CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST EXPORTING DIRECTORY = LW_PATH RECEIVING RESULT = LW_RESULT EXCEPTIONS CNTL_ERROR = 1 ERROR_NO_GUI = 2 WRONG_PARAMETER = 3 NOT_SUPPORTED_BY_GUI = 4 OTHERS = 5. CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG EXPORTING WINDOW_TIT...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR filepath. CALL METHOD cl_gui_frontend_services=>directory_browse EXPORTING window_title = 'File Directory' initial_folder = 'C:' CHANGING selected_folder = gd_path. CALL METHOD cl_gui_cfw=>flush. CONCATENATE gd_path '' INTO filepath. AT SELECTION-S...
3.调用GUI_UPLOAD的两种方式 GUI_UPLOAD虽然是cl_gui_frontend_services类的静态方法但是也可以用function的方法调用!SAP估计将某些静态方法封装了一层所以就可以用调用函数的方式调用GUI_UPLOAD方法。我又测试了下GUI_DOWNLOAD和GET_WINDOWS_DIRECTORY,不过只有GUI_DOWNLOAD可以用函数调用。看来不是所有的静态方法都可以用...
CALL METHOD cl_gui_frontend_services=>file_exist EXPORTING file = lv_filepath RECEIVING result = lv_fileexists EXCEPTIONS OTHERS = 1. CHECK lv_fileexists = abap_false. IF lr_mr_api IS INITIAL. lr_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ). ENDIF. CALL METHOD lr_mr_api...
no icon download if icon already exists in directory CONCATENATE path lt_icontab '.gif' INTO filename. call method CL_GUI_FRONTEND_SERVICES=>FILE_EXIST EXPORTING file = filename RECEIVING result = existing. IF existing is initial. icon not there -> download from BDS IF my_bds IS INITIAL....
CALL METHOD cl_gui_frontend_services=>directory_browse EXPORTING window_title = title CHANGING selected_folder = folder EXCEPTIONS cntl_error = 1 error_no_gui = 2 OTHERS = 3. CALL FUNCTION 'CONTROL_FLUSH' EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3. p_folder = folder. ...
为了快速导入数据实现某类操作,可以使用ABAP类“CL_GUI_FRONTEND_SERVICES”中的“CLIPBOARD_IMPORT”方法从剪切板复制到内表。比如有下面这样一个小需求,Excel内有1000多个PO和PR需要批量更改其交货日期,若不采用Excel上传的方式,则可以通过上述方式快速处理。 使用...
(SmartForm) 函数名 描述 DATE_CHECK_PLAUSIBILITY 日期CHECK cl_gui_frontend_services=gui_upload 上传到服务器 cl_gui_frontend_services=gui_download 下载到服本地 SSF_FUNCTION_MODULE_NAME SMARTFORMS输出报表时,生成一个函数名称,然后CALL这个名称 函数名 描述 POPUP_TO_DECIDE_LIST 弹出供选择窗口 ABAP_DOCU...
thegui_upload function moduleso using this should be the same as using the upload FM. Having said that I guess SAP could change this in the future and add differnt functionality to the method. Its also good that all functionality is grouped together within the cl_gui_frontend_services class...
CALL METHODCL_GUI_FRONTEND_SERVICES=FILE_OPEN_DIALOG EXPORTING WINDOW_TITLE = Title DEFAULT_EXTENSION = *.* FILE_FILTER = 文 本 文 件 (*.TXT)|*.TXT|Excel 文 件 (*.XLS)|*.XLS;*.XLSX| 所有文件 (*.*)|*.*| WITH_ENCODING = X INITIAL_DIRECTORY = D:\ MULTISELECTION = X CHANGING ...