I have a case where I need to loop a table in SAP and find the next blank row for entering new data. Currently, I’m looping the table and incrementing a iRow number variable to keep track of the position and I’m using the SAP action to get the value of column 1. I keep looping until vColValue is blank.
I have an issue when the SAP table screen scrolls down when using the SAP: Get table cell text action. This happens when all of the rows in the table are NOT visible on the screen. So for example, my counter may increment to row 15 being the next available row, but the row in SAP becomes a different number (like 1) after what’s visible on the screen after scrolling changes. So when I go to use SAP: Select Item By Text and use the row value from the counter, it fails because the row is in correct.
Please note that I am NOT scrolling the table using keystrokes or anything. I’m only using the get table cell and incrementing iRow.
I’ve been told by a coworker that there is both a visible row count and vertical scrollbar position in SAP and he’s sometimes used that in a SAP VB Script. I want to AVOID using VB Script. I prefer AA commands from a maintenance perspective.
Is there a way to reference the actual real row position in AA using an AA SAP command?
Best answer by LoganPriceView original