Skip to Content
0
Sep 10, 2023 at 01:33 PM

SAP GUI Scripting Select the first row after filtering

181 Views

Hi all,

I'm trying to automate some SAP actions with Excel.

I recorded some Script from SAP an most is working just fine, I only have a problem selecting the first row after filtering material in Position

image.png

Recording results in:

session.findById("wnd[0]/usr/tblSAPLV60PTCTRL_KOPIEREN").getAbsoluteRow(466).Selected = True

But I can't select a row with the AbsoluteRow number since I don't know that number.

Any ideas how to select the first row after filtering ?

Thanks.

Attachments

image.png (66.8 kB)