A tiny hint for all who automizes SAP: It is possible to customize the title of SAP windows. If the show system name option of the window title is enabled…
… the SAP window title is supplemented with SID and session number. Then the title looks like this …
…instead this.
To avoid this trap, always use an asterisk as the leading character in the title.
Alternatively you can use the GUI Info for SAP Activity from the UiPath Marketplace.