Previous to previous year figures

I am developing balance sheet report in BI.
                                                  December 2008                            December 2007            
As at the commencement of the year              Mar 2008 (016.2007)                    Mar 2007 (016.2006) 
                                                VARIABLES:
                                                0P_FPER
                                                0I_BA107
Where December 2008 is taken as an example. It is the selection criteria based on 0FISCPER.
I am getting values for December 2008 using variables 0P_FPER and  0I_BA107.
But I am not getting the variable to get Mar 2007. This variable should give me the value of the last period for previous to previous year with reference to period selected in selection criteria. Most probably I need to write user exit variable. Can anybody send me the link/document for the same.

Hi Shailesh,
  Regarding the I_STEP, few details are as follows:
If you execute a query that contains variables with the customer exit replacement path (and these variables are filled depending on input-ready variables), sometimes, the variable exit is not run or incorrect data is selected. To avoid this, you can control the dependencies using the I_STEP parameter.
The I_STEP parameter specifies when the enhancement is called.The values corresponds to:
   I_STEP = 1
Call is made directly before variable entry.
  I_STEP = 2
Call is made directly after variable entry. This step is only executed if the same variable is not input-ready and could not be filled for I_STEP = 1.
I_STEP = 3
In this call, you can check the values of the variables. When an exception (RAISE) is triggered, the variable screen appears again. I_STEP = 2 is then also called again.
I_STEP = 0
The enhancement is not called from the variable screen. The call can originate from the authorization check or from the monitor.
Example:
In the following example, the current month is taken from an input-ready variable MONTH; this is then used to generate an interval that cumulates all months from January ('01') up to the current month. The customer exit variable CUMMONTH contains the interval as the value.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: L_S_VAR_RANGE TYPE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'CUMMONTH'.
IF I_STEP = 2. "after the popup
READ TABLE I_T_VAR_RANGE INTO L_S_VAR_RANGE WITH KEY VNAM = 'MONTH'.
IF SY-SUBRC = 0.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, for example, 200601
L_S_RANGE-LOW+4(2) = '01'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
ENDIF.
ENDCASE.
Hope this is informative!
Best Regards,
Akshata

