從 SAP 中提取資料時發生錯誤


請注意,findById 方法應返回一個物件。同時嘗試以下程式碼來修復你的程式碼

session.findById("wnd[0]/tbar[1]/btn[8]").press
On Error Resume next
myText = "x"
err.clear
myText = session.findById("wnd[1]/tbar[0]").Text
if err.number <> 0 then myText = ""
on error goto 0
If myText = "No data exists for chosen selection" Then
GoTo TroubleShootInterCompany
End If

更新日期: 2019 年 12 月 13 日

189 次瀏覽

開啟你的 職業生涯

完成課程,獲得認證

開始學習
廣告
© . All rights reserved.