ABAP NEW操作符

"EXCEL导入
NEW zms_ole( )->excel_upload( EXPORTING i_filename = 'C:\Users\73699\Desktop\2.xlsx'
                              CHANGING  c_tab      = itab ).

"EXCEL下载
NEW zms_ole( )->excel_download( EXPORTING i_filename = 'C:\Users\73699\Desktop\3.xls'
                                          i_head     = '列1#列2#列3'
                                CHANGING  c_tab      = itab
                                EXCEPTIONS itab_error = 1 ).

*模板下载
NEW zms_ole( )->template( EXPORTING i_file = 'DFC'
                                    i_type = 'xlsx').

你可能感兴趣的:(ABAP NEW操作符)