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