Sets text at the specified position in a SapGui table control.
SapGui.bdh
SapGuiTableSetText( in sControl : string allownull, in nRow : number, in nCol : number, in sValue : string, in sTimer : string optional ) : boolean;
Parameter | Description |
---|---|
sControlId | The table's unique id. |
nRow | The row where to set the value |
nCol | The column where to set the value |
sValue | The value to be set at the specified position. |
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(3.4);
SapGuiLogon("ddic", "*******", "000", "");
SapGuiPressButton("usr/btn%_AUTOTEXT005", " Simulate inbound call");
// Daten des Anrufs eingeben
ThinkTime(22.6);
SapGuiSetActiveWindow("wnd[1]", "Daten des Anrufs eingeben", SAPGUI_MATCH_Exact);
SapGuiTableSetText("usr/tblSAPLPHOAD102_ADDITIONAL", 0, 0, "asdf");
end TMain;