USER_ACTION为用户操作:0 点击保存,9点击取消 CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE EXPORTING WINDOW_TITLE = '选择一个路径' INITIAL_FOLDER = 'Z:\' CHANGING SELECTED_FOLDER = lw_folder EXCEPTIONS CNTL_ERROR = 1 ERROR_NO_GUI = 2 NOT_SUPPORTED_BY_GUI = 3 others = 4 . 方法...
2.文件夹的删除 下面方法删除E盘下TESTDIR文件夹 CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_DELETE EXPORTING DIRECTORY = 'E:\TESTDIR' CHANGING RC = RC. 3.目录选择框 CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE EXPORTING WINDOW_TITLE = '选择目录' INITIAL_FOLDER = 'D:\' CHANGING...
DIRECTORY = 'E:\TESTDIR'CHANGINGRC = RC.2.文件夹的删除下面方法删除E盘下TESTDIR文件夹CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_DELETEEXPORTINGDIRECTORY = 'E:\TESTDIR'CHANGINGRC = RC.3.目录选择框CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSEEXPORTINGWINDOW_TITLE = '选择目录'...
USER_ACTION为用户操作:0 点击保存,9点击取消 CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE EXPORTING WINDOW_TITLE = '选择一个路径' INITIAL_FOLDER = 'Z:\' CHANGING SELECTED_FOLDER = lw_folder EXCEPTIONS CNTL_ERROR = 1 ERROR_NO_GUI = 2 NOT_SUPPORTED_BY_GUI = 3 others = 4 . 方法...
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE EXPORTING WINDOW_TITLE = '选择一个路径' INITIAL_FOLDER = 'Z:\' CHANGING SELECTED_FOLDER = lw_folder EXCEPTIONS CNTL_ERROR = 1 ERROR_NO_GUI = 2 NOT_SUPPORTED_BY_GUI = 3 others = 4 ...
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE EXPORTING WINDOW_TITLE = '选择目录' INITIAL_FOLDER = 'D:\' CHANGING SELECTED_FOLDER = DIRPATH."该参数为string类型 其中exporting下面的参数均为可选。可以注释掉。 以下对该类下的方法不做详细举例,只做剪短说明。