<?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: FM to Manipulate date Range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835377#M1131208</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;Yes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If date in date_range&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  is valid stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-low = '20080909'.
r_date-high = '20081212'.
append r_date.
if sy-datum in r_date.
 write:/ 'ok'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2008 15:25:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-02T15:25:08Z</dc:date>
    <item>
      <title>FM to Manipulate date Range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835375#M1131206</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;Im trying to check whether a particular date comes under a given date range.&lt;/P&gt;&lt;P&gt;In a select querry we directly give.... where date in s_date.... or itab_date[]. But this is not the case while checking this in an IF condition or anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any FM to check whether a particular date comes under a given date range or any FM which will&lt;/P&gt;&lt;P&gt;generate the list of dates will be help ful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: in this case my range is a manually populated range. It has only one line as,&lt;/P&gt;&lt;P&gt;"I BT &amp;lt;date1&amp;gt; &amp;lt;date2&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide your valuable suggesstions....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 14:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835375#M1131206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: FM to Manipulate date Range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835376#M1131207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;IF date IN date_range&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; =&amp;gt; this is a valid statement in ABAP, so if you still have problems with it, just copy the source code here for further analysis...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 14:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835376#M1131207</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-02T14:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: FM to Manipulate date Range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835377#M1131208</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;Yes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If date in date_range&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  is valid stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-low = '20080909'.
r_date-high = '20081212'.
append r_date.
if sy-datum in r_date.
 write:/ 'ok'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 15:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835377#M1131208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: FM to Manipulate date Range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835378#M1131209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use ranges for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: r_datum for sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_datum-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_datum-option = 'BT'.&lt;/P&gt;&lt;P&gt;r_datum-low = low date&lt;/P&gt;&lt;P&gt;r_datum-high = high date&lt;/P&gt;&lt;P&gt;append r_datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use this ranges in ur select query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 15:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-manipulate-date-range/m-p/4835378#M1131209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T15:46:09Z</dc:date>
    </item>
  </channel>
</rss>

