This function verifies the value of a SapGui text control. This may either be a label or an edit field.
SapGui.bdh
SapGuiVerifyTextValue( in sControlId : string, 
                       in sText      : string, 
                       in nOptions   : number optional,
                       in nSeverity  : number optional := SEVERITY_ERROR ) : boolean; 
               	 | Parameter | Description | 
|---|---|
| sControlId | The unique id of a text element or edit field. | 
| sText | Compares the current text of the control to the value specified in this parameter according to the comparison flags in the third parameter. | 
| nOptions |  This parameter specifies the type of check to be performed. Available options are: 
                           				  
                           
  |  
                        			 
                     
| nSeverity |  
                           				  Optional: Severity of the error that is raised if the verification fails. Can be one of the following values: 
                               
                           				  
                           
  |  
                        			 
                     
transaction TMain
  var
    sText : string;
    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", "minisap", "000", "");
    SapGuiVerifyTextValue( "/usr/sub:SAPMSYST:0020/txtINFO_TAB-TDLINE[8,0]", "Only released for training purposes", SAPGUI_VERIFY_EQUAL | SAPGUI_VERIFY_CASE_SENSITIVE,OR); 
  end TMain;