<?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: Date range select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299842#M1990152</link>
    <description>&lt;P&gt;Are you sure that the select option is always exactly one date range to be inluded? A select option does offer a lot more possibilities. &lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 20:01:26 GMT</pubDate>
    <dc:creator>BiberM</dc:creator>
    <dc:date>2020-08-13T20:01:26Z</dc:date>
    <item>
      <title>Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299840#M1990150</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;
  &lt;P&gt;I am stuck in a weird scenario where I need to find out all the users who are on holiday for those date entered.&lt;/P&gt;
  &lt;P&gt;I have a select option eg :- issue date ( date field ) .&lt;/P&gt;
  &lt;P&gt;I need to fetch all the records from a table where there are 2 fields i.e start date and end date . ( 2 different fields )&lt;/P&gt;
  &lt;P&gt;Below table for reference.&lt;/P&gt;
  &lt;P&gt;User || start date. || enddate &lt;/P&gt;
  &lt;P&gt; A. || 10.08.2020. || 15.08.2020&lt;/P&gt;
  &lt;P&gt; B. ||. 06.08.2020. ||. 08.08.2020&lt;/P&gt;
  &lt;P&gt; C. || 18.08.2020. || 20.08.2020&lt;/P&gt;
  &lt;P&gt; D. ||. 14.08.2020 ||. 17.08.2020&lt;/P&gt;
  &lt;P&gt;If user enters issue date = 13.08.2020 - 16.08.2020&lt;/P&gt;
  &lt;P&gt;Then user A and D should be shown.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 18:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299840#M1990150</guid>
      <dc:creator>former_member693960</dc:creator>
      <dc:date>2020-08-13T18:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299841#M1990151</link>
      <description>&lt;P&gt;A user should match the selection dates (SEL) or not as shown in this diagram:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;----------------------------------------&amp;gt; TIME

        |---------|
            SEL

User is selected if his/her dates are like this:
|------------|
     |---------------|
             |------------|

User is not selected if his/her dates are like this:
|---|                   |--------------|&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let's say the selection dates are named SEL_START and SEL_END, and the column names are STARTDATE and ENDDATE.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, the user is selected if STARTDATE &amp;lt;= SEL_END AND ENDDATE &amp;gt;= SEL_START&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NB: your table better formatted:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;User  start date  end date
----  ----------  ----------
A     10.08.2020  15.08.2020
B     06.08.2020  08.08.2020
C     18.08.2020  20.08.2020
D     14.08.2020  17.08.2020&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 19:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299841#M1990151</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-08-13T19:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299842#M1990152</link>
      <description>&lt;P&gt;Are you sure that the select option is always exactly one date range to be inluded? A select option does offer a lot more possibilities. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299842#M1990152</guid>
      <dc:creator>BiberM</dc:creator>
      <dc:date>2020-08-13T20:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299843#M1990153</link>
      <description>&lt;P&gt;Do you have a DB-Table which contains every possible date? You could Filter that with your select option and Join the result the way Sandra showed&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299843#M1990153</guid>
      <dc:creator>BiberM</dc:creator>
      <dc:date>2020-08-13T20:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299844#M1990154</link>
      <description>&lt;P&gt;So If user enters in selection screen (1input )&lt;/P&gt;&lt;P&gt;S_date 13.08.2020 - 15.08.2020 ( single select option )&lt;/P&gt;&lt;P&gt;Query = &lt;/P&gt;&lt;P&gt;Select user from dbtable where startdate le s_date-high and end_date ge s_date-low&lt;/P&gt;&lt;P&gt;Thankyou Sandra this might get the job done .&lt;/P&gt;&lt;P&gt;Respectively if I can use s_date-low and high in my select query , &lt;/P&gt;&lt;P&gt;Will try 2mrw &lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299844#M1990154</guid>
      <dc:creator>former_member693960</dc:creator>
      <dc:date>2020-08-13T20:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299845#M1990155</link>
      <description>&lt;P&gt;Exactly. A select-option is often the &lt;STRONG&gt;wrong&lt;/STRONG&gt; choice. How would you want the system to react if the user enters:&lt;/P&gt;&lt;P&gt;E BT 01.01.2020 31.01.2020&lt;/P&gt;&lt;P&gt;I EQ 01.02.2020&lt;/P&gt;&lt;P&gt;I GT 28.02.2020&lt;/P&gt;&lt;P&gt;Use two parameters instead.  See my blog here: &lt;A href="https://blogs.sap.com/2014/02/07/dates-and-select-options/"&gt;https://blogs.sap.com/2014/02/07/dates-and-select-options/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 08:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299845#M1990155</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-08-14T08:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date range select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299846#M1990156</link>
      <description>&lt;P&gt;Hi try this ,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select *
  from Z_TABLE 
  into  fields of table iITAB
  where ( begda &amp;lt;= LOWDATE and endda &amp;gt;= HIGHDAT ) or
        ( begda between LOWDATE and HIGHDAT and
          endda between LOWDATE and HIGHDAT )   or
        ( begda &amp;lt;= LOWDATE and
          endda between LOWDATE and HIGHDAT )   or
        ( begda between LOWDATE and HIGHDAT and
          endda &amp;gt;= HIGHDAT ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-range-select-option/m-p/12299846#M1990156</guid>
      <dc:creator>ponrajasekharan</dc:creator>
      <dc:date>2020-08-14T13:22:03Z</dc:date>
    </item>
  </channel>
</rss>

