<?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: manipulate 2 checkboxes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636569#M1091648</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;Your code seemed to be working fine..If you check one the other is getting disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check atleast one is checked..THen use AT SELECTION-SCREEN...and validate the checkboxes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen.

if p_post is initial and p_park is initial.
  message e208(00) with 'Atleast one should be checked'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 14:39:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T14:39:26Z</dc:date>
    <item>
      <title>manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636567#M1091646</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 have to display 2 checkboxes on a selection screen, whereby one should be mandatory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when one is checked, the other is disabled &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did smthing like this but its not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :     p_post AS CHECKBOX  USER-COMMAND usr default 'X',&lt;/P&gt;&lt;P&gt;                 p_park AS CHECKBOX USER-COMMAND usr1.&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 p_post = 'X'.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'P_PARK'.&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;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF p_park = 'X'.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'P_POST'.&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;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636567#M1091646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636568#M1091647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use simple radio buttons, only one can be active at any given time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636568#M1091647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636569#M1091648</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;Your code seemed to be working fine..If you check one the other is getting disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check atleast one is checked..THen use AT SELECTION-SCREEN...and validate the checkboxes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen.

if p_post is initial and p_park is initial.
  message e208(00) with 'Atleast one should be checked'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636569#M1091648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636570#M1091649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its working but i dont need the message,&lt;/P&gt;&lt;P&gt;is there another alternative?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636570#M1091649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636571#M1091650</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;Not sure if I understood your requirements...You want to make them mandatory..but you don't want the message..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this what you want?please let me know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 14:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636571#M1091650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636572#M1091651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this , is it that you are expecting..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: p_flag.
PARAMETERS : p_post AS CHECKBOX USER-COMMAND usr DEFAULT 'X',
p_park AS CHECKBOX USER-COMMAND usr1.

AT SELECTION-SCREEN OUTPUT.

  IF p_park = 'X' .
    p_flag = 'X'.
  ELSEIF p_post = 'X'.
    p_flag = ''.
  ENDIF.
  IF p_flag = '' AND
     p_park = '' AND
     p_post = '' .
    p_flag = 'X'.
  ELSE.
    p_flag = ' '.
  ENDIF.
  LOOP AT SCREEN.
    IF p_flag = ' '.
      p_post = 'X'.
      IF screen-name = 'P_PARK'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ELSE.
      p_park = 'X'.
      IF p_flag = 'X'.
        IF screen-name = 'P_POST'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i just manipulated and coded see it works or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 15:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636572#M1091651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T15:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636573#M1091652</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;This disabling should be done only when any of CHECK BOX selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
  IF SY-UCOMM = 'USR'   OR
      SY-UCOMM = 'USR1'.
    LOOP AT SCREEN.
      IF p_post = 'X'.
        IF screen-name = 'P_PARK'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDIF.

      IF p_park = 'X'.
        CLEAR P_POST.
        IF screen-name = 'P_POST'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDIF.
    ENDLOOP.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want any one should be selected, then you should clear&lt;/P&gt;&lt;P&gt;P_POST when P_PARK is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.Nagarajan.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; We can -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 15:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636573#M1091652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: manipulate 2 checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636574#M1091653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use Radiobutton to have it work automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_post type c radiobutton group 1 default 'X',&lt;/P&gt;&lt;P&gt;p_park type c radiobutton group 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 15:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/manipulate-2-checkboxes/m-p/4636574#M1091653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T15:08:43Z</dc:date>
    </item>
  </channel>
</rss>

