You are getting below error message when dealing with SAP GUI,
Solution
Launch the SAP Logon and go to the hamburger icon, choose Options.
Under Security – Security Configuration, choose status as Customized. Next, click on Open Security Configuration.
Select the object that is getting the “Deny” message and click on Edit.
Under Action, change it to Context-Dependent. Click OK to apply the changes. Now, re-open your SAP GUI and test your previous failed scenario once again.