<?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: Radio Button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577220#M589013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Assing a user-command to the radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if rad1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'PAR1' or SCREEN-NAME = 'PAR2'.
SCREEN-INPUT = 0. "TO make it read only
SCREEN-ACTIVE = 0. " TO Hide based on your requirement use any one line
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
if rad2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'PAR1' or SCREEN-NAME = 'PAR2'.
SCREEN-INPUT = 1. "TO make it read only
SCREEN-ACTIVE = 1. " TO Hide based on your requirement use any one line
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 05:55:02 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-08-02T05:55:02Z</dc:date>
    <item>
      <title>Radio Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577219#M589012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a req:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have 2 radio buttons on selection screen and two parameters input fields. When first radio button is selected have I have disable the 2 parameter input fields, and when second radio button is selected I have to enable the 2 parameter input fields. By default first radio button is selected, so there itself I have to make that 2 parameter input fields inactive, when second radio button is selected I have to make the 2 input fields as active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you plz help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577219#M589012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T05:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577220#M589013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Assing a user-command to the radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if rad1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'PAR1' or SCREEN-NAME = 'PAR2'.
SCREEN-INPUT = 0. "TO make it read only
SCREEN-ACTIVE = 0. " TO Hide based on your requirement use any one line
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
if rad2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'PAR1' or SCREEN-NAME = 'PAR2'.
SCREEN-INPUT = 1. "TO make it read only
SCREEN-ACTIVE = 1. " TO Hide based on your requirement use any one line
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577220#M589013</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-02T05:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577221#M589014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : chk as checkbox user-command abc.

*--------------- Block 1
selection-screen begin of block b1 with frame .
parameters : a(10) type c modif id bk1.
selection-screen end of block b1.


*--------------- Block 2
selection-screen begin of block b2 with frame .
parameters : b(10) type c modif id bk2.
parameters : c(10) type c modif id bk2.
parameters : d(10) type c modif id bk2.
selection-screen end of block b2.


*----------------------------------
at selection-screen output.

  loop at screen.
    if chk = 'X'.
      if screen-group1 = 'BK1'.
        screen-invisible = 1.
        screen-input = 0.
        modify screen.
      endif.
    endif.

    if chk is initial.
      if screen-group1 = 'BK2'.
        screen-invisible = 1.
        screen-input = 0.
        modify screen.
      endif.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this similar code with check box instead of radio button.&lt;/P&gt;&lt;P&gt;change the check box to radio buttons.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577221#M589014</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-08-02T05:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577222#M589015</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;Here is a code which does what is the funcationality you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters :&lt;/P&gt;&lt;P&gt;  RB_1  RADIOBUTTON GROUP G1 USER-COMMAND A1," USER-COMMAND is used to trigger event and got AT SEELCTION-SCREEN , here we do not require it&lt;/P&gt;&lt;P&gt;  RB_2  RADIOBUTTON GROUP G1 ,&lt;/P&gt;&lt;P&gt;  P1 TYPE MATNR ,&lt;/P&gt;&lt;P&gt;  P2 TYPE MATNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF RB_1 = 'X'.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'P1' OR&lt;/P&gt;&lt;P&gt;       SCREEN-NAME = 'P2'.&lt;/P&gt;&lt;P&gt;       SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;       MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;    ELSEIF  RB_2 = 'X'.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'P1' OR&lt;/P&gt;&lt;P&gt;       SCREEN-NAME = 'P2'.&lt;/P&gt;&lt;P&gt;       SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;       MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 05:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2577222#M589015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T05:58:36Z</dc:date>
    </item>
  </channel>
</rss>

