處理 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