<?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 event. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349690#M1540447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joskin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply create radio button group, and then there is option to add FctCode for this group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can switch ok_code in PAI of given screen and check when ok_code = fctcode ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need also define variables for radio buttons as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ok_code type syucomm.
DATA: rb_1 type c,
      rb_2 type c,
      rb_3 type c,
      rb_4 type c.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in PAI (selected rb is marked with 'X'):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE ok_code.
    WHEN 'RADIO'.   "this is FctCode for our radio button group
      IF rb_1 IS NOT INITIAL.
        ...
      ELSEIF rb_2 IS NOT INITIAL.
        ...
      ELSEIF rb_3 IS NOT INITIAL.
        ...
      ELSEIF rb4 IS NOT INITIAL.
        ...
      ENDIF.
  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matus Misak on Oct 12, 2010 4:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 14:43:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-12T14:43:43Z</dc:date>
    <item>
      <title>Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349688#M1540445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding radiobutton event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a group of 4 radiobuttons and sucessfully linked them in screen painter so there can be only one selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to know if it's possible to generate an event where I could insert some code, when I change the selected radio button? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found on this forum that when you create a group of radiobutton by code, you can give a name to this group. And then use the event "At Selection-Screen on Radiobutton Group XXX" but how can I define the name of the group when creating the radiobuttons in the screen painter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349688#M1540445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T13:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349689#M1540446</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 to assign Fcode for your radio button, then implement in user_command module. More information please check sample report DEMO_DYNPRO_CHECK_RADIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 14:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349689#M1540446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349690#M1540447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joskin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply create radio button group, and then there is option to add FctCode for this group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can switch ok_code in PAI of given screen and check when ok_code = fctcode ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need also define variables for radio buttons as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ok_code type syucomm.
DATA: rb_1 type c,
      rb_2 type c,
      rb_3 type c,
      rb_4 type c.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in PAI (selected rb is marked with 'X'):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE ok_code.
    WHEN 'RADIO'.   "this is FctCode for our radio button group
      IF rb_1 IS NOT INITIAL.
        ...
      ELSEIF rb_2 IS NOT INITIAL.
        ...
      ELSEIF rb_3 IS NOT INITIAL.
        ...
      ELSEIF rb4 IS NOT INITIAL.
        ...
      ENDIF.
  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matus Misak on Oct 12, 2010 4:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 14:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349690#M1540447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T14:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349691#M1540448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this,&lt;/P&gt;&lt;P&gt;Create a subscreen sub1 in screen 100. Then execute it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report test.
SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
PARAMETERS : r1 radiobutton group A user-command abc,
           r2 radiobutton group A .
SELECTION-SCREEN END OF SCREEN 300 .

CALL SCREEN 100 .
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
break-point.
endmodule.                 " STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module USER_COMMAND_0100 input.
Break-point.
endmodule.                 " USER_COMMAND_0100  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In flow logic&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN sub1 INCLUDING sy-repid '0300'.
PROCESS AFTER INPUT.
  MODULE user_command_0100.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 15:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349691#M1540448</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-10-12T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349692#M1540449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the same example that keshav posted in selection-screen would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : r1 radiobutton group A user-command abc,
                        r2 radiobutton group A .

at selection-screen on radiobutton group A.
break-point.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 16:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349692#M1540449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349693#M1540450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;    You can do this by assigning USER-COMMAND extension to first radiobutton and then use AT SELECTIO-SCREEN ON RADIOBUTTON GROUP event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : SSCRFIELDS.
PARAMETERS : a RADIOBUTTON GROUP rd1 USER-COMMAND RCOMMAND,
             b RADIOBUTTON GROUP rd1 ,
             c RADIOBUTTON GROUP rd1 .

at SELECTION-SCREEN ON RADIOBUTTON GROUP RD1.
IF SSCRFIELDS-UCOMM = 'RCOMMAND'.
"your code
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 17:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349693#M1540450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349694#M1540451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anmol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works fine. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jürg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 09:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-event/m-p/7349694#M1540451</guid>
      <dc:creator>florgodi</dc:creator>
      <dc:date>2013-06-19T09:50:43Z</dc:date>
    </item>
  </channel>
</rss>

