<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: changing radio button property dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690612#M1102605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN: BEGIN OF BLOCK b1.
  PARAMETERS: b1r1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ucomm1,
              b1r2 RADIOBUTTON GROUP g1.
SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN: BEGIN OF BLOCK b2.
  PARAMETERS: b2r1 RADIOBUTTON GROUP g2 USER-COMMAND UCOMM2 MODIF ID MD1,
              b2r2 RADIOBUTTON GROUP g2 MODIF ID MD2.
SELECTION-SCREEN: END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
  IF b1r1 = 'X'.
    if screen-group1 = 'MD2'.
      screen-input = 0.
    endif.
  ELSEIF b1r2 = 'X'.
    if screen-group1 = 'MD1'.
      screen-input = 0.
    endif.
  ENDIF.

  MODIFY SCREEN.
  ENDLOOP.

  AT SELECTION-SCREEN.
    IF b1r1 = 'X'.
    b2r1 = 'X'.
    b2r2 = ''.

  ELSEIF b1r2 = 'X'.
    b2r2 = 'X'.
    b2r1 = ''.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 04:50:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-29T04:50:00Z</dc:date>
    <item>
      <title>changing radio button property dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690608#M1102601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I decalred two blocks in selection screen named B1 and B2, each have 2 radio buttions. &lt;/P&gt;&lt;P&gt;B1 has radio button named B1R1 and B1R2.&lt;/P&gt;&lt;P&gt;B2 has radio button named B2R1 and B2R2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select B1R1 then B2R1 should be selected and B2R2 should be disabled(user should not able to select).&lt;/P&gt;&lt;P&gt;If i select B1R2 then B2R2 should be selected and B2R1 should be disabled(user should not able to select).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 23:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690608#M1102601</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2008-10-28T23:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button property dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690609#M1102602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you even need radio button group B2 on the screen then? You can use check boxes and set those based on the radio button B1 group value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 23:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690609#M1102602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T23:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button property dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690610#M1102603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for example i used 2 radio buttons. In actual senario there are more radio buttons and each has differrent process. So  user should be able to select only one option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 00:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690610#M1102603</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2008-10-29T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button property dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690611#M1102604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at the solution in this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1084384"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 00:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690611#M1102604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T00:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button property dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690612#M1102605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN: BEGIN OF BLOCK b1.
  PARAMETERS: b1r1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ucomm1,
              b1r2 RADIOBUTTON GROUP g1.
SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN: BEGIN OF BLOCK b2.
  PARAMETERS: b2r1 RADIOBUTTON GROUP g2 USER-COMMAND UCOMM2 MODIF ID MD1,
              b2r2 RADIOBUTTON GROUP g2 MODIF ID MD2.
SELECTION-SCREEN: END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
  IF b1r1 = 'X'.
    if screen-group1 = 'MD2'.
      screen-input = 0.
    endif.
  ELSEIF b1r2 = 'X'.
    if screen-group1 = 'MD1'.
      screen-input = 0.
    endif.
  ENDIF.

  MODIFY SCREEN.
  ENDLOOP.

  AT SELECTION-SCREEN.
    IF b1r1 = 'X'.
    b2r1 = 'X'.
    b2r2 = ''.

  ELSEIF b1r2 = 'X'.
    b2r2 = 'X'.
    b2r1 = ''.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 04:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-property-dynamically/m-p/4690612#M1102605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T04:50:00Z</dc:date>
    </item>
  </channel>
</rss>

