试图从 ME23N 中提取列引用
Trying to extract column reference from ME23N
cntlMEALV_GRID_CONTROL_MMHIPO/shellcont/shell").selectColumn "XBLNR"
我正在尝试将其提取到 excel。
我只能使用 watch 提取行数,但不确定如何使用 excel
提取行数
任何代码或示例或帮助将不胜感激。
使用 getcellValue 转换为 excel。
Set SapGuiAuto = GetObject("SAPGUI")
Set SAPApp = SapGuiAuto.GetScriptingEngine
Set SAPCon = SAPApp.Children(0)
Set session = SAPCon.Children(0)
MyGrid = "cntlMEALV_GRID_CONTROL_MMHIPO/shellcont/shell"
iRows = session.findById(MyGrid).RowCount()
'Fill excel sheet
Do While i < iRows
Cells(i + 1, 1).Value = session.findById(MyGrid).getcellValue(i, "XBLNR")
i = i + 1
Loop
cntlMEALV_GRID_CONTROL_MMHIPO/shellcont/shell").selectColumn "XBLNR"
我正在尝试将其提取到 excel。
我只能使用 watch 提取行数,但不确定如何使用 excel
提取行数任何代码或示例或帮助将不胜感激。
使用 getcellValue 转换为 excel。
Set SapGuiAuto = GetObject("SAPGUI")
Set SAPApp = SapGuiAuto.GetScriptingEngine
Set SAPCon = SAPApp.Children(0)
Set session = SAPCon.Children(0)
MyGrid = "cntlMEALV_GRID_CONTROL_MMHIPO/shellcont/shell"
iRows = session.findById(MyGrid).RowCount()
'Fill excel sheet
Do While i < iRows
Cells(i + 1, 1).Value = session.findById(MyGrid).getcellValue(i, "XBLNR")
i = i + 1
Loop