I have a situation in SAP. I extracted a table and saved it in dt1. I need to click on all rows in the “Department” column where the value is WE. I’m using the index (SAP row index starts from 6), so I can click on the required rows successfully—as long as the number of rows is below 30.
However, if the matching rows are beyond index 30, the bot is unable to click them because they are not visible on the screen. To view those rows, I need to scroll down. But when I scroll, the index positions change, so the bot gets confused or clicks the wrong rows.
Also, Simulate Click is not supported in this SAP environment.
Any suggestions on how to handle scrolling and selecting the right rows dynamically would be appreciated.
As the index is getting reset..after scroll you need to reset as well..for example after 30 if you are scrolling then start from 6 again..and use it as index to click
You can record using SAP Scripting Recorder and change things dynamically inside . You can use “Invoke VB Script” to run in UiPath. It would be much faster and Accurate
Hope are you using Activities under SAP in UiPath Activity. Let me know, if yes, we wiill sort this out. Thanks!
Firstly, the row index part sounds very sketchy. The row index is absolute in our selectors, not relative to the screen/scroll position.
So this should not happen.
For further investigation and to be able to offer you a proper solution, I would need more information:
A full screenshot of the SAP screen and element(cell) that you are trying to click, along with a screenshot of UiExplorer after indicating the element of interest(table cell). I am interested especially in the selector generated for that cell.
The SAP transaction that you are using and step by step instructions on how to reach the table you are working on.
From your image and selector, that is not a table. It looks like a table, but it’s an ALV list, which is just a collection of labels. @LevKushnir found an alternative approach that might work for you. Go in the menu Settings → Switch List and SAP will display a proper table. On that you can use Table Cell Scope or other activities that suit your needs. You will also have absolute row indices in the table.
Let us know if switching to a normal table works for you and if you need further guidance.