<?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: Fiscal year breakdown calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576353#M1859709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glen ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I was not able to put the question properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two date fields: startdate&amp;nbsp; (GSTRP )and enddate ( GLTRP )and fiscal year variant PERIV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to convert the actual dates to period dates using Fiscal Year Variant ( which can be done using the FM DATE_TO_PERIOD_CONVERT ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we get the two fiscal period dates, I have to break down duration of those period start and end dates to fiscal years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example&lt;/P&gt;&lt;P&gt;if startdate is 08-2014&amp;nbsp; and&amp;nbsp; enddate is 09-2017&amp;nbsp; with variant V3 (configured as April to March )&lt;/P&gt;&lt;P&gt;When I run the FM DATE_TO_PERIOD_CONVERT I get the period start and end dates as&lt;/P&gt;&lt;P&gt;period start date 05-2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and period end date as 06-2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the FM FCOM_POSTING_DATE_OF_YEAR_GET&amp;nbsp; and&amp;nbsp;&amp;nbsp; get fiscal year start and end dates, it gives the result as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;April 2014 to March 2015 ( for fiscal year 2014 )&lt;/P&gt;&lt;P&gt;April 2015 to March 2016 ( for fiscal year 2014 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the range 05-2014 to 06-2015 it has to be split to fiscal years range using above data as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05-2014 (period start date) to 03-2015 (fiscal year end date for 2014)&lt;/P&gt;&lt;P&gt;04-2015 to 03-2016 ( fiscal year start and end dates for year 2015 as this is with in range of period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startand end dates)&lt;/P&gt;&lt;P&gt;04-2016 to 03-2017&amp;nbsp; ( fiscal year start and end dates for year 2016 as this is with in range of period &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startand end dates)&lt;/P&gt;&lt;P&gt;04-2017 to 06-2017 ( the end date is period end date as it ends in 06-2017 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still not sure if I put it in an understandable way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check if this functionality is already implemented by any standard FM so that I don't have to use my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 15:35:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-02T15:35:41Z</dc:date>
    <item>
      <title>Fiscal year breakdown calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576351#M1859707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where in given two dates and variant are given ( start date and end date ), I have to convert the dates to fiscal periods based on variant, and then break down the dates to fiscal years .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex if startdate is 08-2014&amp;nbsp; and&amp;nbsp; enddate is 09-2017&amp;nbsp; with variant V3 [ as in fiscal year will be 04-2014 to 03-2015 , 04-2015 to 03-2016 and so on. ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my start and end dates&amp;nbsp; 08-2014&amp;nbsp; and 09-2017&amp;nbsp; would be converted to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;period start date 05-2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and period end date as 06-2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it has to be broken down to fiscal years as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05-2014&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-2015&lt;/P&gt;&lt;P&gt;04-2015&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-2016&lt;/P&gt;&lt;P&gt;04.2016&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-2017&lt;/P&gt;&lt;P&gt;04-2017&amp;nbsp;&amp;nbsp;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06.2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented the logic in a Z function module and calling it in my program to get the breakdown in an internal table when start and end dates and variant are given as input parameters using standard function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_TO_PERIOD_CONVERT&amp;nbsp;&amp;nbsp;&amp;nbsp; to convert input date to period date&lt;/P&gt;&lt;P&gt;FCOM_POSTING_DATE_OF_YEAR_GET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get fiscal year start and end dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just wondering is this functionality is already implemented in some standard function module as this is a normal requirement for breakdown of costs for fiscal years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched in SAP and in forums and blogs but could not get any such FM implementing this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if at all anyone has encountered any standard FM implementing this functionality so that I would not be using my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 13:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576351#M1859707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-02T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year breakdown calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576352#M1859708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be honest I cannot understand your question at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 14:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576352#M1859708</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-09-02T14:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year breakdown calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576353#M1859709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glen ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I was not able to put the question properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two date fields: startdate&amp;nbsp; (GSTRP )and enddate ( GLTRP )and fiscal year variant PERIV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to convert the actual dates to period dates using Fiscal Year Variant ( which can be done using the FM DATE_TO_PERIOD_CONVERT ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we get the two fiscal period dates, I have to break down duration of those period start and end dates to fiscal years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example&lt;/P&gt;&lt;P&gt;if startdate is 08-2014&amp;nbsp; and&amp;nbsp; enddate is 09-2017&amp;nbsp; with variant V3 (configured as April to March )&lt;/P&gt;&lt;P&gt;When I run the FM DATE_TO_PERIOD_CONVERT I get the period start and end dates as&lt;/P&gt;&lt;P&gt;period start date 05-2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and period end date as 06-2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the FM FCOM_POSTING_DATE_OF_YEAR_GET&amp;nbsp; and&amp;nbsp;&amp;nbsp; get fiscal year start and end dates, it gives the result as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;April 2014 to March 2015 ( for fiscal year 2014 )&lt;/P&gt;&lt;P&gt;April 2015 to March 2016 ( for fiscal year 2014 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the range 05-2014 to 06-2015 it has to be split to fiscal years range using above data as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05-2014 (period start date) to 03-2015 (fiscal year end date for 2014)&lt;/P&gt;&lt;P&gt;04-2015 to 03-2016 ( fiscal year start and end dates for year 2015 as this is with in range of period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startand end dates)&lt;/P&gt;&lt;P&gt;04-2016 to 03-2017&amp;nbsp; ( fiscal year start and end dates for year 2016 as this is with in range of period &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startand end dates)&lt;/P&gt;&lt;P&gt;04-2017 to 06-2017 ( the end date is period end date as it ends in 06-2017 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still not sure if I put it in an understandable way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check if this functionality is already implemented by any standard FM so that I don't have to use my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 15:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiscal-year-breakdown-calculation/m-p/10576353#M1859709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-02T15:35:41Z</dc:date>
    </item>
  </channel>
</rss>

