Setting up SAP for RPA
Before PAD can interact with SAP controls, SAP must be configured to allow scripting. Both client-side and server-side scripting must be enabled. The steps below assume SAP is fully up to date with the latest support packages installed.
Enabling Client-Side Scripting
Start SAP Logon and log in to the SAP server
Click the Customize Local Layout toolbar button
Click Options and in the GUI Options screen, select the Accessibility and Scripting node
Under the Accessibility node, ensure Use Accessibility mode is enabled

Under the Scripting node, ensure Enable scripting is enabled

β οΈ No other options should be enabled in the Scripting node. Enabling additional options will cause an un-dismissible popup to appear when an RPA tool attempts to interact with SAP, breaking all interactions.
Save the settings
Enabling Server-Side Scripting
Start SAP Logon and log in to the SAP server
Enter transaction RZ11 and click the green checkmark

In the Maintain Profile Parameters window, type sapgui/user_scripting

Click Display
In the Display Profile Parameter Attributes window, click Change Value

In the New value field, type TRUE

Save the settings and restart the SAP GUI.