SAP讀取Excel的兩個方式

2021-10-06 02:42:37 字數 1378 閱讀 6678

1.獲取excel檔案

2.讀出檔案中的資料

3.按照**和內表字段的對應關係,將**資料填充到內錶

兩個functionalsm_excel_to_internal_table&text_convert_xls_to_sap之間的差異主要存在於後兩項。alsm_excel_to_internal_table將讀出的資料放在 structurealsmex_tabline中,**欄位和內表字段的對應還另需一條條的sign.而text_convert_xls_to_sap則能在**和內表字段以對應的情況下,直接sign到內錶中。

call function 'alsm_excel_to_internal_table'

exporting

filename = "檔案位置

i_begin_col = 」開始讀取列

i_begin_row = "開始讀取行

i_end_col = "結束讀取列

i_end_row = "結束讀取行

tables

intern = "暫存資料的內錶

exceptions

inconsistent_parameters = 1

upload_ole = 2

others = 3

​ 適用於**列數過多而實際內錶所需字段遠少於**字段。

call function 'text_convert_xls_to_sap'

exporting

* i_field_seperator =

* i_line_header = "是否去掉首行"

i_tab_raw_data = "表,structure truxs_t_text_data

i_filename = "檔案位置

tables

i_tab_converted_data = "結果表

exceptions

conversion_failed = 1

others = 2

​ 適用於**和內錶所需欄位一致或相差不大

OpenNI 讀取兩個kinect的資料

void check xnstatus result,string step for int i 0 iimagedata,imagemd.data 640 480 3 cvcvtcolor image,imageshow,cv rgb2bgr cvshowimage imagewindow i d...

php redis 寫入讀取的兩個class

class myredis return self handler 可以是乙個物件,陣列或者字串 public static function get key return value 寫入乙個鍵值對 public static function set key,value return self ...

vue讀取本機的excel檔案的兩種方式

安裝依賴 npm install xlsx 引入import xlsx from xlsx 第一種input通常方式 template中加入input data中宣告變數 data mounted中繫結事件 mounted 呼叫主函式 readexcel e else if xls xlsx tes...