Set table cell
Type a value into an editable cell of an ALV grid or table control, chosen by row and column or found by the text it holds.
Command in the SAP GUI toolkit · id ooa.sap/set_table_cell · 8 inputs (2 required), 2 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. | |
| Row | Number | No | Row, counted from the top of the whole table (from 1 or from 0, as set below); not used with find_text. | |
| Column | String | No | Column: its position (from 1 or from 0, as set below), title, or technical field name. With find_text, only this column is searched (all columns when empty). | |
| Value | Any | Yes | New value, or a Credential variable. | |
| Connection | Number | No | 0 | SAP connection number (0 = first open system). |
| Session | Number | No | 0 | Session (window) number within the connection (0 = first). |
| Find text | String | No | Find the cell by the text it holds now (surrounding spaces and case ignored) and write into the first match, searching top to bottom; row is then not used. | |
| Count rows and columns from 1 | Boolean | No | false | The first row and column are number 1; when off they are number 0, as in steps made before. |
Outputs
| Output | Type | What it is |
|---|---|---|
| row | Number | Row of the cell that was changed (from 1 or from 0, as set). |
| column | String | Column of the cell that was changed, as given or as found. |