Everyone, who launched macro connecting SAP for the first time, have encountered this. Those 2 pop ups are destroying the idea of automation. You can’t record them and don’t know how to avoid them. In this article I’m going to present how to turn off SAP scripting pop ups.
What are those SAP pop ups?
Those SAP scripting pop ups are simple message boxes telling You about:

that script is attemping to access SAP GUI and

that a script is opening the connection.
In general, those message boxes are good. I mean that kind of information is important in case if You are not the one who launched the script. But probably in your case it is only annoying and disturbing during the daily SAP report creation.
So, if You are tired of clicking twice everytime You want to create SAP report automatically and totally aware of those coding attemps it is ok to turn those pop ups off.
Turn off SAP scripting pop ups
You need to go to the options – firstly click on the last icon in that row of top bar, it looks like a double gearwheel. Then choose Options… from the list.

There, in the Accessibility & Scripting category, choose Scripting.

Here You got probably 3 checkboxes set as true:
-enable scripting,
-notify when a script attaches to SAP GUI,
-notify when a script opens a connection.
Leave the first one – You want to use SAP scripts. But those 2 below are responsible for those pops ups. Unchecked those 2 checkboxes and that’s it! Those SAP scripting messages are gone!
That’s not all!
In this article I showed You how to turn off SAP scripting pop ups. From now on those message boxes should not bother You. Your SAP reports are now completely automated!
I invite You to my YouTube channel, where You can find this post as a video!
Enjoy!
This is awesome! Thanks.
You’re welcome 🙂
Awesome! Tks
My problem is with the scheduled system maintenance popup, that are only shown once a day
For example something like “system will shut down on saturday evening from 17.00 …..”
Can you help me with this VBA line?
Where that popup comes from? From your system or from SAP?
Hallo Tomasz, very nice post. This is one of the main questions I get asked by my students when teaching them how to automate a report from SAP using Excel.
Keep up the good content. Dzieki!
Hello John
Thanks, really nice to hear that! 🙂