如何在SAP中选择我的打开选项卡

时间:2018-07-27 11:07:56

标签: vba sap

在下面的格式中,它选择了树液的第一个打开的选项卡,如何选择在打开新的ABA时应该打开或至少激活的选项卡:

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" " active first window sap
   WScript.ConnectObject application, "on"

0 个答案:

没有答案