Select ABA - SAP SCRIPT

0

Good afternoon, folks,

How can I select my open tab in SAP.

In the format below it selects the first open tab of the sap, how do I choose the tab that should open, or at least activate, when a new ABA is opened:

If Not IsObject(application) Then
   Set SapGuiAuto  = GetObject("SAPGUI")
   Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
   Set connection = application.Children(0)
End If
If Not IsObject(session) Then
   Set session    = connection.Children(0)
End If
If IsObject(WScript) Then
   WScript.ConnectObject session,     "on" " ativa a primeira aba.
   WScript.ConnectObject application, "on"

I'm waiting.

    
asked by anonymous 26.07.2018 / 22:48

0 answers