cancel
Showing results for 
Search instead for 
Did you mean: 

SAP application issue

RamanKumar
Level 2

Hi,

i was working on SAP application , till yesterday it was working fine , but today we are not able to spy any element through SAP mode. getting error 

unable to find element. scripting is also enabled then also getting same error.

could any one can help on this issue.  



------------------------------
Raman Kumar
Senior project engineer
Wipro
------------------------------
1 REPLY 1

Hello Raman

Thank you for contacting the Blue Prism community.

If the SAP spy mode was working before and suddenly stopped as you described, I suggest asking the IT team if they have updated the SAP server update or any changes in user permission.  If the SAP spy mode is not activated, you need to make sure the SAP spy mode is enabled.

https://support.blueprism.com/en/support/solutions/articles/7000076806-how-to-enable-sap-spy-mode

Enabling SAP Spy Mode via GUI Scripting Settings

By default, the SAP environment does not have the SAP GUI Scripting settings enabled. Since Blue Prism uses these settings to obtain access to the SAP controls and windows then it is essential to enable these settings, otherwise SAP Spy Mode will not pick up any elements.


Logging into SAP

When you log into SAP using SAP Logon you will need an account that has the necessary permissions to make settings changes. Typical accounts that can be used are:

  • SAPadm
  • SAPenv
  • BCUSER

These accounts are usable in the SAP Demo system, but if you are making changes in a live SAP system then you may need to determine which account should be used to make the changes.

Tip: Changes made to enable scripting may be persisted, but changes to the user's profile settings may not be persisted if the SAP Server is restarted. If the SAP Server is stopped or restarted, then you will need to re-run the RZ11 transaction and re-enable scripting in the appropriate profile (see 'Enabling SAP server scripting' section)


Enabling SAP GUI (client) for Windows

  1. Start the SAP Logon and log in to the SAP server.
  2. Click the Customize Local Layout toolbar button (ALT+F12).
  3. Click Options and in the GUI Options screen select the Accessibility and Scripting node. In the 'Accessibility' node, check the 'Use Accessibility mode' option is enabled.
  4. In the Scripting node, ensure that the 'Enable scripting' option is the only option set. Notifications must be switched off.
    Note: If the checkbox options 'Notify when a script attaches to SAP GUI' check box and 'Notify when a script opens a connection' are left enabled then when you spy an element in the SAP interface you will see the message "A script is trying to attach to the GUI" every time you attempt to click on it.

    Important: If you see the message "Scripting support is disabled by the user" then the 'Enable scripting' option has not been checked.
     
  5. Save the settings and restart the SAP GUI.

Impact of the 'sapgui/nwbc_scripting' parameter

Where there is an SAP Netweaver Business Client installation on the same machine, then the impact of the 'nwbc_scripting' parameter may need to be assessed. The 'sapgui/nwbc_scripting' profile parameter will restrict scripting authorizations, and has the same effect as using 'sapgui/user_scripting' together with 'sapgui/user_scripting_set_readonly'.

The 'nwbc_scripting' parameter will prevent Blue Prism's SAP Spy Mode from operating correctly, and it should be disabled.


Enabling SAP server scripting

You can enable scripting temporarily from the SAP client by performing the procedure shown below. The value set using this procedure is lost if the SAP Server is restarted.

Important: Setting SAP Server Scripting is a mandatory requirement for the SAP Spy Mode to work. If you do not have permission to run the RZ11 transaction, or to set the value for this setting, then please ask your company's IT Department to permanently set this value for you. It will be required for any machine/SAP user which will run the automation.

  1. Start the SAP Logon and log in to the SAP server.
  2. Run the 'RZ11' transaction (type 'RZ11 'and click the green tick button).
  3. Type 'sapgui/user_scripting' in the Maintain Profile Parameters window:
  4. Click the 'Display' button.
  5. Click 'Change Value' in the Display Profile Parameter Attributes window.
  6. Type 'TRUE' in the 'New value' field.
  7. Save the settings and log out from SAP Logon.
  8. Exit from the SAP Logon program (click the red cross button in the toolbar or click the 'X' window button to close the window and the application). You may be prompted to save any unsaved changes, if you haven't done so already.
    If the SAP Mode is operational but not spying any elements, then ensure that both these settings have been done.
     If you attempt to use the SAP Spy Mode and find that no elements can be highlighted, then it is likely that this specific option has been reset to its default value, and you will need to set it again.

------------------------------
Hossein Azimi
Customer Support Engineer, APAC
Blue Prism
Sydney NSW
------------------------------