<?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: Radiobutton: clear default selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828860#M353436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within a radiobutton group,  exactly one radiobutton must be set on.  You can not have a radiobutton group which has no default.  It is simply not possible in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2007 22:02:15 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-01-15T22:02:15Z</dc:date>
    <item>
      <title>Radiobutton: clear default selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828859#M353435</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;I have two blocks in my selection screen. two of them have a group of radiobuttons. when I executed the selection screen first radiobutton of each group are selected default, which is true. but my requirement is show the 1st radiobutton of the 2nd group not selected initially. I know it is trickey. I think it is not possible, please let me know your comments. If required more information, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 21:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828859#M353435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T21:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton: clear default selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828860#M353436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within a radiobutton group,  exactly one radiobutton must be set on.  You can not have a radiobutton group which has no default.  It is simply not possible in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 22:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828860#M353436</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-15T22:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton: clear default selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828861#M353437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use checkboxes instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 22:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828861#M353437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T22:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton: clear default selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828862#M353438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly,  you can simulate the radiobutton functionality using checkboxes and when using checkboxes, no default is required.  See the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT zrich_0001.



PARAMETERS: p_check1 AS CHECKBOX USER-COMMAND check,
            p_check2 AS CHECKBOX USER-COMMAND check,
            p_check3 AS CHECKBOX USER-COMMAND check.

DATA: cursorfield(20) TYPE c.

AT SELECTION-SCREEN.


  GET CURSOR FIELD cursorfield.

  IF cursorfield = 'P_CHECK1'.
    p_check2 = space.
    p_check3 = space.
  ELSEIF  cursorfield = 'P_CHECK2'.
    p_check1 = space.
    p_check3 = space.
  ELSEIF cursorfield = 'P_CHECK3'.
    p_check1 = space.
    p_check2 = space.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 23:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828862#M353438</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-15T23:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton: clear default selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828863#M353439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surya,&lt;/P&gt;&lt;P&gt; One way could be you can hide the unselected second selection block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two selection block a01 and a02. There are two radio button (p_r1, p_r2) in a1. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If p_r1 is choosed, selection block a02 is not  displayed; 
if p_r2 is choosed, selection block a02 is  displayed.

selection-screen: begin of block a01 with frame.
parameters: p_r1 radiobutton group rg1 default 'X' user-command uc,               
                  p_r2 radiobutton group rg1.
selection-screen: end of block a01.
 
selection-screen: begin of block a02 with frame.
selection-screen: begin of line,
pushbutton 33(20) selp user-command sel modif id chk ,
comment 55(13) selcnt  modif id chk,
end of line.
*SELECTION-SCREEN: SKIP.
parameters: p_count type i  modif id chk .
selection-screen: end of block a02.
 
 
at selection-screen output.
 
  if p_r1 = 'X'.
    loop at screen .
      if screen-group1 = 'CHK'.
        screen-active = 0.
        modify screen.
      endif.
    endloop.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back for more help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 23:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-clear-default-selection/m-p/1828863#M353439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T23:19:00Z</dc:date>
    </item>
  </channel>
</rss>

