ABAP用FILE_OPEN_DIALOG打开多个文件后打印出名称 此实例将演示用CL_GUI_FRONTEND_SERVICES下的静态方法FILE_OPEN_DIALOG打开多个文件后打印出打开文件的名称。具体程式如下。 DATAFILE_TABLETYPEFILE_TABLE."引用FILE_TABLE对象 *SELECT-OPTIONS:i_file FOR FILE_TABLE
因为如果你仔细研究一下这个cl_gui_frontend_services类,你会发现SAP已经帮我们预定义好了以下几种类型 File Filter,而且是相当专业的,几乎能应对所以的业务类型文档了: FILETYPE_ALL = 'All Files (*.*)|*.*|' FILETYPE_EXCEL = 'Microsoft Excel Files (*.XLS;*.XLSX;*.XLSM)|*.XLS;*.XLSX;*.XLSM|'...
使用cl_gui_frontend_services=>file_open_dialog打开文件选择框时,可以输入file_filter参数,来限定和过滤文件选择框内的文件类型。 常用的文件类型如下: FILETYPE_ALL = 'All Files (*.*)|*.*|' FILETYPE_EXCEL = 'Microsoft Excel Files (*.XLS;*.XLSX;*.XLSM)|*.XLS;*.XLSX;*.XLSM|' FILETYPE_WORD ...
SAP Managed Tags: ABAP Development Hi, thanks for your answers. I need to pass the path name(which is in the parameter) into a filetable name t_files without using the file_open_dialog. Because I need to modify the program that they assigned to me. The filetable t_files needs to ...
0 Kudos 6,639 SAP Managed Tags ABAP Development Hi, when using the screen painter is there any way to put a f4 open file dialog on a input text field? Best regards Lisa M SImonsenReply 1 ACCEPTED SOLUTION Former Member 2008 Mar 13 4:16 PM 0 Kudos 1,440 SAP Managed ...
CALLFUNCTION'TMP_GUI_FILE_OPEN_DIALOG'"获取文件名 EXPORTING window_title ='文件选择窗' TABLES file_table = it_file EXCEPTIONS cntl_error =1 OTHERS=2. IFsy-subrc <>0."获取文件名失败 MESSAGE'获取文件失败'TYPE'E'."报出错误信息 ENDIF. ...
SAP Managed Tags: SAP Business One Extensibility Error:: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STA Thread Attribute marked on it. This exception is only raised if a debugger is attached to the pro...
Process.GetProcessesByName("SAP Business One") If MyProcs.Length = 1 Then For i As Integer = 0 To MyProcs.Length - 1 Dim MyWindow As New WindowWrapper(MyProcs(i).MainWindowHandle) Dim ret As DialogResult = OpenFile.ShowDialog(MyWindow) If ret = DialogResult.OK Then FileName = Open...
此实例将演示用CL_GUI_FRONTEND_SERVICES下的静态方法FILE_OPEN_DIALOG打开多个文件后打印出打开文件的名称。具体程式如下。 DATAFILE_TABLETYPEFILE_TABLE."引用FILE_TABLE对象 *SELECT-OPTIONS:i_file FOR FILE_TABLE NO INTERVALS. DATA: lt_file_namesTYPEFILETABLE, ...