<?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: Regarding previous date range ; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341617#M801113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1) Calculate first day in period via &lt;/P&gt;&lt;P&gt;Function module FIRST_DAY_IN_PERIOD_GET&lt;/P&gt;&lt;P&gt;(2) Subtract one from this date giving last day in previous period&lt;/P&gt;&lt;P&gt;(3) Force day position +6(2) at value '01' giving first day in previous period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2008 12:56:42 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-01-30T12:56:42Z</dc:date>
    <item>
      <title>Regarding previous date range ;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341615#M801111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me Function Module for getting previous date range if input provided is Month and Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Ex :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input is Jan2008 or ( Month = '01' &amp;amp; Year = '2008' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P i need is : 1/11/2007 to 31/1/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input is Feb2008 or ( Month = '02' &amp;amp; Year = '2008' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P i need is : 1/12/2007 to 31/2/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitrakant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 12:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341615#M801111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding previous date range ;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341616#M801112</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;Use This FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;'OIL_LAST_DAY_OF_PREVIOUS_MONTH'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u know the last date first date is not a problem u can use &lt;/P&gt;&lt;P&gt;FM &lt;STRONG&gt;'OIUREP_FG1_CALC_FIRST_LAST_DAY'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Will.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 12:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341616#M801112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding previous date range ;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341617#M801113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1) Calculate first day in period via &lt;/P&gt;&lt;P&gt;Function module FIRST_DAY_IN_PERIOD_GET&lt;/P&gt;&lt;P&gt;(2) Subtract one from this date giving last day in previous period&lt;/P&gt;&lt;P&gt;(3) Force day position +6(2) at value '01' giving first day in previous period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 12:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341617#M801113</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-30T12:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding previous date range ;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341618#M801114</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;Can you just tell me what i need to pass for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mid-Month for Half Month Periods&lt;/P&gt;&lt;P&gt;-Period Variant&lt;/P&gt;&lt;P&gt;-Fiscal Period &lt;/P&gt;&lt;P&gt;in 'FIRST_DAY_IN_PERIOD_GET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but it did not worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341618#M801114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding previous date range ;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341619#M801115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These value come from society customizing, read table T001&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
       EXPORTING
            i_gjahr = w_gjahr " Year
            i_periv = t001-periv " Fiscal year variant
            i_poper = w_poper " Period/Month
       IMPORTING
            e_date  = w_date
       EXCEPTIONS
            OTHERS  = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you don't have the society, look in table T009 for a correct variant. For calendar value, just concatenate year, period and '01' to give the first day of month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341619#M801115</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-30T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding previous date range ;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341620#M801116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 07:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-previous-date-range/m-p/3341620#M801116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T07:40:03Z</dc:date>
    </item>
  </channel>
</rss>

