SapGuiSelectRadioButton Function

Action

Selects the specifed SapGui radio button.

Include file

SapGui.bdh

Syntax

SapGuiSelectRadioButton( in sControlId : string allownull,
                         in sTimer     : string optional ) : boolean;
Parameter Description
sControlId The uniquely identifying id of a radio button control.
sTimer Timer name used for measurements.

Return value

  • true if successful
  • false otherwise

Example

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.9);
    SapGuiLogon("ddic", "*******", "000", "");

    // Copyright
    SapGuiPressButton("tbar[1]/btn[28]");

    // Mappenselektion
    ThinkTime(4.0);
    SapGuiSetActiveWindow("wnd[1]", "Mappenselektion", SAPGUI_MATCH_Exact);
    SapGuiSelectRadioButton("usr/radSOS06-S_FOLPRV", "Private");
    SapGuiSetFocus("usr/radSOS06-S_FOLPRV");
    SapGuiPressButton("tbar[0]/btn[12]");
  end TMain;