处理 SAP GUI 脚本代码中的错误
您可以参考 GUI 脚本帮助部分,且其中可以详细说明一些内容。

它根据需要为你提供默认属性类型。如果你要执行下一步、停止或中止用户步骤,则可以使用以下属性。
| 值 | 说明 |
|---|---|
| S | 成功 |
| W | 警告 |
| E | 错误 |
| A | 中止 |
| I | 信息 |
请参阅以下使用上述属性类型显示不同消息的代码 −
Public Sub get_status_bar_value_exit_if_Error()
Dim usr_resp AsString
If(session.findById("wnd[0]/sbar").messagetype = "E"Or
session.findById("wnd[0]/sbar").messagetype= "W") Then
usr_resp =MsgBox(session.findById("wnd[0]/sbar").Text & Chr(13) &"Show the Error in SAP ?",
vbYesNo)
If usr_resp =vbYes Then
Else
Callgo_to_Sap_home
End If
End
End If
End Sub广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP