Reporting across previous 12months (year)

I have a reporting requirement where I need to show all the previous 12 period balances across the year, when the user enters a posting period. I’m trying to run this on a consolidation cube, where I transfer period balances from the general ledger line item ODS. My question is:
1.     How can I get previous 11 periods, is there any variable that can achieve this?
2.     What if the user enter Jan as a posting period and then he wants to see till previous Jan? I tried using the variable offset value as –1. –2. –3 etc. but when I enter 2 (posting period) as the variable, the report gets back period 2, and 1 but not last year period 12. How can I achieve this? Is there any std query which does it, so that I can go and take alook.
Any insight or pointer? Thanks in Advance.
Sri

Sri,
You need to use something with year in it - either fiscal year/period or cal year/month.
Aneesh

Similar Messages

  • BI Reporting across multiple approval years - IM program position hierarchy

    Hi,
    We have an issue with our BI report whereby if a user wants to report year to date actuals for financial year 2010,
    they need to run the IM report twice.
    This is because the IM report is run with a program hierarchy(based on 0PROG_POS), and the infoobject is compounded to approval year.
    So, closed projects (with spend in 2010) exist in program hierarchy with approval year 2010
    AND open projects (with spend in 2010) exist in program hierarchy with approval year 2011
    So to get true 2010 expenditure, the report need to be run once for approval year 2010 and once for approval year 2011.
    The users want to be able to run the report once only.
    Please help.
    I have looked in R3 SBIW convert program name, but that seems to combine 2 programs into one, but they need the same approval year.

    it sounds like you've approached the setup correctly, you may want to ensure all the values in the the records you are retracting are valid in ECC - ie make sure you master data is in sync, for example  have you got new planning versions in BW/BPS and try to retract data back int a system that does not recognise the new values for 0version as they are not in the master data of the ECC system

  • Cross tab report's -one column display total counts of previous financial year, one column current financial year

    Hi
    I'm using CR XI. I'm attempting to create  a cross-tab report where:
               Added       Total
    AF         12            23
    F            15           30
    CO         18           50
    Where AF etc is the categoty of items, Added is the total count of previous finanical year(e.g. 1 July 2006 to 30 June 2007), Total is the total account of current finanical year.
    The count is based on created_date field(e.g. ITD.DTE -- ITD is the table, DTE is the field).
    Although I can at the moment only display the value correctly in "Added"  column, if I tried to display the Total column, the two columns always have the same value.
    How could I achieve the above desired results by using fomula? I would appreciate it very much if anyone could help me with this?
    Thanks in advance
    JS

    Create 2 formulas, 1 for the previous year and 1 for current, similar to the following;
    1) if date({Orders.Order Date}) in date(2003,07,01) to date(2004,06,30) then 1 else 0
    2) if date({Orders.Order Date}) in date(2004,07,01) to date(2005,06,30) then 1 else 0
    Add both of these formulas as the summarized fields in the crosstab

  • Carrying forward the parked documents of previous fiscal year

    Hi Experts,
    My requirement is to carry-forward the parked documents of the previous fiscal year to the new fiscal year automatically with a background job that should run at the end of each fiscal year.
    This job should check all the documents that are still parked and must carry them to the next fiscal year. As per standard SAP, the document should be manually posted with posting date of the new fiscal year. Then the system will create a new Document in the new fiscal year, deleting the old document. I need to automate this process.
    For posting a document we use a Customized Workflow (Z copy of FIPP).
    My question is, how can I go about this requirement? What all needs to be done if I want to trigger the workflow in the background on a particular day?
    Thanks!

    Sheryl,
    If you really want to "remove/cancel" the parked documents, then your solution is to delete them as Prashant previously suggested.  Transaction FBV0 allows you to post or delete a parked document.  Deleting the parked documents does not remove the entire document from the system.  It will remove any line item information, but it will leave the header information.  With the header information, you will still have record of the document numbers for audit purposes.  The status on the header will show "parked document which was deleted".  Deletion is the standard SAP solution to "remove/cancel" parked documents - the only alternative to deleting a parked document is to post it.
    Park a document on your test system then delete it so you can see the results.  You will still be able to pull up the header information in FB03.
    I am not aware of any standard SAP reports for listing parked documents that were deleted.  However, if you require such a report, you could create a simple SQ01 query against table BKPF.  You would want to include the Document status field (BSTAT) in the query selection criteria so you can select documents with a status of 'Z' - parked document which was deleted.
    Regards,
    Shannon

  • How to calulate previous fiscal year from current year and periods as input

    hi all,
    i have a report where i have 2 select options as year and period.
    my period can be a range  like( Ex: 1 to 6).
    i like to know previous fiscal year from the following inputs.
    Tel me a suitable conversion routine to calculate
    depending on periods and fiscal year.
    regards
    sivaram.

    Hi
    U need to check the lower period, if it's 1 the previous fyscal year will be the year before:
    IF PERIOD = '1'.
      PREV_YEAR = YEAR - 1.
    ENDIF.
    U can also use the fm FI_PERIOD_DETERMINE, in this case you need a date, u can get it from lower current period:
    Get the first day of the period
    BUDAT(4)   = YEAR.
    BUDAT+4(2) = PERIDO_LOW.
    BUDAT+6(2) = '01'.
    Now get the last day of the previous month:
    BUDAT = BUDAT - 1.
    Use this date to get its period by fm FI_PERIOD_DETERMINE
    Max

  • Displaying current and previous 5 Year data in a bar graph

    Hi ,
    My requirement goes like this .....
    I have to show revenue (measure) data based on current year (period dimension) selection (from a dashboard prompt) and previous 5 year data's as well .
    i.e. if user selects 2013 , the bar graph will display 6 bars ... 2013,2012,2011,2010,2009,2008.
    I am trying to achive this with filter on Year column , on the main report ....*"is based on results of another analysis"*
    But haven't made any progress .
    Thanks
    sayak

    sayak wrote:
    Hi ,
    My requirement goes like this .....
    I have to show revenue (measure) data based on current year (period dimension) selection (from a dashboard prompt) and previous 5 year data's as well .
    i.e. if user selects 2013 , the bar graph will display 6 bars ... 2013,2012,2011,2010,2009,2008.
    I am trying to achive this with filter on Year column , on the main report ....*"is based on results of another analysis"*
    But haven't made any progress .
    Thanks
    sayakFollow this link. It will give you greater flexibility for you end users and therefore a better report.
    http://oraclebizint.wordpress.com/2008/03/11/oracle-bi-ee-101332-rolling-yearmonth-and-date-filters-moving-window-filters/

  • Variable for budget from starting to previous fiscal year?

    Hi experts,
    The requirement i got in my report to calculate Budget upto previous fiscal year.
    For ex: If my project starts on Nov 2004 , then i want to calculate for the year Nov 2004 to Mar 2008.
    I tried for variable Cumulate to last fiscal yeard

    Hi,
    Here I'm giving the code to get Months based on System date, so you change this code to as per your requirement.And if any use input variable is there then you need to use ....
    LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZVARAIBLE'.
    ENDLOOP.
    Note: So by using this variables you need to restrict your Keyfigures with offset values.
    * First Month Of Current Fiscal year comment*
        WHEN 'FMYEAR'.
          CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                 EXPORTING
                   i_date               = sy-datum
    *         I_MONMIT             = 00
                   i_periv              = 'V3'
                IMPORTING
                  e_buper              =  zbuper
                  e_gjahr              =  zbdatj.
          CLEAR: l_s_range.
          l_s_range-low+4(2) = '04'.
          l_s_range-low+0(4) = zbdatj.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    * Last Month of Current Fiscal year*
        WHEN 'LMYEAR'.
          CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                 EXPORTING
                   i_date               = sy-datum
    *         I_MONMIT             = 00
                   i_periv              = 'V3'
                IMPORTING
                  e_buper              =  zbuper
                  e_gjahr              =  zbdatj.
          CLEAR: l_s_range.
          l_s_range-low+4(2) = '03'.
          l_s_range-low+0(4) = zbdatj + 1.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    Thanks
    Reddy

  • Previous fiscal year's  document Gap

    Hi Experts:
    My customer encountered the following issue:
    There is FI document Gap in the previous fiscal year. The end user entered a FI document through transaction FB05, and after saving noted down the document number. But after that, when they try to check this document, it can not be found by the system, nor does it exist in BKPF, BKPF shows that this one document number was skipped. Unfortunately, this issue was not solved timely. We doubt that this gap is caused by update error, since the customer has not done any customer enhancement in this document posting process. However, this issue happened last year so that the update log does not exist anymore.
    Now the customer's auditing team is asking for evidence which can prove that this gap is caused by system. How could this be achieved?
    Thank you so much!

    Hi Yucen,
    Please check the below OSS note( Knowledge base article)
    1828201 - Missing document numbers for accounting documents ( This note it self SAP is given  reasons for the missing documents also mentioned concerns of auditors)
    RFVBER00 ( Report to show update termination , fail documents by system)
    Regards,
    Chandra sekhar

  • Current fiscal year and previous fiscal year restriction in Query  Customer

    Hi ,
    My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
    I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
    Could you please provide customer exit code if you have or recomend if you know any other options.
    Appriciate you help
    Thanks

    hi try this
    take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
    The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
    so for current year
    WHEN 'CURRPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    for previous period
    WHEN 'PREVPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_year = l_year - 1.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    bye
    Boujema

  • BW data load for previous fiscal year depending upon sy-datum

    Hello All,
    In SAP BW, while loading data using date, I have requirement to load the datat for previous fiscal year.
    Fiscal year run from Oct to Sept.
    I have given example of Nov 2012. Becuase I am going to add this info-package in process chain which will run Nov of every year for full data load.
    For Ex: I am loading data in calander year/month Nov 2012. Its previous fiscal year is 2011.
    So for fiscal year 2011, my dates for data load would be : 10/1/2010 to 9/30/2011.
    So my code or functional module should retun me 10/1/2010 to 9/30/2011 this value.
    Kindly give your inputs for the same.
    Thank You.

    Hello All,
    I have wriiten below code and it has solved my problem:
    REPORT  ZTEST_PK.
    data:
    month_last type n length 2,
    year_last type n length 4,
    year type n length 4,
    month_first type n length 2,
    month type n length 2,
    year_first type n length 4,
    day_in type sy-datum,
    day_out type sy-datum,
    v_date type n length 6,
    select_period_low(8) type c,
    select_period_high(8) type c.
    year = sy-datum(4).
    month = sy-datum+4(2).
    concatenate year month into v_date.
    Data: fisyr type n length 4,
    fiscper type n length 3.
    *Fiscal years run from Oct to Sep
    *For Ex: Nov2012 load of the previous FY itu2019s FY 2011, the dates would be Oct 10 (10/1/2010) to Sep 11 (9/30/2011).
    CALL FUNCTION 'Z_XCONVERT_CALMONTH_TO_FISCAL'
      EXPORTING
        IV_CALMONTH       = v_date
    IMPORTING
       EV_FISCYEAR       = fisyr
       EV_FISCPER3       = fiscper.
    year_last = fisyr - 1.
    year_first = year_last - 1.
    month_first = '10'.
    month_last = '09'.
    concatenate year_first month_first '01' into select_period_low.
    concatenate year_last month_last '01' into day_in.
    *calcualte last day of  a given month
    CALL FUNCTION 'SN_LAST_DAY_OF_MONTH'
      EXPORTING
        DAY_IN             = day_in
      IMPORTING
        END_OF_MONTH       = day_out.
    concatenate day_out(4) day_out4(2) day_out6(2) into select_period_high.
    write:/ select_period_low.
    write:/ select_period_high.

  • Resetting a clearing document from a previous financial year - Vendor Payment

    Finance team needs to reset a cleared item from a previous financial year. The cheque was
    never presented.  They are unable to create a new invoice to pay the vendor without this cheque going
    through and being processed.
    However, when using transaction code FBRA they receive an error message
    "clearing document from alternative fiscal year-. Message no F5A258".

    There are two option
    1. You Open the Close Period, or change the reversal code, which can allow alternative posting in the current period.
    2. Go to the IMG - Controling - General Controlling - Change Message control. Give the message application area and then the number and turn it off. (Tcode : OBA5)
    With regards,
    Uttam Maity

  • How to Include previous Month/Year in Transformation

    Hi,
    From Source System (DB Table;DB Connect)
    Location_ID,EMP_ID,AMOUNT
    There is no date field avaliable in the source system.
    The Data load to BW will me Monthly frequency...I,e:Data will be loaded once in a Months on 1st of every month.
    My requirment is to Include a date field in BW transformations which input previous month/year data for every record
    How can i do that and wether do i need to write a start or field routine in transformations
    Code please
    Thanks

    Hi Pal,
    You could use the following code to achieve this:
    DATA: v_calmonth(6) TYPE c,
          v_month(2) TYPE c,
          v_year(4) TYPE c.
    v_month = sy-datum+4(2).
    v_year = sy-datum+0(4).
    IF v_month = 1.
      v_year = v_year - 1.
    ENDIF.
    IF v_month = 1.
      v_month = 12.
    ELSE.
      v_month = v_month - 1.
    ENDIF.
    CONCATENATE v_year v_month INTO result.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • Time Evaluation quota in previous tax year

    Hi all
    Can anyone please advise:
    Problem:  Because of various issues, quotas need to be adjusted via 2013 for quotas in a previous tax year to ensure quotas are correct up to date i.e. add to one and deduct from another.  System won't allow retro because of the tax year.  Table T569R date is fine. IT0003 date also won't allow change before tax year.
    Is there a way to get around this without opening a tax year?
    Your assistance is appreciated.

    HI,
    You can view in IT2006 accumulated Quota means current year Quota + carry over Quota. In Time cluster tables "QTTRANS" you can view Quota transfer value.
    Refer T.code: Pt66 for Time cluster tables.

  • Help needed on balance sheet plan report for the current year

    Hi BW gurus,
    I have a problem with reporting.
    I need to get  Balance-Sheet Plan Reports for the Planned year and for the current year.
    To get the report for the planned year its  straight forward just by restricting 0balance by the version to 1 and the valuetype 20.
    But I have a problem with the current year report.
    I have fiscal year and the company code as the variables.
    The report should be like this.
    If we need the report as of today(July 26 2006),we may input 2006 for the fiscal year variable.
    And the 0balance for the twelve fiscal periods should be as follows
    From jan 2006 to june 2006(fiscal periods) it should have only the actuals
    From july 2006 to dec 2006(fiscal periods) it should have  only  the plan
    I have already built a query by having two restricted keyfigures on 0balance.
    One by restricting version and valuetype 0 and 10 , and the other with 1 and 20.
    But in the report I am getting two columns of data for each fiscal period for 12 periods.0balance with actuals and 0balance with plan.
    But I need to get 0balance with actuals from jan to june(individually for each fiscal period columnwise),and 0balance with plan from july to dec(individually for each fiscal period columnwise).
    Hope you people can visualize my report.
    Please help me ASAP.
    Any kind of help is appreciated.
    My mail id is [email protected]
    Thanks in advance
    Regards
    Sam Mathew

    Hi Sam,
        Did u get this issue solved. I am having the same issue now. Can u please let me know if u have a solution for this.
    Thanks
    Prasad

  • Asset History Sheet Report older than two years

    When trying to execute an Asset History Sheet Report (S_ALR_87011990) with a report date (BRDATU) older than two fiscal years the system would not display any information.
    can anyone give me a technical reason why the system would not show this information to such date?
    thanks

    Thank you all.
    I have found OSS Note 1433686. has anyone ever implemented it
    It says:
    Summary
    Symptom
    In reporting of Asset Accounting, you can make evaluations in closed fiscal years only for the last day of a fiscal year.  If you enter a mid-year report date as the report date for a closed fiscal year, the system issues the following error message: AU 116 - "Report date & is invalid for this report".
    Other terms
    DBADAF05, FORM BUKRS_CHANGE, FIAA_CHECK_REPORTING_DATE, AU116, AU 116, AU172, AU 172, ANLB, ANLBZA, ANLC, reporting, mid-year, report date, closed fiscal year, fiscal year, end of period
    Reason and Prerequisites
    You require an enhanced function.
    Solution
        1. Perform the following manual tasks.
        2. Implement the source code corrections.
        3. The program changes enable you to create an asset report (for example, asset history sheet, asset portfolio, and so on) with a mid-year report date in a closed fiscal year.
        When you execute an asset report, the system informs you that it is a reporting period from a closed fiscal year (information message AU 172).
        If the report date is at the fiscal year end, the system outputs the saved annual values (table ANLC) in the asset report.  The asset values are not recalculated in this case.
        If the report date is not at the fiscal year end, the system recalculates the depreciation and the net book value up to this report date with the currently valid depreciation term defined.
            Depreciation terms (table ANLB)
                        In this table, the currently valid depreciation terms are defined.
            Time-dependent depreciation terms (table ANLB)
                        With Release ERP 2005 (ECC 6.0), when you activate the EA-FIN extension set, the system automatically activates the "new" depreciation calculation in Asset Accounting. The new depreciation calculation enables you to specify time-dependent depreciation terms in the asset master records.
                        If time-dependent depreciation terms are defined, the system takes these time-dependent depreciation terms into account for the depreciation calculation (for more information, see Note 1366920).
               Note the following:
               In the mid-year asset report (report date not at the fiscal year end), the depreciations or net book value may have different results in the historical calculation and in the current calculation on the report date.  This is due to the asset-related depreciation terms that may have been changed, for example, depreciation key, useful life, and so on.
    Manual Pre-Implement.
    VALID FOR
    Software Component   SAP_APPL                      SAP Application
    Release 46C          All Support Package Levels
    Release 470          All Support Package Levels
    Release 500          All Support Package Levels
    Release 600          All Support Package Levels
    Release 602          All Support Package Levels
    Release 603          All Support Package Levels
    Release 604          All Support Package Levels
    Release 605          w/o Support Packages
    New message: Message class: AU  Number: 172
    Use transaction SE91 to create the new message.
    Message class:    AU
    Message number:    172
    Message short text:
    The report date is in a closed fiscal year.
    Enter the following long text (Ctrl+F7):
    Diagnosis
    The report date is in the past.
    The report date can be the year end or any mid-year end of period.
    System Response
    In a mid-year asset report (report date at a mid-year end of period) in a closed fiscal year, the depreciations or net book value may have different results in the historical calculation and in the current calculation on the report date.  This is due to the asset-related depreciation terms that may have been changed, for example, depreciation key, useful life, and so on. In this case, the asset values are recalculated with the currently defined depreciation terms of the fixed asset.

Maybe you are looking for