Skip to main content

Find value in table

Find the first cell (or every cell) holding a value, ignoring surrounding spaces, and return its row and column.

Command in the SAP GUI toolkit · id ooa.sap/get_table_cell_index · 7 inputs (2 required), 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
IDStringYesScripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART.
ValueStringYesValue to look for.
ColumnStringNoOnly search this column (position, title or field name); all columns when empty.
ConnectionNumberNo0SAP connection number (0 = first open system).
SessionNumberNo0Session (window) number within the connection (0 = first).
Case sensitiveBooleanNofalseMatch upper and lower case exactly.
All occurrencesBooleanNofalseKeep searching and list every matching cell.

Outputs​

OutputTypeWhat it is
foundBooleanTrue when the value was found.
rowNumberRow (0-based), or -1 when not found.
columnStringColumn name (grid) or title (table control) of the match.
matchesTableColumns: row, column; every match when all_occurrences is on, else the first.