Example: sapgui_grid_select_columns

The following example uses sapgui_grid_select_columns to select one, two and three columns.

// Store the Grid ID in a variable
lr_save_string
    ("usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell",
    "GridID");
sapgui_grid_select_columns("Select One Column", 
        "{GridID}", 
        "CONNID",
        LAST );
sapgui_grid_select_columns("Select two columns", 
        "{GridID}", 
        "CONNID", "CITYFROM", //Select two columns 
        BEGIN_OPTIONAL, 
            "AdditionalInfo=sapgui1019", 
        END_OPTIONAL);
sapgui_grid_select_columns("Select three non-adjacent columns", 
        "{GridID}", 
        "CONNID", "CARRID", "CITYFROM", LAST );