Derive fiscal year

hello
i have a field called BUDAT (posting date) and i need to derive the fiscal year from this date. Can you help me. I am not very familiar with abap so please help me write the code for it. I found a FM called GM_GET_FISCAL_YEAR but i am not sure how to use it.
thanks
Laura.

Fiscal year (and variant) is about FI concept.
To translate from calendarday to fiscal year and fiscal year / period you need the formula in update rules:
DATE_FISCPER3
DATE_FISCPER
DATE_FISCYEAR
... and others.
But you need the fiscal year variant! It is normally mantained in administration (FI) of your ERP source system in customizing and transferred in BW.
In BW you can see the variant by customizing (SPRO):
SAP Netweaver\SAP Business Information W\Mantain fiscal Year variant

Similar Messages

  • Need to derive fiscal year from 0P_FPER

    Hello,
    I have a number of queries that are used to report amounts for a given period and also a YTD amount and a rolling 12 month amount.  I would like to be able to have the user pass just one variable, 0P_FPER, and then derive the fiscal year from 0P_FPER to find the YTD amounts.  I am fairly certain that I will need a user exit variable to do this but have never written one before.  Can someone help out with code that will use the value passed by the user from 0P_FPER to find the fiscal year?
    Thank you.

    Hi Derrick,
    Please proceede as follows:
    1. Go to CMOD
    2. Create a project (enter any name & provide the description)
    3. select enhancements.
    4. Select enhancement RSR00001.
    5. Save & Double click on enhancement.
    6. An include will be there, double click on that, warning will occur,enter .
    7. Editor will open.
    8. Place the below code:
    DATA : wa_range   TYPE rrrangesid.
         CASE i_step.
      WHEN 1.
        RAISE no_processing.
      WHEN 2.
        CASE i_vnam.
          WHEN 'VAR_1'.
            READ TABLE i_t_var_range INTO wa_value WITH KEY vnam = '0P_FPER_VAR'.
              wa_range-low    = wa_value-low+4.
              wa_range-opt    = 'EQ'.
              wa_range-sign   = 'I'.
              APPEND wa_range TO e_t_range.
    endcase.
    endcase.
    In the above code :
    VAR_1 is the variable for which you are writting the customer code.
    0P_FPER_VAR : This is the variable based on 0P_FPER.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Hope this helps.
    Thanks !

  • Should Fiscal Year be derived from posting date for sales stat cube

    Greetings,
    Is it common to derive FY from posting date of the invoice for the sales stat cube.  We have the standard SAP datasource 0UC_SALES_STATS_02 to extract billing information from ECC.  On the BI side, the FY is derived from posting date in the transformation before it reaches the target (i.e. cube).  Is this derivation common
    Thank you in advance for your response.
    Behnaz

    Hi,
    You can derive the Fiscal Year from the posting period and it not uncommon to see this.
    Reg,
    Rahul

  • Function module to derive start and end dates from fiscal year and period.

    Hi,
    I want to know a function module to derive start and end dates from fiscal year and period.
    ie: If I have say fiscal year '2010' and period '07', then the start date of this period would be '01.10.2010'.
    Thanks.
    Moderator Messge: Basic Date questions are not allowed.
    Edited by: kishan P on Oct 18, 2010 4:45 PM

    Hi,
    This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
    S_VMUCMN is my selection variable
    S_TXTCMN_M12 is my text variable calmonth-12
    S_TXTCMN_M0 is my text variable for selected calmonth.
    WHEN 'S_TXTCMN_M12'.
        IF i_step = '2'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
            CLEAR l_s_range.
            " First day of the selected month
            CONCATENATE loc_var_range-low '01' INTO l_calday.
            CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
              EXPORTING
                date      = l_calday
                months    = 12
                signum    = '-'
              IMPORTING
                calc_date = l_calday.
            l_s_range-low = l_calday+0(6).
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Thus, in KF header you have to put the two text variable to display the complete period.
    Hope it helps,

  • How to derive month/year from date in SAP BW 3.5 data flow

    Hi
    How we can derive cal year/month and fiscal month/year from date in SAP BW 3.5 data flow (we're using transfer and update rule)..
    Thanks,
    PK

    Hi,
    if you have any date filed in source side you can just map to any time char system will automatically convert to target objects.
    please look at the screen shot for understanding. (not 3.x it is 7.x)
    Thanks,
    Phani.

  • Fiscal year 2010 Not allowed while creating Process order in COR1

    Dear Friends,
    We have gone SAP live in the month of October. The fiscal yeat we are using is 2011 as the client is Indian client. I have made the fiscal year variant for 2011 (V3). The FI document posting with Fiscal year 2011. It is also creating the Controlling document and Profit center document without any problem.
    We have also made the period open as 2011 in MMpv and MMRV. The goods receipts is working fine and the finance entry and material document gets generated for the fiscal year 2011.
    Now we are creating the process order in COR1 and getting the error message Fiscal year 2010 not allowed as below.
    Fiscal year 2010 is not allowed
    Message no. F5568
    Diagnosis
    The fiscal year entered (2010) is different from the fiscal year derived from the posting date and fiscal year variant (2011).
    System Response
    Error.
    Procedure
    Correct the fiscal year entered.
    In KP26 we have maintianed for activity price for 2010 &  2011 and the system is picking the data for the fiscal year 2010 data and not the FY 2011 data.
    I have checked in OKEQ (Costing version '0') The valide start date for FY2011 is 01.04.2010.
    Is there any other place to maintain the fiscal year in Controlling area or Prodduction Planning???
    I last my patient last 5 days doing R&D. Can any one help me where the fiscal year is picking and why it is picking FY 2010??
    Regards,
    Devendran

    Hi Ajay,
    Thank you for your comments. I have checked the Factory calendar and that is 2010 (January to December). We have tried to change to 2011 but the system automatically picking the date from January 1st 2011 to 31st December 2011. I am unable to create calendar year with date from 01.04.2010.
    I have discussed with my PP consultant about this issue, he is telling the factory calendar nowhere related to Fiscal year. Do you have any idea how to change the factory calendar of 2011 from 01.04.2010 to 31.03.2011??  Is there any there reason why my system considering the Fiscal year 2010 instead of 2011???
    Your inputs will defenitely help me to get an clue.
    Regards,
    Devendran

  • Fiscal year for India

    Hi,
    I have one requirement
    We have one group company and multiple company codes across countries and they all have the fiscal year as Jan to Dec .
    But in India case we have April to march fiscal year
    Now I canu2019t maintain 2 fiscal years ( we donu2019t have new GL activation)
    I understand I have the option either to maintain group fiscal year or country fiscal year and derive financial statements for the other through adjustments.
    What are the pros & cons if we maintain April to mach fiscal year Group point of view?
    What are the Pros & cons if we maintain Jan to Dec fiscal year in India co-code point of view?
    If anyone has met with similar scenarios, I request your inputs on this asap. Your few minutes on this will help me to put a step ahead.
    Kindly guide me on this
    Thanks in advance
    Regards
    Kumar

    Hi,
    As Per my Understanding you can maintain Fiscal Year April to March for your Indian Companycode, There will not any impact on Books of Accounts. when Group company Need Books of Accounts for Period Jan to Dec. with Special Ledger Purpose you can extract the details and Provide.
    Thanks
    Goutam

  • Error in opening Fiscal Year by Dep. Area

    Hi All,
    We have following Depreciation Areas:
    01 - Book Depreciation and 10,11,12 & 13 for Tax Depreciation.
    I am trying to open Fiscal Year 2014 for Tax Depreciation Area only by using T-code OAAR, system is giving me below error message:
    You also have to change the close of depreciation area 01
    Message no. AC433
    Diagnosis
    Depreciation area 10, for which you want to reset the year-end closing, is linked to depreciation area 01.
    This could be because the areas are linked due to:
    Identical acquisition and production costs (value takeover)
    A derived depreciation area
    Procedure
    Correct your entries. You can only modify the area for which you received the message.
    I checked setting of t-code OABC:Dep. Area 10 is having ValAd as 01, this is the reason system is not allowing to Open Fiscal Year 2014.
    Please throw some insight how I can open fiscal Year 2014 for Tax Areas only.
    Thanks & Regards,
    Vivek

    Hi George,
    Thanks for helping me out. There was no identical check on OABC for area 10.
    Upon researching more I found that there are other depreciation area which is only for reporting, are deriving values from Dep Area 10 and 01.
    Therefore system was throwing error to open Fiscal Year for 01 as well. I have removed the derivation from dep area used for reporting only and try to open Fiscal Year for Tax Area, now system allow me to open it by Area.
    This issue is resolved. Thanks again for your help.
    Regards,
    Vivek

  • How to get a Monthly Depreciation Simulation for next fiscal year?

    I need a report that give me the depreciation simulation for next fiscal year, but I need it monthly wise. I run report S_ALR_87012936 with report date 31.12.2011 and evaluation period = month.
    The report gives the error message AA669 Fiscal year 2011 is already closed in Financial Accounting
    I read that this report doesn't work monthly wise for future years. Is there a workarround?
    Best regards!

    Hi,
    I'm sorry there is only RASIMU02. Note 396974 describes, this is a missing functionality and there  is no workaround.
    Reports on derived depreciation areas that do not post any values to the
    general ledger are allowed with the evaluation period year. An
    evaluation using month, quarter or half-year is not supported.
    In general, the depreciation forecasted by monthly in report RASIMU02 are only for depreciation area which posts depreciation to GL. For non-GL posting area, we recommend you simulate the depreciation 
    in 'fiscal year' mode. if you simulate the depreciation 
    Basically RASIMU02 is NOT designed to provide period simulation for these non posting areas. This because RASIMU02 uses for periods which have been posted already the created ANLP. But ANLP´s  are not created for non-posting areas. So in these periods where   a depreciation run had been executed already, RASIMU02 will not show
    values.                                                                               
    For AA 669 please see:
    Best Regards Bernhard
    Edited by: Bernhard Kirchner on Nov 25, 2010 9:20 AM

  • Fiscal Year Not allowed while creating the Process order (COR1)

    Hi Friends,
    My Indian client is following the Fiscal year of 2011 for the period of April 2010 to March 2011). We have gone live one month before. But now the problem we are facing is while creating the process order (T.Code COR1) system gives the error message "Fiscal year 2010 is not allowed".
    The Diagnosis shows as below
    Fiscal year 2010 is not allowed
    Message no. F5568
    Diagnosis
    The fiscal year entered (2010) is different from the fiscal year derived from the posting date and fiscal year variant (2011).
    System Response
    Error.
    Procedure
    Correct the fiscal year entered.
    I have Checked the Controlling area version. Fiscal Year 2011 starts from 01.04.2010. This issue is only at the time of Process oder creation and not in other module like FI, MM, SD, PS, QM and PM. I have checked with V3 Variant also and there is no problem with that.
    Can any one help me where the setting is missing or what whould be the probable reason for this issue.
    Regards,
    Deva

    Hi Prakash,
    Thank you for your reply. I have checked the MMPV and MMRV set up and that is fine with fiscal year 2011. We are also processed lot many Material receipts for the fiscal year 2011. I have checked with OB52 for finace it is opened for the entire year of 2011 from 2009 for all periods.
    We are facing only when we try to create the process order. When we enter the starte date as 24.11.2010 the derived period shows as fiscal year 2011. But entered fiscal year shows as 2010. We are not entering any other dates in the process order.
    Is there any other probablity the date is picking from any Production related set ups??
    The costing version fiscal year 2011 starts from 01.04.2010. So no problem with Controlling area. I have Checked the Factory calendar. The calendar starts from 01.01.2010 to 31.12.2010 for the year 2010.
    Is there any other possibility of the missing settings or problem in date control???
    Regards,
    Deva

  • India fiscal year requirement

    Hi,
    I have one requirement 
    We have one group company and  multiple company codes across countries and they all have the fiscal year as  Jan to Dec .
    But in India case we have April to march fiscal year
    Now I canu2019t maintain 2 fiscal years ( we donu2019t have new GL activation)
    I understand I have the option either to maintain group fiscal year or country fiscal year and derive financial statements for the other through adjustments.
    What are the pros & cons if we maintain April to mach fiscal year Group point of view?  Do we have specific statutory requirements in India that demand for Apr to mar fiscal year maintenance because anyways we will be deriving results wrt to India requirements.
    If anyone has met with similar scenarios, I request your inputs on this asap. Your few minutes on this will help me to put a step ahead.
    What are the Pros & cons if we maintain Jan to Dec fiscal year in India co-code point of view?
    we are maintaing Controling are as a company code level
    Kindly guide me on this
    Thanks in advance
    Regards
    Kumar

    Hi Ravi,
    Thanks for your reply
    You can maintain a separate fiscal year for the India company code different from the group. This does not affect your normal operations. However, during consolidated reporting, you'll have to take care of the adjustments
    Ravi how can we Map above configuration in SAP
    if we chose jan to DEC as fiscal year variant then what all adjustment posting required in order to generate financial statements for companies and income tax act in India

  • Derive Calendar Year/Month from FiscalYear/Period

    Hi,
    I have ODS A and Cube A. Cube A has time characteristics which are not exist in ODS A. The Fiscal year/period characteristic in Cube A is based on a date infoobject (called Date1) in ODS A.
    For Calendar Year/Month, I want to derive it from fiscal year/period (0FISCPER).
    Since 0FISCPER is not in ODS A, I make use of Date1 in the ABAP routine and call DATE_TO_PERIOD_CONVERT function to convert it to fiscal period and then output the result as YYYYMM.
    The code is as below:-
    MOVE COMM_STRUCTURE-/BIC/ZCRBUCDTE TO v_date.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
        EXPORTING
          i_date  = v_date
          i_periv = 'Z1'
        IMPORTING
          E_BUPER = EFISPER
          E_GJAHR = EFISYEAR
        EXCEPTIONS
          INPUT_FALSE = 1
          T009_NOTFOUND = 2
          T009B_NOTFOUND = 3
          OTHERS = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *result
    CONCATENATE EFISYEAR EFISPER+1(2) INTO RESULT.
    There is no syntax error in the routine. But when I load data from ODS A to cube A, it gives me warning but no message. The request just hung.
    I don't know what went wrong. Please help.
    If you have any suggestion to achieve the same thing. Please let me know also.
    Thanks in advance.
    Message was edited by:
            CH

    Date1 in my message is reffering to ZCRBUCDTE.
    Message was edited by:
            CH

  • Fiscal year varient ecc 6.0

    Hi Gurus
    I  created  one fiscal year varient  ecc .6.0 ,(24 period , april to march)  i can't save  that  varient . i got some information    gap in financial year varient period ZZ
    thanks
    bala

    New G/L is having extended facility comparing to classic G/L. Classic G/L is supported by Sap Table GLT0 whereas New G/L is supported by SAP Table FAGLFLEXT.
    Addl. fields like cost center, Profit center, segment will be available in this table which is not there in OLD table. If it is a new implementation you need not activate New G/L. With all new installation New G/L is activated with the standard SAP.
    New GL concept is used normally in the following situations:
    1. An organization has units in more than one country and has separate currencies and need to maintain separate ledgers.
    2. Different financial years are required for legal requirement. For ex: for the companies act Jan to December and for Income tax act April to March
    3. To Maintain US GAAP or any other GAAP requirements.
    Example:
    Letu2019s assume that your company is in INDIA and US. Your parent company is US which follows FY K4 and Your Indian Company has to submit the balance sheets as per FY V3. Also Indian companies follows Indian GAAP and US company USGAAP.
    Letu2019s assume that there are some accounting differences between these two and the values differ at the time of posting. In such a case you create US company as a Leading ledger with FY variant K4 and Indian company with V3.
    When you are posting transactions which are independent of ledgers the system will post to all the ledgers by default. When you want to post transactions to only effecting Indian GAAP then the Ledger Groups Come in to the picture and you will post to the ledger groups by using FB01L or FB50L. These two transactions will give you the flexibility of posting to selected ledgers.
    In multi ledger environment you use FAGLB03 instead of FS10N and FAGLL03 instead of FBL3N. You can have only one leading ledger and all other are non leading ledgers. You can maintain as many ledgers as you need with different currencies, different fiscal year variants. In classic GL environment you need to configure this by using special purpose ledger and derive your reports. Important concepts in NEW G/L are
    1. Parallel Accounting
    2.Document Splitting     
    3.Integartion

  • How to cumulate key figure for whole fiscal year with one time variable?

    Hello everybody!
    I have a problem creating a query that allows to get cumulated key figure for <b>whole fiscal year</b> (FY), when I actualy type <b>only last period</b> for the FY.
    The query itself is very simple:
    - I have "Organization" characteristic in "Rows" section
    - I have one key figure "Number of invoices" in "Columns"
    - I have "Fiscal year variant" 0FISCVARNT defined in "Filter" that has 12 periods within Fiscal year
    and then
    - in section "Free Characteristics" I have "Fiscal year/period" 0FISCPER.
    I want to be able to provide ONE single value when run query, which is last period of a FY (like 012/2003), but then in report see cummulated number of invoices for WHOLE fiscal year.
    Will appreciate any help!
    Vitaliy

    Please see the white paper entitled "How to... Derive a Variable value from another variable 2.x (pdf)".
    Regards,
    Troy

  • Error in Data loading - The source of the fiscal year variant has changed

    Hi All,
    Need your kind suggestions to solve the issue.
    I am trying gto load data from one cube to another. the base cube has data with 0CALDAY. in the next cube I am trying to derive 0FISCPER from 0CALDAY. But while loading I am getting this error.
    The source of the fiscal year variant has changed
    Could someone guide me.
    Thanks in advance.

    Hi Saugata,
    nice to exchange views after a long time.
    well, if u are sending data to the target cube which contains data for the separate financial entity of different finacial parameters like fiscal varient then u need to update global transfer settings, and then load data.
    parhaps u also need to check the value of the Fiscal year varient to the target cube.
    hope this helps.

Maybe you are looking for

  • BI Report based on Age bands?

    Hi all, I need to create a simple OBIEE report on the sales made by sales persons based on the age band: Eg: Sales Person Sales Age 25 - 35 --> 30000 units Age 36 - 45 --> 10000 units Age 46 - 55 --> 5000 units Age 56 - 65 --> 20000 units I have the

  • Help needed regarding insertion of data into oracle

    Hi, I am student currently trying to do a project to up a semantic database using oracle. Have set up the semantic technologies for oracle 11gr2 and used the jena adapter to load an owl into oracle. But i am not sure how do i insert sample data that

  • [svn:osmf:] 14780: FMTA work + unit tests.

    Revision: 14780 Revision: 14780 Author:   [email protected] Date:     2010-03-16 09:55:23 -0700 (Tue, 16 Mar 2010) Log Message: FMTA work + unit tests.  Added NetNegotiator unit test support.  Fixed bug in constructor of Streaming URL resource.  Modi

  • Add and send to group in mail

    I want to send an email to a group in my address book so how do I add the group to the email and send it?

  • How to analyse the project

    i am new to programming plz tell me how to analyse project i have database schema,usecases,srs plz explain indetail