<?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 function module to create Fiscal Year in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968863#M1158082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create Bonus report in HR. As there is an unavailabilty of fiscal year field i am creating it through ranges. i am using the function module PERIOD_DAY_DETERMINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Move :   fyear to   d_gjahr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               '12'   to   d_monat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               'V3'   to   d_periv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PERIOD_DAY_DETERMINE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_GJAHR                    = d_gjahr&lt;/P&gt;&lt;P&gt;    I_MONAT                    = d_monat&lt;/P&gt;&lt;P&gt;    I_PERIV                    = d_periv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_FDAY                     = d_fday&lt;/P&gt;&lt;P&gt;    E_LDAY                     = d_lday&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_SPERIOD                  = d_SPERIOD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    ERROR_PERIOD               = 1&lt;/P&gt;&lt;P&gt;    ERROR_PERIOD_VERSION       = 2&lt;/P&gt;&lt;P&gt;    FIRSTDAY_NOT_DEFINED       = 3&lt;/P&gt;&lt;P&gt;    PERIOD_NOT_DEFINED         = 4&lt;/P&gt;&lt;P&gt;    YEAR_INVALID               = 5&lt;/P&gt;&lt;P&gt;    OTHERS                     = 6&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     What is happening in this function module is d_monat if given as 2, the date range is coming up only for  the month of may. I. E the output for the above function module is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fday = 01.03.2009&lt;/P&gt;&lt;P&gt;d_lday = 31.03.2009 ( if the input parameter is given as 2008).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want that if 2008 is given the date range should be fiscal year date range.&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;G. Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 08:01:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T08:01:18Z</dc:date>
    <item>
      <title>function module to create Fiscal Year</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968863#M1158082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create Bonus report in HR. As there is an unavailabilty of fiscal year field i am creating it through ranges. i am using the function module PERIOD_DAY_DETERMINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Move :   fyear to   d_gjahr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               '12'   to   d_monat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               'V3'   to   d_periv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PERIOD_DAY_DETERMINE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_GJAHR                    = d_gjahr&lt;/P&gt;&lt;P&gt;    I_MONAT                    = d_monat&lt;/P&gt;&lt;P&gt;    I_PERIV                    = d_periv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_FDAY                     = d_fday&lt;/P&gt;&lt;P&gt;    E_LDAY                     = d_lday&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_SPERIOD                  = d_SPERIOD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    ERROR_PERIOD               = 1&lt;/P&gt;&lt;P&gt;    ERROR_PERIOD_VERSION       = 2&lt;/P&gt;&lt;P&gt;    FIRSTDAY_NOT_DEFINED       = 3&lt;/P&gt;&lt;P&gt;    PERIOD_NOT_DEFINED         = 4&lt;/P&gt;&lt;P&gt;    YEAR_INVALID               = 5&lt;/P&gt;&lt;P&gt;    OTHERS                     = 6&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     What is happening in this function module is d_monat if given as 2, the date range is coming up only for  the month of may. I. E the output for the above function module is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_fday = 01.03.2009&lt;/P&gt;&lt;P&gt;d_lday = 31.03.2009 ( if the input parameter is given as 2008).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want that if 2008 is given the date range should be fiscal year date range.&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;G. Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 08:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968863#M1158082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T08:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: function module to create Fiscal Year</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968864#M1158083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not clear by your statement that what you want.&lt;/P&gt;&lt;P&gt;you told that u dont have fiscal year but you are putting in fiscal year field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well if u want date range of that month of fiscal year then you are using right fm module.&lt;/P&gt;&lt;P&gt;but don hard code month, month should be come as variable&lt;/P&gt;&lt;P&gt;if if u will put&lt;/P&gt;&lt;P&gt;fy 2008&lt;/P&gt;&lt;P&gt;month 2&lt;/P&gt;&lt;P&gt;periv v3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then date will b&lt;/P&gt;&lt;P&gt;01.05.2008&lt;/P&gt;&lt;P&gt;31.05.2008&lt;/P&gt;&lt;P&gt;&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;vijay dwivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968864#M1158083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T09:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: function module to create Fiscal Year</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968865#M1158084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use FM:- &lt;STRONG&gt;GET_CURRENT_YEAR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_CURRENT_YEAR'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    BUKRS = L_COMPANY_CODE&lt;/P&gt;&lt;P&gt;    DATE  = SY-DATUM&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    CURRY = BLOCK_END&lt;/P&gt;&lt;P&gt;    PREVY = BLOCK_BEGIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968865#M1158084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T09:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: function module to create Fiscal Year</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968866#M1158085</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 'GET_CURRENT_YEAR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 10:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-create-fiscal-year/m-p/4968866#M1158085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T10:51:11Z</dc:date>
    </item>
  </channel>
</rss>

