Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8989

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

$
0
0

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.

SAP.png

Thanks for your advices.


Viewing all articles
Browse latest Browse all 8989

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>