Scripting Spy

This topic describes how to configure the Scripting Spy option for debugging and duplication. Each SAP screen has its own screen ID that you can view using scripting spy. This option also allows you to select and view properties of an UI element by directly clicking it. It displays the complete hierarchy of the object that you select.

Note: The Scripting Spy option is not related to the Process files.

To configure the Scripting Spy option

  1. In Process Runner, select Tools > Scripting Spy. The SAP GUI Scripting Spy window is displayed.
  2. Select Refresh/Get GUI session. The list of the selected object hierarchies in another SAP instance is refreshed. The GUI session details are also displayed. If no SAP GUI sessions are found, a prompt to log in to the SAP system is displayed.

    Note: Only the sessions having SAP GUI Scripting enabled are supported.

  3. Select Load. The following GUI session details are loaded:
    • Connection Property: The fields Connection ID, Description, ConnectionString, and Session ID display the connection property details.
    • Property: The fields ID, Name, Text, Type, and subtypes Container Type and Changeable display the property details.
  4. Select Start Debug. The SAP GUI is displayed.
  5. To capture the properties of an object, select it. For example, if you want to get the property values of Material field of MM02 transaction, point to the Material field.
  6. Expand the session IDs. The hierarchical list of the object is displayed.
  7. Select Stop Debug. The debugging is stopped.