Scrolls to a date in the calendar and makes it visible.
SapGui.bdh
SapGuiCalendarFirstVisibleDate( in sControlId : stringallownull, in sDate : string, in sTimer : stringoptional ) : boolean;
Parameter | Description |
---|---|
sControlId | The calendar control's unique id. |
sDate | The date field to be made visible. The date has to be specified in the following format YYYYMMDD (e.g. "20091031"). |
sTimer | Timer name 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.8);
SapGuiLogon("ddic", "minisap", "000", "");
// Copyright
ThinkTime(2.1);
SapGuiSetActiveWindow("wnd[1]", "Copyright", SAPGUI_MATCH_Exact);
SapGuiPressButton("tbar[0]/btn[0]");
// SAP Easy Access
ThinkTime(9.9);
SapGuiSetActiveWindow("wnd[0]", "SAP Easy Access", SAPGUI_MATCH_Exact);
SapGuiSelectTopNode("usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell", "Favorites", "Favo", "TopNode\\Favorites");
SapGuiCalendarFirstVisibleDate("usr/cntlCALE_CONTROL/shellcont/shell/shellcont[0]/shell", "20040809");
end TMain;