Important! Read this.

We have launched a new documentation website. If you're using Enterpise Edition 10 (or higher) or Express/Business Edition 2.4.1 (or higher), visit this page.

Skip to end of metadata
Go to start of metadata

We have moved to a new documentation platform. This section is no longer supported. For the up-to-date information, see SAP GUI tips and tricks.


Navigating to Hidden Elements

To grab a selector of an element not visible on the SAP GUI screen, use Inspector. Thus, you open hidden tree elements or tabs.

  1. Right click on any hidden element within the tree and select Focus.

  2. On expanding the element, copy its selector to use in your script.

Automation of Complex Grids

Available from RPA Express 2.3.2.

If automation of complex trees or tables with a large number of elements takes much time for both inspecting and executing scripts, use the following SAP UI controls attributes:

  • native_id
  • row
  • column

The native_id attribute immediately interacts with a selected element, e.g., a table cell of the Nth column in a complex grid, without waiting for information from the whole list of elements.

  1. Open SAP GUI desktop client and select the screen you need to automate. Open Inspector and click Capture.
  2. Hover over the needed element and press Escape.

  3. Build up your selector manually.
    1. Copy native_id in the native_id field and paste it after NATIVE_ID in the Selector field.
    2. After theNATIVE_IDblock, addCELL and specify the cell coordinates using thecolumnandrowvalues.

      Your selector will look as follows:

      [NATIVE_ID:wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell; CELL:10,3]

Using native_id, you can build selectors for the following UI elements:

  • table cells: use native_id + cell: row, column

    Table cell example
    [NATIVE_ID:wnd[0]/usr/tabsTAXI_TVERVIEW/tblSAPMV45ATCTRL_U_ERF_AUFTRAG; CELL:1,38]


  • tree items: use native_idname (refer to the name attribute in the element data)

    Tree item example
    [NATIVE_ID:wnd[0]/usr/cntlTREE_CONTAINER/shellcont/shell; NAME: Root:0]


  • SAP UI controls, e.g., buttons: use native_id only

    UI control example
    [NATIVE_ID:wnd[0]/usr/btnNEW]

SAP GUI Commands

The below mentioned commands are entered into the OK Code field, allowing to perform some actions quicker.

CommandDescription
/nused together with a transaction name, navigates to a transaction from the existing transaction window
/odisplays a list of open SAP GUI sessions; all your sessions will be displayed in a dialog box with the options to create and end sessions
/iused together with a transaction name, closes the specified transaction window

/nend

logs out prompting to confirm that you want to close all the sessions
/nexcloses all the sessions and exits the SAP GUI desktop client without prompting
  • No labels