Resizes the active window.
SapGui.bdh
SapGuiWindowResize( in nWidth : number,
in nHeight : number,
in bThrowOnFail : boolean optional ) : boolean;
| Parameter | Description |
|---|---|
| nWidth | New width to be set for the window. |
| nHeight | New height to be set for the window. |
| bThrowOnFail | If set to true, the window control will raise an exception in case resizing fails. Default value is false. |
transaction TMain
var
sId : string;
begin
// Connecting to SAP
sId := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU lab77 00 /3");
SapGuiSetActiveConnection(sId);
SapGuiSetActiveSession("ses[0]");
// SAP
SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_Exact);
SapGuiWindowResize(117, 28, false);
// Logon to SAP System
// Before running a test you have to customize the password parameter!
ThinkTime(5.3);
SapGuiLogon("bcuser", "*******", "000", "");
end TMain;