DIRECTORY_EXIST 检查指定的目录文件夹是否存在 DIRECTORY_GET_CURRENT 返回当前所在路径(个人感觉不好用) DIRECTORY_LIST_FILES 枚举指定目录下的文件及其文件夹。其中FILE_TABLE参数为FILE_INFO类型的标准表,无表头 DIRECTORY_SET_CURRENT 设置当前活动目录(不建议使用) EXECUTE 执行windows程序或打开windows下文件夹 FILE...
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. 方法描述:检查目录是否存在 DIRECTORY为目录名 RESULT为返回结果:‘’不存在,‘...
使用这个类中的方法几乎可以对客户端操作系统做任何操作。 以几个例子来说明: 1,根据指定的参数列出指定目录下的文件系统信息 DATA: WA_FILE_TABLE TYPE FILE_INFO, TAB TYPE STANDARD TABLE OF FILE_INFO. data filecount type i. CALL METHOD cl_gui_frontend_services=>directory_list_files EXPORTING director...
cntl_error=1 directory_list_files_failed=2 wrong_parameter=3 error_no_gui=4 not_supported_by_gui=5 others=6 . 2,删除存在的文件 DATA:filename TYPE string, rc TYPE i, rc2 TYPE c. filename = 'c:\test.txt'. CALL METHOD cl_gui_frontend_services=>file_exist EXPORTING file= filename R...
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXISTEXPORTINGDIRECTORY = LW_PATHRECEIVINGRESULT = LW_RESULTEXCEPTIONSCNTL_ERROR = 1ERROR_NO_GUI = 2WRONG_PARAMETER = 3NOT_SUPPORTED_BY_GUI = 4OTHERS = 5.方法调用是否成功判定:(例如:输入不合法)...
CALL METHOD cl_gui_frontend_services=>file_exist EXPORTING file= filename RECEIVING result = rc2. *write sy-subrc. *write rc2. IF sy-subrc = 0 AND rc2 = 'X'. CALL METHOD cl_gui_frontend_services=>file_delete EXPORTING filename = filename ...
xml:namespaceprefix=ons=urn:schemas-microsoft-com:office:office/CALLMETHODcl_gui_frontend_services=file_existEXPORTINGfile=filenameRECEIVINGresult=rc2.*writesy-subrc.*writerc2.IFsy-subrc=0ANDrc2='X'.CALLMETHODcl_gui_frontend_services=file_deleteEXPORTINGfilename=filenameCHANGINGrc=rc.WRITEsy-subrc....
Solved: Hi SAP GUI Experts, I've installed the SAP GUI 7.20 and patched it to Patchlevel 4 on Windows 7, 64 Bit. When I run the following report get_temp_directory(
DIRECTORY_EXIST 检查指定的目录文件夹是否存在 DIRECTORY_GET_CURRENT 返回当前所在路径(个人感觉不好用) DIRECTORY_LIST_FILES 枚举指定目录下的文件及其文件夹。其中FILE_TABLE参数为FILE_INFO类型的标准表,无表头 DIRECTORY_SET_CURRENT 设置当前活动目录(不建议使用) ...
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. 方法描述:检查目录是否存在 ...