Example: sapgui_grid_select_cell_row

The following example uses sapgui_grid_select_cell_row to select a cell in the same column as the current selection, but a different row.

// Save the Grid ID in variable "GridID"
lr_save_string
    ("usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell",
    "GridID");
// Select eighth row (row 7), Column CARRID
sapgui_grid_select_cell("'Overview' (7, Airline carrier)", 
        "{GridID}", 
        "7", 
        "CARRID", 
        BEGIN_OPTIONAL, 
            "AdditionalInfo=sapgui1062", 
        END_OPTIONAL);
// Select seventh row (row 6), Column CARRID
sapgui_grid_select_cell_row("Move selection to another row", 
        "{GridID}", 
        "6", 
        LAST );
// Select row 6, Column CITYFROM
sapgui_grid_select_cell_column("Move selection to another column", 
        "{GridID}", 
        "CITYFROM", 
        LAST );