Checks a check box in a grid control.
SapGui.bdh
SapGuiGridModifyCheckbox( in sControlId : string allownull,
in nRow : number,
in sCol : string,
in bChecked : boolean ) : boolean;
| Parameter | Description |
|---|---|
| sControlId | The grid control's unique id. |
| nRow | The cell's row |
| sCol | The column id of the cell. |
| bChecked | If this parameter is "true", the checkbox will be checked. |
transaction TMain
var
sConnID : string;
begin
// Connecting to SAP
sConnID := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.132 0 /3");
SapGuiSetActiveConnection(sConnID);
SapGuiSetActiveSession("ses[0]");
// SAP
SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_ExactNoCase);
SapGuiWindowAction(SAPGUI_WND_MAXIMIZE);
SapGuiLogon("ddic", "*******", "000", "");
SapGuiGridModifyCheckbox("/usr/tab/chk", 0, "COL03", true );
end TMain;