Skip to Content
0
Jul 17, 2019 at 07:56 AM

SAP GUI Scripting error events clarification

185 Views

Hello! I am using SAP GUI Scripting for regression testing. I use Java with JACOB library to access SAP GUI Scripting and make use of ROT Wrapper object. I am interested in receiving Error Events from GuiApplication or GuiSession objects but I get confused with the description from SAP GUI Scripting manual:

  • Public Event Error( _ ByVal ErrorId As Long, _ ByVal Desc1 As String, _ ByVal Desc2 As String, _ ByVal Desc3 As String, _ ByVal Desc4 As String _ )
  • An error event is currently only raised, if the wrapper library required to access a SAP GUI ActiveX control from a script is not available. This event is also available on the GuiSession in which the error occurred.

What does it mean exactly "An error event is currently only raised, if the wrapper library required to access a SAP GUI ActiveX control from a script is not available."? That if I use ROT Wrapper (as I do) I won't be able to receive those error events?

Does this imply that I have to use alternative way of starting SAP GUI, without using ROT Wrapper, by using CreateObject( "Sapgui.ScriptingCtrl.1") to be able to receive error events?

Or does it mean something else entirely?