<?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: Selection screen check boxes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658092#M291985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the example of RADIO BUTTON.&lt;/P&gt;&lt;P&gt;Use the same logic for CHECK BOXES as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/34a23dd9b511d1950e0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/34a23dd9b511d1950e0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 10:03:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T10:03:43Z</dc:date>
    <item>
      <title>Selection screen check boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658091#M291984</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;  I have selection screen which should display the fields on clicking on the checkboxes. There are 7 checkboxes and I want to display fields for selection on selecting each of the check box. How do I go about doing this. Can anyone help. This is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt; Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658091#M291984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen check boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658092#M291985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the example of RADIO BUTTON.&lt;/P&gt;&lt;P&gt;Use the same logic for CHECK BOXES as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/34a23dd9b511d1950e0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/34a23dd9b511d1950e0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658092#M291985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen check boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658093#M291986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sowmya,&lt;/P&gt;&lt;P&gt;Just assign same Modif ID to all the fields which should be displayed on Clicking the Checkbox. Also assign the same Modif ID to the checbox itself.&lt;/P&gt;&lt;P&gt;Also make the fields invisible/visible in the AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;Have a look at the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_1 AS CHECKBOX DEFAULT 'X' MODIF ID umc. "Checbox 1&lt;/P&gt;&lt;P&gt;PARAMETERS p_2 AS CHECKBOX  MODIF ID umd."Checkbox 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_3  TYPE mara-matnr MODIF ID umc."Fields with Check box1 &lt;/P&gt;&lt;P&gt;PARAMETERS p_4  TYPE mara-matkl MODIF ID umc."Fields with Check box1 &lt;/P&gt;&lt;P&gt;PARAMETERS p_5  TYPE mseg-lifnr MODIF ID umd."Fields with Check box2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt; CASE 'X'.&lt;/P&gt;&lt;P&gt; WHEN p_1.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;            IF screen-group1 EQ 'UMD'.&lt;/P&gt;&lt;P&gt;                  screen-active = 0.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  WHEN p_2.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;            IF screen-group1 EQ 'UMC'.&lt;/P&gt;&lt;P&gt;                  screen-active = 0.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chetan.&lt;/P&gt;&lt;P&gt;PS:Reward points if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658093#M291986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen check boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658094#M291987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;selection-screen begin of block b3 with frame.&lt;/P&gt;&lt;P&gt;   parameter: ch_exe as checkbox default space user-command ch_exe.&lt;/P&gt;&lt;P&gt;   select-options: so_iwerk for iflo-iwerk no-extension no intervals&lt;/P&gt;&lt;P&gt;                           obligatory modif id exe.&lt;/P&gt;&lt;P&gt;selection-screen end of block b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Initially disable so_iwerk as mandatory&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name eq 'SO_IWERK-LOW'.&lt;/P&gt;&lt;P&gt;     screen-required = 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;If check box is checked make so_iwerk as mandatory&lt;/P&gt;&lt;P&gt; if ch_exe eq 'X'.&lt;/P&gt;&lt;P&gt;   loop at screen.&lt;/P&gt;&lt;P&gt;     if screen-name eq 'SO_IWERK-LOW'.&lt;/P&gt;&lt;P&gt;        screen-required = 1.&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;&lt;/P&gt;&lt;P&gt;You can enable or disable fields similarly using screen-input = 0 or 1 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658094#M291987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen check boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658095#M291988</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;Maybe below example can give you some idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of line.
  parameters: p_chk1 as checkbox user-command ABC.
  selection-screen comment 3(10) chk1 for field p_chk1.
  selection-screen position 20.
  parameters: p_text1(10) type c.
selection-screen end of line.

at selection-screen output.
  loop at screen.
     check screen-name = 'P_TEXT1'.
     if not p_chk1 is initial.
        screen-active = 1.
     else.
        screen-active = 0.
     endif.
     modify screen.
  endloop.

initialization.
  move 'First Text' to chk1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658095#M291988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen check boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658096#M291989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&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;Executing User Commands (AT USER-COMMAND AND AT LINE-SELECTION) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND event is used in interactive reporting. The code between the AT USER-COMMAND and the ENDAT command is executed when the user enters data into the OK code field(the upper-left entry field on the screen where you enter transactions). The data entered into the OK code field is stored in the system field SY-UCOMM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND. &lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM. &lt;/P&gt;&lt;P&gt;    WHEN 'DETAIL'. &lt;/P&gt;&lt;P&gt;        SELECT * FROM BSEG WHERE BELNR = BKPF-BELNR. &lt;/P&gt;&lt;P&gt;..... &lt;/P&gt;&lt;P&gt;ENDCASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AT LINE-SELECTION comand defines the code thats executed after a user double-clicks a line or presses the F2 function key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION. &lt;/P&gt;&lt;P&gt;SELECT * FROM BSEG WHERE GJAHR = BKPF-GJAHR. &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;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 10:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-check-boxes/m-p/1658096#M291989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T10:22:45Z</dc:date>
    </item>
  </channel>
</rss>

