Hey,
If’s not possible by selectors, perhaps you can do it trying to use Data Scraping, besides that you also could extract table clicking in SAP Download option (export to CSV;XLS) and use datatable ~ read range activity to get number of rows.
Another case, is create a VBS file and do logic by SAPGUI Scripting, you can call the code by invoke vba activity.
If neither of these work arounds works, and if I’m not wrong I know that recently UiPath has been available Computer Vision package, maybe would be interesting to explore that.
Regards,