Activates the specified tab sheet inside a SapGui tab control.
SapGui.bdh
SapGuiSelectTab( in sControlId : string allownull, in sTimer : string optional ) : boolean;
Parameter | Description |
---|---|
sControlId | The uniquely identifying id of the tab sheet to be activated. |
sTimer | Timer name used for measurements. |
transaction TMain
var
sConnId : string;
begin
// Connecting to SAP
sConnID := SapGuiOpenConnection(" /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.198 0 /3");
SapGuiSetActiveConnection(sConnID);
SapGuiSetActiveSession("ses[0]");
// SAP
SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_Exact);
SapGuiWindowAction(SAPGUI_WND_MAXIMIZE);
// Logon to SAP System
// Before running a test you have to customize the password parameter!
SapGuiIgnoreError(SAPENGINE_STATUSBAR_CHANGED, SEVERITY_SUCCESS);
ThinkTime(2.9);
SapGuiLogon("ddic", "*******", "000", "");
// Other menu
SapGuiIgnoreError(SAPENGINE_STATUSBAR_CHANGED, SEVERITY_SUCCESS);
ThinkTime(2.4);
SapGuiPressButton("tbar[1]/btn[17]", " Other menu");
// Wertebereich einschränken
ThinkTime(3.2);
SapGuiSetActiveWindow("wnd[1]", "Wertebereich einschränken", SAPGUI_MATCH_Exact);
SapGuiSelectTab("usr/tabsG_SELONETABSTRIP/tabpTAB001");
SapGuiSelectTab("usr/tabsG_SELONETABSTRIP/tabpTAB002");
end TMain;