<?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 time-frame calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-frame-calculation/m-p/1410459#M197740</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 want to know if a date lies within a given time-frame (marked by end date).&lt;/P&gt;&lt;P&gt;The problem is, that the user can give the check time frame in days, weeks, months or jears. &lt;/P&gt;&lt;P&gt;The calculation is actually similar to the best before date calculation in Material Master.&lt;/P&gt;&lt;P&gt;But how do I calculate with these units.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 08:32:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-22T08:32:05Z</dc:date>
    <item>
      <title>time-frame calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-frame-calculation/m-p/1410459#M197740</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 want to know if a date lies within a given time-frame (marked by end date).&lt;/P&gt;&lt;P&gt;The problem is, that the user can give the check time frame in days, weeks, months or jears. &lt;/P&gt;&lt;P&gt;The calculation is actually similar to the best before date calculation in Material Master.&lt;/P&gt;&lt;P&gt;But how do I calculate with these units.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 08:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-frame-calculation/m-p/1410459#M197740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T08:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: time-frame calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-frame-calculation/m-p/1410460#M197741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you should convert your input into a date or a number of days. Here a case on the input type should help (if type = weeks, then multiply input * 7...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the number of days you can calculate your ending date (e.g. end_date = start_date + l_days). Then a simple if p_date &amp;gt; start_date and p_date &amp;lt; end_date. should do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 11:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-frame-calculation/m-p/1410460#M197741</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-06-27T11:34:54Z</dc:date>
    </item>
  </channel>
</rss>

