SapGuiTableGetColumnCount Function

Action

Returns the number of columns for the specified table.

Include file

SapGui.bdh

Syntax

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

Return value

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

Example

transaction TMain
  var
    nCols : 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", "");
    SapGuiTableGetColumnCount("tables/SapTable", nCols);
  end TMain;