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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| ID | String | Yes | Scripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART. | |
| Value | String | Yes | Value to look for. | |
| Column | String | No | Only search this column (position, title or field name); all columns when empty. | |
| Connection | Number | No | 0 | SAP connection number (0 = first open system). |
| Session | Number | No | 0 | Session (window) number within the connection (0 = first). |
| Case sensitive | Boolean | No | false | Match upper and lower case exactly. |
| All occurrences | Boolean | No | false | Keep searching and list every matching cell. |
Outputs
| Output | Type | What it is |
|---|---|---|
| found | Boolean | True when the value was found. |
| row | Number | Row (0-based), or -1 when not found. |
| column | String | Column name (grid) or title (table control) of the match. |
| matches | Table | Columns: row, column; every match when all_occurrences is on, else the first. |