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
Msgbox session.Children.Count
I started RPA from Last year and experienced hard time automating SAP with Automation Anywhere. Although AA provided SAP dll but I failed to get one.
So, I had to develop it myself from scratch.
Generally speaking, AA(Metabot) & BP & UiPath uses same technology which is based on GUI scripting which is provided by SAP. Which is little bit old scripting language and seems have many problem there. SAP seems not care about this language very much and there have very few resources about this language.
Anyway, GUI scripting can make job done somehow. I am not so sure but I've encountered scripts execution failure at POC phase and don't know why. Thanks god, it never happen at production environment.
I developed metabot with C#.net.
Here i some code. Seems blogspot does not support markdown or any kind of code snippets...