<?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 Dates range exclusion problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062317#M1900742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have searched the forums for this, but could not get the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement:&lt;/P&gt;&lt;P&gt;There is a select option for dates: s_dates.&lt;/P&gt;&lt;P&gt;There is a variable which holds one date: lv_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before i can use the s_dates in my select statement, i need to delete all the dates after lv_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My opinion:&lt;/P&gt;&lt;P&gt;Get all the dates using any FM: *date*, then delete the dates greater than lv_date.&lt;/P&gt;&lt;P&gt;But i am not convinced this is professional way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest me a better way of doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 17:40:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-29T17:40:52Z</dc:date>
    <item>
      <title>Dates range exclusion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062317#M1900742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have searched the forums for this, but could not get the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement:&lt;/P&gt;&lt;P&gt;There is a select option for dates: s_dates.&lt;/P&gt;&lt;P&gt;There is a variable which holds one date: lv_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before i can use the s_dates in my select statement, i need to delete all the dates after lv_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My opinion:&lt;/P&gt;&lt;P&gt;Get all the dates using any FM: *date*, then delete the dates greater than lv_date.&lt;/P&gt;&lt;P&gt;But i am not convinced this is professional way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest me a better way of doing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 17:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062317#M1900742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-29T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dates range exclusion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062318#M1900743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What *DATE* FM would you use to get all the dates? (There are a lot of both FMs and dates.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 17:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062318#M1900743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-29T17:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dates range exclusion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062319#M1900744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe a silly solution, but couldn't this just work as you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear s_dates.&lt;/P&gt;&lt;P&gt;s_dates-sign = 'E'.&lt;/P&gt;&lt;P&gt;s_dates-option = 'GT'.&lt;/P&gt;&lt;P&gt;s_date-slow = lv_date&lt;/P&gt;&lt;P&gt;append s_dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use your s_dates normally in SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 18:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062319#M1900744</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2015-05-29T18:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dates range exclusion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062320#M1900745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob and Guilherme for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking of using the FM: DAY_ATTRIBUTES_GET, but this i could only use for the sign 'BT', for rest all i need to use if conditions to calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Guilherme,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Yes, i had this thought, but was not sure, because the both conditions overlap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;But just tested it and it works.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks both of you for your time.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 18:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dates-range-exclusion-problem/m-p/11062320#M1900745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-29T18:52:30Z</dc:date>
    </item>
  </channel>
</rss>

