cancel
Showing results for 
Search instead for 
Did you mean: 

SAP GUI Scripting Error - Invalid Syntax(Set SAPGuiAuto = GetObject("SAPGUI"))

Former Member
0 Kudos

Dear Experts,

I do vba sap gui scripting to control SAP front end to accompolish activities. In the recent months i get Error while establishing 'SAP Connection' in line

Sub SAP_Connection()
Set SAPGuiAuto = GetObject("SAPGUI") '~~>ERROR LINE (Invalid Syntax)
Set Application = SAPGuiAuto.GetScriptingEngine
Set Connection = Application.Children(0)
Set Session = Connection.Children(0)
End Sub

This is the usual code with which i work. But Occassionally it gives me this ERROR and the same persist for hours together. Please advise what i should be doing to correct this.

Regards,

Kumar Santharam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Please take a look at

http://scn.sap.com/thread/1698680

Former Member
0 Kudos

I am facing the same problem.please let me know if u HV resolved the issue