cancel
Showing results for 
Search instead for 
Did you mean: 

SAPGUI Scripting with Python, help needed with first steps

0 Kudos

Hi everyone,

I'm trying to the basic of SAPGUI scripting going with Python 2.7 on Windows 8.1, SAPGUI 7.40.

I've used the following post by Andres Barnard as a starting point:

So I'm starting python and entering:

>>> import win32com.client

>>> False, True = 0 , -1

>>> app = win32com.client.Dispatch("Sapgui.ScriptingCtrl.1")

>>> conn = app.OpenConnection("TMG", True)

Then I get the message from the system that a script is connecting to system TMG.

Then this window opens instead of the SAPGUI, and promptly freezes:

Any Ideas?

Thanks so much,

Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Martin,

Did you get any solution to this.

I am also facing the same problem.

Regards,

Laxman

0 Kudos

No, I switched to VBA, since I needed to output the data in Excel anyway...