<?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: Regarding Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159390#M1369875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is code acc to the requirement for 3 sel options.. likewise u cn tke 10 sel options vt same modif id..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:
p_chk AS checkbox USER-COMMAND FCODE.
data:
w_p type i.

select-options:

s_fld1 for w_p modif id MD1,
s_fld2 for w_p modif id MD1,
s_fld3 for w_p modif id MD1.

at selection-screen output.
  if p_chk ne 'X'.
    loop at screen.
    if screen-group1 = 'MD1'.
      screen-active  = 0.
      modify screen.
    ENDIF.
  endloop.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2009 08:13:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-18T08:13:57Z</dc:date>
    <item>
      <title>Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159386#M1369871</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;Here I have problem in selection scree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one check box , after selecting check box I am getting 10 select-options in selection screen,when I am deselecting again , all 10 are disappearing as per my requirement. It is working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                but ,problem is when I am selecting check box , I am getting 10 select options , but after deselecting , they are disappearing , But space is still there...in the selection screen. Could you tell me how to remove the space also,when I am dissecting the check box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddivinesh Jogu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 07:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159386#M1369871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159387#M1369872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1 type c as CHECKBOX USER-COMMAND U1.

SELECT-OPTIONS: s1 for sy-uname MODIF ID m1,
                s2 for sy-uname MODIF ID m1,
                s3 for sy-uname MODIF ID m1,
                s4 for sy-uname MODIF ID m1.
SELECTION-SCREEN end OF BLOCK b1.
SELECTION-SCREEN BEGIN OF block b2 WITH FRAME.
  SELECT-OPTIONS : p2 for sy-abcde.
SELECTION-SCREEN end OF block b2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    if p1 = 'X' and screen-group1 = 'M1'.
      screen-active = 1.
    elseif p1 = '' and screen-group1 = 'M1'.
      screen-active = 0.
    endif.
    MODIFY SCREEN.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Soumyaprakash Mishra on Sep 18, 2009 1:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 07:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159387#M1369872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T07:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159388#M1369873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maintain select-options in another block and enable or disabled the block at once&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 07:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159388#M1369873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T07:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159389#M1369874</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;Maintain those group of select-options in a separate block &amp;amp; enable/disable that block accoding to status of the check box.&lt;/P&gt;&lt;P&gt;else, just declare the seelction screen without blocks, so that, if they disappear, there wont be any space appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sripal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 08:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159389#M1369874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T08:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159390#M1369875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is code acc to the requirement for 3 sel options.. likewise u cn tke 10 sel options vt same modif id..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters:
p_chk AS checkbox USER-COMMAND FCODE.
data:
w_p type i.

select-options:

s_fld1 for w_p modif id MD1,
s_fld2 for w_p modif id MD1,
s_fld3 for w_p modif id MD1.

at selection-screen output.
  if p_chk ne 'X'.
    loop at screen.
    if screen-group1 = 'MD1'.
      screen-active  = 0.
      modify screen.
    ENDIF.
  endloop.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 08:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159390#M1369875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159391#M1369876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have check box with out block and select options in one block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : po_c_bx TYPE c AS CHECKBOX  USER-COMMAND check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;select-options : so_matnr  TYPE mara-matnr MODIF ID g1,&lt;/P&gt;&lt;P&gt;                         so_matkl TYPE mara-matkl  MODIF ID g1.&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;thanks and regards,&lt;/P&gt;&lt;P&gt;Gopalakrishnan Ulagajothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 08:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159391#M1369876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T08:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159392#M1369877</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 have creted check box in one block and other fields in one block still after disecting  the space is there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with all the ways mentioned..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still space is there after..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please provide me any test program..which won't have the space..after diselectiong .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario: I have multiple check boxes, upon selcting which I am getting the selection fields, But upon deselecting the space is remains there..so the selection screen is very lenghy...evnen though I am deselecting..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 08:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159392#M1369877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159393#M1369878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare both the check boxes and the select-option fields in the same selection screen block and check. You wont get the additional space when you make the select options invisible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 09:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159393#M1369878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T09:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159394#M1369879</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,
Try this way.
&lt;PRE&gt;&lt;CODE&gt;
 REPORT ztest_notepad.
 TABLES:pa0001.
                                                            "Block 1
 SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
 PARAMETERS: p_check TYPE c AS CHECKBOX USER-COMMAND u1.
 SELECTION-SCREEN END OF BLOCK blk1.
                                                            "Block 2
 SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME.
 SELECT-OPTIONS: s_date_1 FOR pa0001-begda MODIF ID mo1,
                 s_date_2 FOR pa0001-endda MODIF ID mo1.
 SELECTION-SCREEN END OF BLOCK blk2.
 "AT SELECTION-SCREEN OUTPUT.
 AT SELECTION-SCREEN OUTPUT.
   LOOP AT SCREEN.
     IF p_check       = 'X' AND
        screen-group1 = 'MO1'.
       screen-active = 1.
       MODIFY SCREEN.
     ELSEIF p_check       = space AND
            screen-group1 = 'MO1'.
       screen-active = 0.
       MODIFY SCREEN.
     ENDIF.
   ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 09:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159394#M1369879</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-18T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159395#M1369880</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;Sorry .In the previous post i could not give right answer. 
Try this one.
&lt;PRE&gt;&lt;CODE&gt;
 REPORT ztest_notepad.
 TABLES:pa0001.
                                                            "Block 1
 SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
 PARAMETERS: p_check1 TYPE c AS CHECKBOX USER-COMMAND u1.
 PARAMETERS:p_check2 TYPE c AS CHECKBOX USER-COMMAND u2.
 SELECTION-SCREEN END OF BLOCK blk1.
                                                            "Block 2
 SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME.
 SELECT-OPTIONS: s_date1 FOR pa0001-begda MODIF ID mo1,
                 s_date2 FOR pa0001-endda MODIF ID mo1.
 SELECTION-SCREEN END OF BLOCK blk2.

 SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME.
 SELECT-OPTIONS: s_date11 FOR pa0001-begda MODIF ID mo2,
                 s_date22 FOR pa0001-endda MODIF ID mo2.
 SELECTION-SCREEN END OF BLOCK blk3.

 "AT SELECTION-SCREEN OUTPUT.

 AT SELECTION-SCREEN OUTPUT.
   LOOP AT SCREEN.
     IF p_check1      = 'X' AND
        screen-group1 = 'MO1'.
       screen-active = 1.
       MODIFY SCREEN.
     ELSEIF p_check1       = space AND
            screen-group1 = 'MO1'.
       screen-active = 0.
       MODIFY SCREEN.
     ENDIF.
     IF p_check2      = 'X' AND
        screen-group1 = 'MO2'.
       screen-active = 1.
       MODIFY SCREEN.
     ELSEIF p_check2       = space AND
            screen-group1 = 'MO2'.
       screen-active = 0.
       MODIFY SCREEN.
     ENDIF.
   ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 09:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159395#M1369880</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-18T09:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159396#M1369881</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;Put all the Select-optuons in Group. Make it visible or invisible as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Silas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 11:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selection-screen/m-p/6159396#M1369881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T11:24:29Z</dc:date>
    </item>
  </channel>
</rss>

