Share this page

# sapgui_table_set_row_selected

Table Functions

Selects or unselects a row in a table.

    int sapgui_table_set_row_selected( const char *tableID, const char *row, const char *isSelected, [args,] LAST );

tableID | Object ID Strings
row | Table row number. The first data row is numbered zero (0). If there is a header row it is numbered (-1).
isSelected | "True" or "False"
args | Optional Arguments
LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used.

sapgui_table_set_row_selected sets the selected status of a table row. If isSelected is "True", the row of row number row is selected. If isSelected is "False", the row is unselected.

## Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

## Parameterization

You can parameterize all string (char type) arguments.

## Example

The following example uses sapgui_table_set_row_selected to select the third row in the table.

Copy code

    sapgui_table_set_row_selected(
    "usr/tblRSDEMO02TC_SPFLI", // Table ID
    "2",          // Third row
    "True",     // Select
    BEGIN_OPTIONAL,
    "AdditionalInfo=info1019",
    END_OPTIONAL);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: