Skip to main content

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​

InputTypeRequiredDefaultWhat it is
IDStringYesScripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART.
RowNumberNoRow, counted from the top of the whole table (from 1 or from 0, as set below); not used with find_text.
ColumnStringNoColumn: 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).
ValueAnyYesNew value, or a Credential variable.
ConnectionNumberNo0SAP connection number (0 = first open system).
SessionNumberNo0Session (window) number within the connection (0 = first).
Find textStringNoFind 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 1BooleanNofalseThe first row and column are number 1; when off they are number 0, as in steps made before.

Outputs​

OutputTypeWhat it is
rowNumberRow of the cell that was changed (from 1 or from 0, as set).
columnStringColumn of the cell that was changed, as given or as found.