SapGuiTableGetRowCount Function

Action

Returns the number of rows for the specified table.

Include file

SapGui.bdh

Syntax

SapGuiTableGetRowCount( in sControlId : string; 
                        in nRows      : number ) : boolean;
Parameter Description
sControlId The unique id of the control.
nRows The parameter will be assigned the number of rows on success.

Return value

  • true if the radio button is selected.
  • false otherwise

Example

transaction TMain
  var
    nRows : number;
  begin
    // Connecting to SAP
    sConnID := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.132 0 /3");
    SapGuiSetActiveConnection("/app/con[0]");
    SapGuiSetActiveSession("ses[0]");

    // SAP
    SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_Exact);
    SapGuiWindowResize(117, 28, false);
    SapGuiLogon("bcuser", "*******", "000", "");
    SapGuiTableGetRowCount("tables/SapTable", nRows);
  end TMain;