<?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 selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022737#M1347958</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;REPORT ZRAIDOBUTTON.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(10) text-003 FOR FIELD rd1 .&lt;/P&gt;&lt;P&gt;PARAMETERS : rd1 RADIOBUTTON GROUP rgb USER-COMMAND usd .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(10) text-002 FOR FIELD rd2 .&lt;/P&gt;&lt;P&gt;PARAMETERS : rd2 RADIOBUTTON GROUP rgb DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To make second button as default use below code:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRADIOBUTTON.&lt;/P&gt;&lt;P&gt;PARAMETERS : rd1 RADIOBUTTON GROUP rgb USER-COMMAND usd ,&lt;/P&gt;&lt;P&gt;                         rd2 RADIOBUTTON GROUP rgb DEFAULT 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 06:32:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-04T06:32:11Z</dc:date>
    <item>
      <title>Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022732#M1347953</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 was using the popup_alv_selec to display some records and selecting one record.But here there is a check box,so multiple selection available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need only one selection.If i try to select more than one it must not allow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to display the radio buttons instead of check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me with the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022732#M1347953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T06:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022733#M1347954</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;Please Refer following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-100.&lt;/P&gt;&lt;P&gt;PARAMETER: rad1 TYPE c RADIOBUTTON GROUP grp1 USER-COMMAND b1.&lt;/P&gt;&lt;P&gt;PARAMETER: rad2 TYPE c RADIOBUTTON GROUP grp1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rad1 eq 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'radio button 1 is clicked'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif rad2 eq 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'radio button 2 is clicked'.&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;thanks &amp;amp;regards,&lt;/P&gt;&lt;P&gt;Shreemohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022733#M1347954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T06:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022734#M1347955</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;check this link and search for the code samples u want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;link:[Code Gallery|https://wiki.sdn.sap.com/wiki/display/Snippets/Home?showChildren=true#children]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshu Thekkillam on Aug 4, 2009 11:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022734#M1347955</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-04T06:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022735#M1347956</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 below mentioned codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a WITH frame title text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: rb_psv RADIOBUTTON GROUP rbg1 USER-COMMAND abc&lt;/P&gt;&lt;P&gt;                                             DEFAULT 'X',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            rb_asv RADIOBUTTON GROUP rbg1,&lt;/P&gt;&lt;P&gt;            po_psv LIKE ibipparms-path modif id AAA,&lt;/P&gt;&lt;P&gt;            po_asv LIKE ibipparms-path modif id BBB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a.&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;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022735#M1347956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T06:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022736#M1347957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   Can u please elobrate the problem so that it is more understandable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022736#M1347957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T06:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022737#M1347958</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;REPORT ZRAIDOBUTTON.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(10) text-003 FOR FIELD rd1 .&lt;/P&gt;&lt;P&gt;PARAMETERS : rd1 RADIOBUTTON GROUP rgb USER-COMMAND usd .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(10) text-002 FOR FIELD rd2 .&lt;/P&gt;&lt;P&gt;PARAMETERS : rd2 RADIOBUTTON GROUP rgb DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To make second button as default use below code:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRADIOBUTTON.&lt;/P&gt;&lt;P&gt;PARAMETERS : rd1 RADIOBUTTON GROUP rgb USER-COMMAND usd ,&lt;/P&gt;&lt;P&gt;                         rd2 RADIOBUTTON GROUP rgb DEFAULT 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022737#M1347958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T06:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022738#M1347959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;req is to create option buttons in ALV ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022738#M1347959</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-04T06:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022739#M1347960</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;&lt;/P&gt;&lt;P&gt;Usage of Radio buttons in ALV Report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add an extra field for Radiobutton of type char with length 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Populate the values for Radiobuttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   To display Selected Radiobutton then need to use  icon_radiobutton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if empty radiobutton then use icon_wd_radio_button_empty . Modify the internal  table with the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Fieldcatalog Population&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   For the Radiobutton field mark the ICON = 'X' and HOTSPOT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Handling of the Radiobuttons in the Runtime can be done using the USER_COMMAND event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Complete coding|https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-&lt;EM&gt;Radio&lt;/EM&gt;Buttons&lt;EM&gt;in&lt;/EM&gt;ALV&lt;EM&gt;GRID&lt;/EM&gt;REPORT]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer Following link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp;regards,&lt;/P&gt;&lt;P&gt;Shreemohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022739#M1347960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T06:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022740#M1347961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope u will get some help...&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;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 07:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022740#M1347961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T07:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Radio button in selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022741#M1347962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Ramya, 
Try this way to get radio buttons on ALV output.
&lt;PRE&gt;&lt;CODE&gt; REPORT ztest_notepad.
 DATA: BEGIN OF it_t100 OCCURS 0,
         radbut   TYPE char4,
         arbgb    LIKE t100-arbgb,
         msgnr    LIKE t100-msgnr,
         text     LIKE t100-text,
       END OF it_t100.
 INCLUDE &amp;lt;icon&amp;gt;.
 DATA:program TYPE sy-repid VALUE sy-repid.
 TYPE-POOLS slis.
 DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
      wa_fieldcat LIKE LINE OF it_fieldcat.
 DEFINE fieldcatalog.
   wa_fieldcat-fieldname = &amp;amp;1.
   wa_fieldcat-tabname   = 'IT_T100'.
   wa_fieldcat-icon      = &amp;amp;2.
   wa_fieldcat-hotspot   = &amp;amp;3.
   wa_fieldcat-seltext_m = &amp;amp;4.
   append wa_fieldcat to it_fieldcat.
   clear  wa_fieldcat.
 END-OF-DEFINITION.

 START-OF-SELECTION.
   SELECT * FROM t100 INTO TABLE it_t100 UP TO 100 ROWS.
   LOOP AT it_t100.
     IF sy-tabix = 1.
       it_t100-radbut = icon_radiobutton.
     ELSE.
       it_t100-radbut = icon_wd_radio_button_empty.
     ENDIF.
     MODIFY it_t100 INDEX sy-tabix TRANSPORTING radbut.
   ENDLOOP.
   fieldcatalog: 'RADBUT' 'X' 'X' 'CHECKBOX',
                 'ARBGB'    ''  ''  'ARBGB'   ,
                 'MSGNR'    ''  ''  'MSGNR'   ,
                 'TEXT'     ''  ''  'TEXT'    .
   CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
     EXPORTING
       i_callback_program      = program
       i_callback_user_command = 'USER_COMMAND'
       it_fieldcat             = it_fieldcat
     TABLES
       t_outtab                = it_t100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_command
*&amp;amp;---------------------------------------------------------------------*
 FORM user_command USING ucomm TYPE sy-ucomm selfield TYPE slis_selfield.
   IF ucomm = '&amp;amp;IC1'.
     READ TABLE it_t100 INDEX selfield-tabindex.
     CASE selfield-fieldname.
       WHEN 'RADBUT'.
         IF it_t100-radbut NE icon_radiobutton.
           READ TABLE it_t100 WITH KEY radbut = icon_radiobutton.
           IF sy-subrc EQ 0.
             it_t100-radbut = icon_wd_radio_button_empty.
             MODIFY it_t100 INDEX sy-tabix.
             it_t100-radbut = icon_radiobutton.
             MODIFY it_t100 INDEX selfield-tabindex TRANSPORTING radbut.
           ENDIF.
         ENDIF.
     ENDCASE.
     selfield-refresh = 'X'.
   ENDIF.
 ENDFORM.                    "user_command&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 08:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button-in-selection/m-p/6022741#M1347962</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-08-04T08:07:46Z</dc:date>
    </item>
  </channel>
</rss>

