透過 SAP GUI 的功能直接操作 EXCEL
首先定義 Object :
TYPE-POOLS: ole2.
* OLE objects Declarations
DATA: w_excel TYPE ole2_object,
w_workbooks TYPE ole2_object,
w_workbook TYPE ole2_object,
w_worksheets TYPE ole2_object,
w_worksheet TYPE ole2_object,
w_columns TYPE ole2_object,
w_column_ent TYPE ole2_object,
w_cell TYPE ole2_object,
w_int TYPE ole2_object,
w_range TYPE ole2_object,
w_font TYPE ole2_object,
w_window TYPE ole2_object.
接著開啟 Excel :