從 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.