cancel
Showing results for 
Search instead for 
Did you mean: 

Turn off message "Script is trying to connect to SAPGui"

Former Member
0 Kudos

Hi again everyone.

I have small simple question.

When I connect through Excel VBA to sap:

Dim App, Connection, session As Object

Set sapguiauto = GetObject("SAPGUI")

Set App = sapguiauto.GetScriptingEngine

Set Connection = App.Children(0)

Set session = Connection.Children(0)


The message, see attachement, pops up - you just have to click ok or press enter. I tried Sendkeys and application.displayalerts but neither of it works.

Is there a way, how to jump it over/ skip it/ press the OK button via script.

BTW: when I had older version of SAP - pre 7 version I think, It worked without note.

Thanks for your advices.

Accepted Solutions (1)

Accepted Solutions (1)

script_man
Active Contributor

Ahoj Miroslav,

this issue is so old as the SAP GUI Scripting. You can try the following:

SAP GUI -> Alt / F12 (local layout tune) -> Options -> Scripting:

- Notify when a script connects to SAP GUI -> deactivate

- Notify when a script establishes a connection -> deactivate

Regards ScriptMan

Former Member
0 Kudos

Thanks  ScriptMan.

I figured out later it is not Excel but SAP issue.

You know czech language?


script_man
Active Contributor
0 Kudos

Ahoj Miroslav,

Yes i can speak Czech. 😉

Regards,

ScriptMan

Answers (0)