Similar Messages

  • Previous year figures in planning book

    Hi all,
    I want to show the previous year figures in the planning book.
    According the help documentation of planning books it must be possible to add actual data and previous year figures (Demand Planning - Demand Planning Process - Planning book design - Planning book: "Add rows containing actual data from the current year and/or the previous year").
    Actual data is easy by refering to 000 version. But how can I add previous year data?
    Thanks for your help
    Jean

    I think what it means is that if you go to the dataview tab in the Planning book design you can see a field called Initial Column.
    If you use initial column you will be able to add all the buckets in the period previous to the first future period. Its not necessarily last year but previous periods.
    (though i dont understand what you menat by seeing actual using 000 version)
    It makes more sense in an SNP planning book for a KF like Stock
    as the help says...
    "The initial column covers the time span from 1970 until the beginning of the first future period minus 1 second. The data is read from a key figure that is stored in liveCache orders or liveCache time series. However, you can also populate this column with data using a macro, such as has been done with the Initial stock key figure in the standard Supply Network Planning data view.
    Enter one of the following values:
    Blank - No initial column
    L - The initial column is displayed on the far left of the table.
    R- The initial column is displayed on the far right of the table.
    C - The initial column is displayed between the past planning horizon and the future planning horizon."

  • Monthlwise Income Statement with Previous Year Comparison

    Hi
    Good day to all.
    The requirement is to create a Monthwise Income Statement for the Current Year with the Previous Year Comparative figures (and Average for Previous Year and Current Year thrown in).
    We have designed this report using Report Painter using the Library 8A2 based on GLPCT Table.
    We have been able to get the Monthwise figures for the current year.
    Could somebody elaborate on how to achieve the following:
    1. How to get the Previous Year Figures in the same report.
    2. How to get the Average for the Current Period depending upon the Periods upto/for which the user chooses to run the Report? For example, the user must be enabled to run report for a range of Periods (for example Period 5 to Period 8) and the Report should average the totals using a denominator of 4).
    Any help in this regard will be highly appreciated.
    Regards
    Harinath

    I am Thankful to SDN,
    but i have solved my problem on my own.
    I ill be back if i have any problem in future.
    Bye

  • Key figure comparision between current year and previous year

    Hello collegues,
    I have created a WEB Intelligence report with key figure ROI (return on investment which is calculated out of three other key figures (capital, revenue and costs). I would now like to calculate the percentage period (year) differences between key figure ROI - between current year (month) and previous year (month).
    Do I have to add coding within a key figure formula within WEBI Rich Tech client or within universe builder.
    The key figures were extracted from SAP BW and added to a universe which is basis for WEBI rich tech client report.
    thanks and regards,
    Christian

    Hi Stratos,
    so I see - i have to use the variable Editor and then define a measure and add coding in the formula field. Do you have an e-mail address ín order to send you the report and explain in more detail what I would like to see - here it is not possible to upload a report...
    thanks and regards,
    Christian

  • How can I view my phone calendar for the previous year via my laptop?

    I have to extract appointments for tax purposes and as this is my first smart phone (Samsung Galazy S3), I have no clue if this is possible or where to look? I thought when my phone did its back up it backed up everything...now I'm guessing just my contacts?
    PLEASE HELP! TIME SENSITIVE!

        Help is here, sbsue! Lets see if we can figure this out. Which calendar are you using? Is it the one on your S3? If so, did you back up by going in settings > accounts > Gmail accounts and sync? If the calendar was synced, log on google.com/calendar to view the previous year. Let us know which calendar was used so that we can better assist.
    Thank you,
    LenaA_VZW
    Follow us on Twitter @VZWSupport

  • How to define the Previous Year Up to Date in BI 7?

    Dear Expert,
    I have got a BI 7 report requirement which needs to restricted a key figure with Previous Year Up to date.
    I have found a time variable as Current Year Up to Date but not able to find the one for Previous Year Up to Date.
    Is it possible that I can use it as below to restrict the Key Figure:
      ZMP_CTYD (Current Year To Date) -1   (current year to date with the off set set to -1)?
    If this is not a right way, could you let me know what is the correct way to restrict the Key Figure for Previous Year Up to Date?
    Further information about the requirement:
    I need to get the difference between current year up to date and previous year up to date for a key figure.
    For example, to get the difference between the  amout related to the preiod between Jan 1, 2008 and May 22, 2008 and the amount related to the period between Jan 1, 2007 and May 22, 2007.
    Thank you very much!
    Arthur

    Hi,
    YTD and CTD are different. One is all the way till year end and the other one is through current period. One way of doing this is to define your restricted KF definition. You can use the existing Variable that you already have and insert / restrict posting period from 'time dimension"  1 - 16, in most cases there are 16 period, or 1 to "latest period" depending on what you have. The key here is your " POSTING PERIOD" restriction
    Hope this helps
    assign points if helpful

  • Balance for previous years

    I have the following requirement:
    A user enters a Fiscal Period.  On our report we want to define key figures which show values as follows:
    Our Financial year is from 1st January u2013 31st December with 16 posting periods (K4 variant)
    Fiscal Period: 042007 u2013 entered by user
    1.     Balance for beginning of reporting year and end of previous year
    2.     Balance for beginning of previous year and end of year before previous
    Therefore for the example:
    1.     Balance 01.01.2007 and Balance 31.12.2006
    2.     Balance 01.01.2006 and Balance 31.12.2005
    How can I do this can I offset if so how and if not do I need to write an exit if so how? Thanks

    Hi Varun,
    Which period you want to run the report? Please let us know and also share screen shot.
    Regards
    Mukthar

  • P11D corrections in previous year

    Hi All,
    Does anyone know if there is a way to update the P11D values after the March payroll has been run? My understanding is that the P11D elements are read from the CRT, once you move into April you can't update the CRT from the previous year.
    Any suggestions would be much appreciated.
    Thanks,
    Mike

    Hi Michael
    Good day
    we have always processed the benefits for P11D reporting in April with a retro and the system was setup in a way to pick up the figures.Im talking of 2007-08 here however in case it changed not sure
    Also could be a custom setting which allows you to pick up the latest results
    Regards
    Ajay

  • Previous Year Closing and current year opening Bal not matching in FS10N

    Hi for some GLs Previous year's Cumulative balance and current year's opening balance is not same. What could be the reason?
    For example The closing Balance for FY 2008 is Rs.125398 where as in the current year opening balance it is displayed as some 65123 in the cumulative balance column what could be the reason. Is there any option for layout change at FS10N

    Hi Srini,
    Run F.16 and F.07 again and check.
    Or tally your figures with normal transactions only in FBL3N.
    And do checking GL balances for all the GL accounts except your vendor recon account and customer recon accounts.
    Hope this might help a little.
    Thanks,
    Srinu

  • Posting of depreciation in the previous year 2008

    Hi All,
    My client wants to capitalize some expencess in the previous year as assets, and they would like to caliculate depreciation from 01.01.2008 to 31.12.2008, finally they would like to carryforward those amounts to fiscal year 2009.  My client is following jan-dec as fianancial year.
    The assets involved are product licences and will need to be set up  under asset  numbers 99009 onwards. The amounts to be capitalised in 2008 are as follows:
    XYZ               u20AC12,456.89
    As a full years depreciation of 10% of the total costs was taken for 2008, the capitalisation date should be set at 01/01/2008 to allow the figures to be calculated correctly and the correct npv to be carried forward to 2009.
    Please let me know how to do this activity?
    Thanks in advance
    Regards,
    Prasad

    Go to TCode: OAAQ,
    Open Fiscal Year 2008 and post the entries capitalization entry through JV in 2008. Now run AFAB for repeat run for 12th period.
    Howeve above will change the closing balance of 2008 which may be audited and approved.

  • FI-AA new depreciation area - treatment depreciation previous years

    Hi,
    In the FI-AA module , next to the already existing depreciation area 01 for Fiscal reporting with full integration of postings to FI-GL, I have created a new depreciation area 20 for te purpose of Management reporting which takes over its APC values from depreciation area 01 and does only post different Depreciation values to FI-GL.
    Subsequently I updated the data for the new depreciation area in teh already existing asset master data records ( different depreciation keys).
    The depreciation calculation and resulting postings for the current year are correct.
    However I wonder what will happen with the data for the previous years;
    when i look in the asset explorer i do see for the new depr area in the "posted values" tab that it reports for the previous years planned depreciation amounts . However we do not want to post these amounts in the previous years because these years have already been closed and audited.
    Will we be able at the end of this fiscal year to changeover FI-AA to the new fiscalyear ( transactions AJAB, AJRW) without the system complaining with error messages that we first need to also perform the depreciation postings for all the previous years in this new depreciation area ?
    Many thanks in advance for your much appreciated help.
    Kind Regards,
    Arjan

    Can you please tell me how you added the new depreciaton area to the existing asset masters in those classes ?  To get the new depreciation area to show up?  We just did the same thing and we're only working with assets that were acquired this year - but we can't get the new depreciation area added to the assets that already existed in those classes.  If you figured out how to do that it would sure help us out.  I look forward to your response.  We're in 4.7.
    Thanks
    Karla
    Never mind found it from reading other posts.  I used AFBN and it worked.  Thanks
    Edited by: Karla Trevithick on Sep 17, 2009 12:39 AM

  • 12 month but devided into current and previous year

    hi guys
    i have this requirement to disaply amount for current period and previous period for 12 month.
    Current period is the period of  user entered year and previous period is previous year 
    So if user enter feb 2007 u2026Then current year is  feb, jan ,dec 2006
    And previous period is   Nov 2006  to March 2006
    user is entering the value 0CALMONTH ...and report to need to display 12 month internval betwen years. my problem is how to check the year  and interval
    please help me without any custom exit? can it be possible thru varibale?

    Hi,
    I think i misunderstood your question previously.
    You can create offsets on CALMONTH and achieve this easily.
    1)In the columns are of query disigner, create selections for 12 months by using CALMONTH and offset each field by -1 or -2,-3,-4 ..... -12.
    2) Create a Text Variable to show the month Value in column header
    3) Create a structure in columns area and place it below all the CALMONTH selections
    4) Include all your Key Figures inside the structure.

  • YTD and and previous year to date as variables

    HI All,
    If your cube doesn't have YTD and and previous year to date as variables to use - can these be created?
    Regards J

    Hi,
    Yes it can be staged in cube but you need to write routine and transformation/update rule level.
    If you need for some query requirement then you may achieve the same at query level. For this you need to create some Restricted Key figures by restricting your key figure with Calyear/month as per your need.
    Query level approcah will be much easier then the cube level.
    I hope it will help.
    Thanks,
    S

  • Getting the same day of the week from a previous year in a Power Query calc column

    Hi Power Query users,
    Would like to get your suggestions on this problem. I have a customer that wants to see the previous year's sales for the same day of the week. So today is Friday July 25, 2014. Customer would like to see sales for the closest Friday on the previous year,
    which was Friday July 26, 2013. Next year on Friday July 26, 2015, customer would see the sales for Friday July 25, 2014 and so on. Customer operates 7 days a week, all days of the year including holidays.
    What is the most elegant way to do this? I am assuming the best thing to do is to add this date as a calculated column in the date table, but I am not quite sure the best way to write the formula (including handling of edge cases - leap years, providing
    null when the previous year is not part of the date table, etc).
    I am starting with the
    date dimension as presented by Matt Masson.
    Please help if you have any formula suggestions for this.
    Thanks

    Okay, I'm making a couple of assumptions, so please let me know if these assumptions are incorrect:
    1) Instead of all sales data being in a single column, current year and last year sales are provided in different columns,
    2) The previous year sales column shows the sales occurring on the same
    date as the current year sales (so in your example, 43214 is the sales figure for 6/1/2013.
    If the above assumptions are true, we need to modify how the lookup is done. Let's assume that you created a custom column named SameDayOfWeekLastYear. Create another column called Previous Year Date, using the following function (Date_PreviousYear)
    (date) =>
    let   
        PreviousYearDate = Date.AddYears(date,-1),
        PreviousYearDateAdjusted = if (Date.Day(date)=29 and Date.Month(date) = 2) then
                                       #date(9999,1,1)
                                   else PreviousYearDate
    in
        PreviousYearDateAdjusted
    Incidentally, I created this function the week before your query, for a different purpose. In that case, it was to get the previous year sales occurring on the same
    date as the current year sales. It actually gets to your starting point, but with all the sales data in a single column to start with. However, when the current year is a leap year and you apply the Date.AddYears function, February 29th is calculated
    as February 28th of the previous year. If you then do a lookup for previous year sales, you get February 28th sales looked-up twice (the real Feb 28th and the bogus one resulting from taking February 29th back one year). The PreviousYearDateAdjusted identifier
    puts a truly bogus date instead of a duplicated Feb 28th - one that will always return null when looking up the sales value.
    This new date column will then be used to lookup the row of the previous year sales column that corresponds to the dates in the SameDayOfWeekLastYear column.
    Assuming that the last step in your query is InsertedCustom1, create another custom column (Previous Year Net_Same Day?), which returns the sales on the same day as the current year (the result that you're after). The formula would be:
    LookupValue(InsertedCustom1[Previous Year Net], InsertedCustom1[Previous Year Date], [SameDayOfWeekLastYear])
    where LookupValue is the custom function mentioned previously. After creating this new custom column, you can then remove all of the columns you don't need.
    Hope that the preceding is somewhat clear.

  • BEx - Display current year and previous year by day on the same row

    Hello experts, need some help/suggestions on how I can accomplish the following please. 
    We have a requirement to show MTD revenue by day for the current year and previous year.  The desired result will have the following columns
    Calendar Day   |     Current MTD Revenue     |     Prev MTD Revenue
    11/01/2009       |      15,131,005                    |        15,138,668
    11/02/2009         |    15,055,345    |                        15,523,762
    However, the result is showing up as follows:
    Calendar Day   |     Current MTD Revenue     |     Prev MTD Revenue
    11/01/2008       | |                                                   15,138,668
    11/02/2008       | |                                                   15,523,762
    11/01/2009       |      15,131,005 |
    11/02/2009       |      15,055,345 |
    The number of rows for Calendar Day varies depending on the date the user selects.  We only want to display the days for the current year with the Previous Year Column on the same row. 
    Can someone please let me know how I can get the results to display on one line for each day? 
    Thanks,
    David

    I have the same issue on my end, and am interested in responses. I searched the forum and found this suggestion in another post; not sure if this solution will help, but it looks like it might. This was a response from poster RadhaN:
    RadhaN  
    Posts: 390
    Registered: 8/27/09
    Forum Points: 876 
       Re: a simple query to show sales versus last year on daily basis/   
    Posted: Sep 21, 2009 9:53 AM    in response to: Shlomi Weiss           Reply 
    HI Shlomi
    Create a virtual characteristic in your infoprovider that can calculate the day from calendar Day. In ZXRSRZZZ while adding code for this virtual characteristic use the function module DATE_COMPUTE_DAY to compute the day for every calendar day.
    For calculating Sales Current year, create a restricted ky figure with Sales as the key figure. Add 0CalDay to this RKF and create a variable for this infoobject(Eg: ZCURYEAR) that will receive input from the user for the range of dates eg: 08/16/2009 - 08/22/2009.
    For Sales Prior year, create another restricted key figure with Sales. Add 0CalDay to this RKF and add a customer exit variable. In the Customer exit code use the ZCURYEAR variable and offset it to prior year in both the upper and lower limits. This should work.
    I hope this helps.
    Thanks.

Maybe you are looking for

  • Importing songs to itunes folder from dvd's

    i have a data dvd backup of all my 1400 songs from itunes folder. i tried to import it into a newly dowloaded version of itunes on my laptop with new hard drive.. it placed all the song info in the library, so i connected my ipod and directed it to t

  • Error in Follow up transaction for quote created in r/3 in CRM

    Hi CRM Gurus, I need an information on a requirement ... I have maintained the middleware settings for transferring the quotation from r/3 to CRM . Now I want to create a contract as follow up document based on this quotation... is it possible? if ye

  • Paradigm Shift: the WDP Model & the Power to Bind

    As a developer coming from an OO/java background, I recently started to study and use the Java Web Dynpro framework for creating enterprise portal applications. Up to this point, I've developped 2 or 3 WDP projects - and in so doing, I've tried to re

  • How to use Designer Generator in JHS 10.1.3

    I have migrated a sample form using JHS 10.1.2 on Jdev 10.1.2. Now I am trying to do the same on Jdev 10.1.3 using JHS 10.1.3. But I could not locate Designer Generator which will locate Modules of Repository of Oracle Designer, How should i do this?

  • How can I rotate a video that is sideways on my computer?

    I uploaded a video from my tablet but it is sideways in my pictures on my computer, I want to burn it onto a disc but I can't rotate it. Can anyone help me?