0

Can't find children connection

 7 months ago
source link: https://community.sap.com/t5/technology-q-a/can-t-find-children-connection/qaq-p/13589932
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Can't find children connection

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"
WScript.ConnectObject application, "on"
End If
session.findById("wnd[0]").maximize
WScript.Sleep 2000
session.findById("wnd[0]/tbar[0]/okcd").text = "F-28"
session.findById("wnd[0]").sendVKey 0

Im getting error on Set connection = application.Children(0)

Also RZ11 is true


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK