<?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 on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101253#M980728</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;Use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if rad1, rad2 are your radiobuttons then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: rad1 radiobutton group gp1 &lt;STRONG&gt;user-command ONLI&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;            rad2 radiobutton group gp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;STRONG&gt;user-command ONLI&lt;/STRONG&gt; is the pharse which will tigger the execution of the program. Since ONLI is the function code for the execute function(F8) so when u will click the radio button this code will be called which will trigger the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khusro Habib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 04:12:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T04:12:49Z</dc:date>
    <item>
      <title>Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101252#M980727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I got 3 radiobutton on the selection screen. &lt;/P&gt;&lt;P&gt;Now my requirement is, Usually we Execute the program by using F8 function key but i should also Execute the program when i click on one of the radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;       NSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 04:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101252#M980727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T04:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101253#M980728</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;Use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if rad1, rad2 are your radiobuttons then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: rad1 radiobutton group gp1 &lt;STRONG&gt;user-command ONLI&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;            rad2 radiobutton group gp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;STRONG&gt;user-command ONLI&lt;/STRONG&gt; is the pharse which will tigger the execution of the program. Since ONLI is the function code for the execute function(F8) so when u will click the radio button this code will be called which will trigger the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khusro Habib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 04:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101253#M980728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T04:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101254#M980729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the USER-COMMAND along with the radiobutton declaration, and in the at selection-screen event write stmts to check the user-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-ucomm = 'BUT1'.&lt;/P&gt;&lt;P&gt;   stmts.....&lt;/P&gt;&lt;P&gt;elseif sy-ucomm = 'BUT2'.&lt;/P&gt;&lt;P&gt;   stmts....&lt;/P&gt;&lt;P&gt;elseif sy-ucomm = 'BUT3'.&lt;/P&gt;&lt;P&gt;   stmts....&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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 04:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101254#M980729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T04:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101255#M980730</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;As per your requirement  you need to use the USER-COMMAND 'onli' in your delcaration part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have 3 radio buttons you must have declared them in a group.  So, just add the following code in your delcaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: rb_1 TYPE /sapapo/radio_lo RADIOBUTTON GROUP r1 USER-COMMAND onli DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, onli is the value that field sy-ucomm contains when you press F8 on screen. If you delcare the radiobutton group like this, then you can execute your program on the click of the radiobutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 04:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101255#M980730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T04:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101256#M980731</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;PRE&gt;&lt;CODE&gt;DATA : _ok_code TYPE sy-ucomm.

PARAMETERS: RAD1 radiobutton group gp1 user-command ONLI,
RAD2 radiobutton group gp1  .


MODULE user_command_9000 INPUT.

 if RAD1 EQ 'X'.  

   ......
     CALL SCREEN ........... 

   If RAD2 EQ 'X'.
  .....
      CALL SCREEN ........ 
       ........
       .....
  
  endif.
ENDMODULE.                 " USER_COMMAND_9000  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&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;dhanashri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Jul 7, 2008 6:25 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Jul 7, 2008 8:12 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Aug 1, 2008 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 04:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101256#M980731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T04:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101257#M980732</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;U can achive it in &lt;STRONG&gt;Module Pool Program&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Out the report below....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEMO_DYNPRO_CHECK_RADIO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in &lt;STRONG&gt;Executable report&lt;/STRONG&gt; use &lt;STRONG&gt;At selection-screen output&lt;/STRONG&gt; event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can refer below threads...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3004081"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1094744"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1773154"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 05:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101257#M980732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T05:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101258#M980733</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;Below i attached sample code for your requirement. It will be more useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1.&lt;/P&gt;&lt;P&gt;PARAMETERS : TEXT RADIOBUTTON GROUP GRP1 user-command uc.&lt;/P&gt;&lt;P&gt;parameters : file_txt type localfile modif id txt.&lt;/P&gt;&lt;P&gt;   PARAMETERS   : CSV  RADIOBUTTON GROUP GRP1.&lt;/P&gt;&lt;P&gt;   parameters :  file_csv type localfile modif id csv.&lt;/P&gt;&lt;P&gt;       PARAMETERS     :    XLS RADIOBUTTON  GROUP GRP1.&lt;/P&gt;&lt;P&gt;       parameters : file_xls type localfile modif id xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  if csv = 'X' .&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'CSV'.&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;      if screen-group1 = 'TXT'.&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;      if screen-group1 = 'XLS'.&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;    endloop.&lt;/P&gt;&lt;P&gt;   elseif text = 'X'.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'TXT'.&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;      if screen-group1 = 'CSV'.&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;      if screen-group1 = 'XLS'.&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;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'XLS'.&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;      if screen-group1 = 'TXT'.&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;      if screen-group1 = 'CSV'.&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;    endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 06:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101258#M980733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T06:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101259#M980734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;  P_SYS    RADIOBUTTON GROUP RAD       " System generated materials&lt;/P&gt;&lt;P&gt;           USER-COMMAND ONLI,&lt;/P&gt;&lt;P&gt;  P_NOSYS  RADIOBUTTON GROUP RAD.      " Non-System generated materials&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 06:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-on-selection-screen/m-p/4101259#M980734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T06:12:53Z</dc:date>
    </item>
  </channel>
</rss>

