Not able to identify element by selectors in SAP

I am not able to identify element by selectors in SAP while targeting.
I can indicate element using only CV method.

Kindly help me with the resolution.

Thanks.

@srushtibg.17,

Check if scripting is enabled in SAP.

Also follow these steps to enable and use SAP Scripting

Hey @srushtibg.17 have you enabled Scripting from client and server side.

Enabling Scripting in SAP

  1. Log in to SAP GUI:
  • Open the SAP GUI and log into the system where you want to enable scripting.
  1. Navigate to SAP GUI Options:
  • Go to the Options menu.
    • Click on the Customize Local Layout button (or press Alt + F12).
    • From the dropdown menu, select Options.
  1. Enable Scripting:
  • In the SAP GUI Options window, navigate to Accessibility & Scripting > Scripting.
  • Check the box next to Enable Scripting.
  • Ensure that Enable Scripting on Server is also enabled (this option may require admin access).
  • Click OK to save your settings.
  1. Verify Scripting Settings on the Server (if needed):
  • If you’re an admin or have access to the backend, you may need to ensure that scripting is enabled on the SAP server as well.
  • This can be done using transaction RZ11 to check the parameter sapgui/user_scripting.
  • Set the parameter to TRUE to allow scripting.
    cheers