<?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 problem.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194428#M129293</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;you have to do this with MODIF ID for the select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt for &amp;lt;field&amp;gt; modif id bk1.&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;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt1 for &amp;lt;field&amp;gt; modif id bk2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt2 for &amp;lt;field&amp;gt; modif id bk3.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  At Selection-screen on s_opt.&lt;/P&gt;&lt;P&gt;   if s_opt is not initial.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       if screen-group1 = 'bk2' or screen-group1 = 'bk3'.&lt;/P&gt;&lt;P&gt;       screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection-screen on s_opt1.&lt;/P&gt;&lt;P&gt;   if s_opt1 is not initial.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       if screen-group1 = 'bk1' or screen-group1 = 'bk3'.&lt;/P&gt;&lt;P&gt;       screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection-screen on s_opt2.&lt;/P&gt;&lt;P&gt;   if s_opt2 is not initial.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       if screen-group1 = 'bk2' or screen-group1 = 'bk1'.&lt;/P&gt;&lt;P&gt;       screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Harikishore Sreenivasulu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2006 04:03:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-23T04:03:53Z</dc:date>
    <item>
      <title>selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194427#M129292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all...&lt;/P&gt;&lt;P&gt;in  a  perticular  report  i have  three  selection criteria  based  on date .. &lt;/P&gt;&lt;P&gt;1)order date&lt;/P&gt;&lt;P&gt;2)delivery date&lt;/P&gt;&lt;P&gt;3) invoice date&lt;/P&gt;&lt;P&gt;and therequirment is  if one date range is given  by the user, the other two date range should be disabled...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 04:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194427#M129292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T04:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194428#M129293</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;you have to do this with MODIF ID for the select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt for &amp;lt;field&amp;gt; modif id bk1.&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;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt1 for &amp;lt;field&amp;gt; modif id bk2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt2 for &amp;lt;field&amp;gt; modif id bk3.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  At Selection-screen on s_opt.&lt;/P&gt;&lt;P&gt;   if s_opt is not initial.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       if screen-group1 = 'bk2' or screen-group1 = 'bk3'.&lt;/P&gt;&lt;P&gt;       screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection-screen on s_opt1.&lt;/P&gt;&lt;P&gt;   if s_opt1 is not initial.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       if screen-group1 = 'bk1' or screen-group1 = 'bk3'.&lt;/P&gt;&lt;P&gt;       screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection-screen on s_opt2.&lt;/P&gt;&lt;P&gt;   if s_opt2 is not initial.&lt;/P&gt;&lt;P&gt;     loop at screen.&lt;/P&gt;&lt;P&gt;       if screen-group1 = 'bk2' or screen-group1 = 'bk1'.&lt;/P&gt;&lt;P&gt;       screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Harikishore Sreenivasulu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 04:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194428#M129293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T04:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194429#M129294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kishan,&lt;/P&gt;&lt;P&gt; You can use..&lt;/P&gt;&lt;P&gt;select-options : s_dat1 for...    MODIF ID B1,&lt;/P&gt;&lt;P&gt;                 s_dat2 for... MODIF ID B2,&lt;/P&gt;&lt;P&gt;                 s_dat3 for .... MODIF ID B3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;At Selection-screen on S_dat1.
   if s_dat1 is not initial.
     loop at screen.
       if screen-group1 = 'B2' or screen-group1 = 'B3'.
       screen-input = '0'.
        endif.
      endloop.
     modify screen.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where B2 and B3 are MODIF ID of select-options for second and third dates..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change this according to your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 04:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194429#M129294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T04:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194430#M129295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kishan,&lt;/P&gt;&lt;P&gt;Then declare the date variable with parameter data type. Hope this serves your purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 04:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194430#M129295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T04:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194431#M129296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Disabled or ignored?  If you are following a certain sequence, meaning, if user enters values in range1 and range2, that you need to ignore the latter, then you can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.



select-options: s_datum1 for sy-datum.
select-options: s_datum2 for sy-datum.
select-options: s_datum3 for sy-datum.

start-of-selection.

  if not s_datum1 is initial.
    clear s_datum2. refresh s_datum2.
    clear s_datum3. refresh s_datum3.
  endif.

  if not s_datum2 is initial.
    clear s_datum1. refresh s_datum1.
    clear s_datum3. refresh s_datum3.
  endif.

  if not s_datum3 is initial.
    clear s_datum1. refresh s_datum1.
    clear s_datum2. refresh s_datum2.
  endif.


  write:/ 'Datum1', s_datum1.
  write:/ 'Datum2', s_datum2.
  write:/ 'Datum3', s_datum3.

&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>Thu, 23 Feb 2006 04:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194431#M129296</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-23T04:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194432#M129297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you wish to disable the fields on the screen.  Then you can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.



select-options: s_datum1 for sy-datum modif id sd1.
select-options: s_datum2 for sy-datum modif id sd2.
select-options: s_datum3 for sy-datum modif id sd3.

at selection-screen output.

  loop at screen.
    if not s_datum1 is initial
        and ( screen-group1 = 'SD2'
          or  screen-group1 = 'SD3' ).
      screen-input = '0'.
      modify screen.
    endif.

    if not s_datum2 is initial
        and ( screen-group1 = 'SD1'
          or  screen-group1 = 'SD3' ).
      screen-input = '0'.
      modify screen.
    endif.

    if not s_datum3 is initial
    and ( screen-group1 = 'SD1'
      or  screen-group1 = 'SD2' ).
      screen-input = '0'.
      modify screen.
    endif.

  endloop.

start-of-selection.

  if not s_datum1 is initial.
    clear s_datum2. refresh s_datum2.
    clear s_datum3. refresh s_datum3.
  endif.

  if not s_datum2 is initial.
    clear s_datum1. refresh s_datum1.
    clear s_datum3. refresh s_datum3.
  endif.

  if not s_datum3 is initial.
    clear s_datum1. refresh s_datum1.
    clear s_datum2. refresh s_datum2.
  endif.


  write:/ 'Datum1', s_datum1.
  write:/ 'Datum2', s_datum2.
  write:/ 'Datum3', s_datum3.

&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>Thu, 23 Feb 2006 04:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194432#M129297</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-23T04:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen problem....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194433#M129298</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 is code is working perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt type d modif id bk1.&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;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt1 type d modif id bk2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: s_opt2 type d modif id bk3.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&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;if s_opt is not initial.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'BK2' or screen-group1 = 'BK3'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&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;if s_opt1 is not initial.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'BK1' or screen-group1 = 'BK3'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&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;if s_opt2 is not initial.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'BK2' or screen-group1 = 'BK1'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 04:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem/m-p/1194433#M129298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T04:20:38Z</dc:date>
    </item>
  </channel>
</rss>

