Applies To:
QTP, UFT, HP, SAP, Scripting
Issue:
When executing a QTP or UFT script, the following message appears: "a script is trying to attach to the gui"
Solution:
SAP GUI -> layout -> Options... -> Scripting
Or
SAP GUI -> Customize Local Layout -> Options... -> Accessibility & Scripting -> Scripting
Either way, you need to disable to following:
Notify when a script attaches to SAP GUI
Notify when a script opens a connection