In the left pane, expand Accessibility & Scripting
and then select Scripting.
In the right pane, below User Settings, select
Enable scripting.
To avoid getting a message every time when a robot script tries to interact
with SAP, ensure that the options Notify when a script attaches to
SAP GUI and Notify when a script opens a
connection are cleared.