Previous year display

Hello everyone,
I have to selections in a structure to display current and previous year data. They both refer to the same variable based on 0FISCPER, and one carries an offset of -12. So far so good (all this is BEx 7.0 btw).
The problem is that we need to include the same fiscal period variable also into the default filter area so that a template which is going to use the query can display the current selection. This now restricts the data to the query, and unless I have both the original variable and the same variable with the -12 offset as a restriction, I'm not going to see any previous year data. This again has the sideeffect that once I want to change the variable value while using the query, I see two selected values in the filter, the original period and its previous year counterpart.
Is this working as planned? I was hoping that even while restricting a query to a period, I would still be able to use a variable offset.
Any thoughts on this? Thanks for you help
Tilman

Tilman,
Could you create text variable for 0fiscper and display them over each of the column headings?
Regards
Gill

Similar Messages

  • How to display the Previous years

    Hi
      CJE0 - 12KST1A costs:budget/actual/commt/rem.plan/assd
    How to display the previous years budget in above mentioned report. at present the report is showing only cumulative value of previous years,2009 and 2010.....
    My requirement is from 2005 to 2009 i want display the value in this report, please through some light on this.
    Thanks
    S.Murali

    Hi
    But i want check the previous years budget for some number of projects not one by one, because the number of project are more.
    The above mentioned solution is for one by one i can check the pervious years budget. But my requirement is collective.
    Thanks
    S.Murali

  • Fiscal year period displaying previous years records tooo....

    Hi,
    I have built a query, which displays all the metrics like Year to date(YTD) Actuals and Plan, Month to date (MTD) Actuals and Plan, YTD Variance, MTD Variance, Remaining Balance etc... The query uses a customer exit to calculate the above metrics.
    Input filters are:
    Company Code: single value, mandatory,
    Fiscal Period: single value, mandatory
    Along with other characteristics , Fiscal period is also provided in free characteristics.
    Upon Execution (for eg:-) with input of fiscal period as 003/2008, the query displays the correct output for that year ie; 003/2008.
    But when the Fiscal Period is dragged from Free characteristics to the columns fields, it displays all the metrics for all the previous years records too. ie; it displays the values of 003/2007 along with 003/2008. The client does not want this to happen. It should display the values only for the period given as input.
    The client wants the fiscal period be provided in the free characteristics and not to remove it.
    Can anyone advise what could be done to prevent the query from displaying results of previous dates.
    Thanks in advance.
    Maddy

    What info-object are you using 0FISCPER or 0FISCPER3? Because 0FISCPER3 is just the fiscal period without year. So If you select Fiscal Period 3 it will give you the total for all years. If you are using 0FISCPER3 please change to 0FISCPER or user 0FISCPER3 together with 0FISCYEAR.

  • Displaying current year and previous year's data.

    hi all,
    we have fields like doc.no, company code, costcenter, posting date, year etc... in a query.
    we are using this query to display data in VC,
    how can i display the current year and previous year's data in two different tables using the available fields.
    any help will be highly appreciated.
    thanks,
    Rk

    Hi Rk,
    You can achieve your requirement using 'Filter' operator. Drag one 'Filter' operator into visual composer story board and drag the output into filter and add condition(Check year=2008) and drag one table from filter. For another table use another filter and change the condition.
    Hope it helps...
    Regards
    Basheer

  • 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.

  • How to use previous year keyfigure data in current year for other keyfig

    Hi Expert,
    I have 1 requirement wherein I need to use previous year data for some keyfigure calculation.
    Details are as follows:
    I have designed query with CKFs Turnover & UVG (in rows) & Fiscal year period in columns.
    Suppose Keyfigure Turnover data is displayed from Apr2009 to Mar 2011. In UVG: for Apr 2010, i need Turover data of month Apr 2009, for May 2010 turnover data of May 2009 similarly for other months.
    As per my understanding, I need to use customer exit which will store kf turnover data in internal table & in turn it will be used for UVG.
    But I'm not able to put it into syntax.
    Kindly suggest your inputs in this scenario.
    Thanks,
    Shamkant

    Hi
    Note that the variable ZCALCCALMTH is exit type and variable ZCALMTHREF is ready for input.
    WHEN 'ZCALCCALMTH'.
    IF i_step = 2. "après le popup
    READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZCALMTHREF'.
    IF sy-subrc = 0.
    CLEAR l_s_range.
    year1(4) = loc_var_range-low(4).
    year1(4) = zyear1(4) - 1.
    zmonth1(2) = loc_var_range-low+4(2).
    CONCATENATE zyear1(4) zmonth1(2) INTO loc_var_range-low(6).
    zyear2(4) = loc_var_range-high(4).
    zyear2(4) = zyear2(4) - 1.
    zmonth2(2) = loc_var_range-high+4(2).
    CONCATENATE zyear2(4) zmonth2(2) INTO loc_var_range-high(6).
    l_s_range-low = loc_var_range-low(6).
    l_s_range-high = loc_var_range-high(6).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDIF.
    bye
    Boujema

  • Crystal report formulas to view revenue for current & Previous Year

    Hi all,
    We have a requirement to create a formula in crystal reports to display the current month revenue and previous month revenue along with few dimensions and also current fiscal year revenue and previous year.
    For ex on SAp ecc table CE11000.
    Please provide the syntax for above requirement.
    Quick response is appreciated.
    Thanks.
    DJ

    HI AlunJD,
    Thanks for your quick turnaround.
    Here's the structure of table i have fields like Currency type,Document Number,Fiscal year , Company code,country, Countrygrp,Document type, Sales quantity & Revenue.
    My requirement is to display Revenue for current Fiscal Year and Previous Fiscal year and aswell as Current Month And previous month in the same report.
    Is there any functions to create a formula to display data on above mentioned logic.
    Thanks.
    DJ.

  • How to populate the data or details of only the present year and the previous year with respect to the given RATNG?

    Hi All,
    I have created a form with 5 blocks (namely ENQACMHDR, ENQACMDTL, ENQACEHDR, ENQACEDTL, ENQACSPEC), where i have 8 push buttons (namely ENTER_QUERY, EXEC_QUERY, CLEAR, FIRST, NEXT, PREVIOUS, LAST & EXIT).
    This form is created just for viewing purpose only. So after I execute, all the blocks have been blocked against insert & update.
    I query on 2 fields that is 'ENQNO' and 'RATNG' (Both the fields belong to the block ENQACMDTL).
    When I click on 'EXEC_QUERY' directly, all the data of all the years populates.
    But the user wanted the data to be populated from only the present year and the previous year.
    So , on 'WHERE Clause' of the property_palette of 'ENQACMDTL' block , I put in the following condition:
    SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR( ADD_MONTHS(SYSDATE,-12) , 'YYYY') OR SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR(SYSDATE, 'YYYY')
    PROPERTY PALETTE (ENQACMDTL block)
    WHERE Clause
    SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR( ADD_MONTHS(SYSDATE,-12) , 'YYYY') OR SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR(SYSDATE, 'YYYY')
    Now the data of only the present year and the previous year is being populated. Its ok with the field of 'ENQNO'.
    The problem is when i query on field 'RATNG' . 'RATNG' is a Text_item with Number of Items displayed=5. (5 rows)
    The following are 2 columns of a Table (Name=ENQACMDTL) in Database.
    ENQNO
    RATNG
    2013900054
    500KC2
    2013900047
    800KC4
    2013520018
    750KC6
    2012900037
    1000KC2
    2012520109
    500KC2
    2012140019
    750KC6
    2011540036
    500KC2
    2011100030
    1000KC2
    2006100007
    90KD8
    2006750014
    750KC6
    2006900072
    500KC2
    The first 4 numbers of 'ENQNO' denotes the year. There are more than a lakhs of records.
    So when i query on the field 'RATNG',
    Example:For RATNG=500KC2;
    I click on ENTER_QUERY, On the field of 'RATNG' , i put in the value 500KC2 and click on  EXEC_QUERY; Details with respect to 500KC2 is displayed as well as all the other unwanted RATNG like 750KC6, 1000KC2 (which belongs to the ENQNO of the present year and the previous year) also gets displayed.
    I want details of only RATNG (500KC2) to be displayed, but only of the present year and the previous year, that is 2013900054, 2012520109 (ENQNO).
    Other than 500KC2 RATNG, no other RATNG must be displayed.
    The RATNG=500KC2 is also present for ENQNO=2011540036 , 2006900072. But I dont want these to be displayed.
    I want only the data or details of the present year and the previous year to be displayed or populated with respect to the given RATNG.
    Can You Help me or tell me what do i do for this?
    Hope I'm clear with my question!!
    If my question is not clear, let me know plz.
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle forms 6i.

    On key-exeqry you have to program.  Delete all other trigger codings for checking your condition.
    It dint work on key-exeqry.
    I tried key-exeqry on form trigger, block (enqacmdtl) and also on field(:enqacmdtl.enqno) , but none of them worked.
    It did not display the message.
    I have a 'PUSH-BUTTON:EXEC_QUERY.
    For EXEC_QUERY, Trigger : WHEN_BUTTON_PRESSED;
    I added the following code:
    if to_number(substr(:enqacmdtl.enqno,1,4))<to_number(to_char(add_months(sysdate,-12),'YYYY')) then
         message('The Rating is not present for the present year and the previous year');message(' ',no_acknowledge);
         raise form_trigger_failure;
    else
         execute_query;
    end if;
    It is working fine and the message is being displayed.
    But again I have a new problem and that is;
    On the field :enqacmdtl.enqno, when i enter the '2013%' and press 'EXEC_QUERY', it works fine.
    but when i enter '2006%' and press 'EXEC_QUERY', it shows the following error
    FRM-50016: Legal characters are 0-9 - +E. It does not display the message also.
    but when i enter the complete number, '2006580002', then it works fine , that is it displays the message (The Rating is not present for the present year and the previous year).
    The problem is because of '%', only when i put in the restricted data (which does not satisfy where condition).
    How do i solve this?
    Thank You Priyasagi.

  • Capturing "Actual Amounts" from previous years

    Hi Experts,
    We had earlier developed a report to produce a list of projects which can be changed from status TECO to CLSD. If the project cannot be closed then the corresponding reason for failure should be displayed.
    Now the problem is that there were some direct costs which were booked under certain WBS elements. These elements were created in the previous year & haven't been settled in that year. Our present program isn't able to capture & display these costs in the current year. We have based our logic up on a join of table COBK with tables COEP, PROJ & PRPS. We are referring to the SAP standard TCODE s_alr_87013533 which is able to find the unsettled dollars (Actual amount) even from previous years. Anyone please help advise as to how we can even capture the actual amounts from previous years.
    Regards,
    Uday
    Our inner join statement is as shown below:
    SELECT coep~objnr coep~wogbtr coep~megbtr coep~wrttp coep~kstar
             coep~owaer coep~vrgng coep~sgtxt coep~ebeln coep~ebelp
             coep~objnr_n1 coep~belnr coep~gjahr coep~perio
             cobk~blart cobk~refbn cobk~refbk cobk~refgj
        INTO CORRESPONDING FIELDS OF TABLE tb_actual
        FROM coep INNER JOIN cobk ON cobk~kokrs = coep~kokrs AND
                                     cobk~belnr = coep~belnr
                  INNER JOIN prps ON coep~objnr = prps~objnr
                  INNER JOIN proj ON proj~pspnr = prps~psphi
        WHERE proj~pspnr  = wa_proj-pspnr   "project definition
          AND prps~pspnr  = wa_prps-pspnr   "WBS element
      AND prps~belkz =  c_x             "Account assignment
      AND coep~wogbtr <> 0              "amount
      AND coep~lednr = c_00             "Ledger (needed to hit index)
      AND coep~wrttp IN (c_04, c_11)    "actual value type - real & stat
      AND coep~beknz IN r_beknz.        "D/C Ind <> Settlement

    based on the data provided -
    I-001688               
    Cost line                       7143.28          71710000
    Cost line                     42874.74          73120000
    Cost line                     22752.77          73120000
    TOTAL COST     72770.79          
    Settlement line     65627.51          81650000
    Settlement line     7143.28          81650000
    TOTAL SETL     72770.79          
    you should be able to set CLSD to this project as there is no unsettled value in the project
    CJI3 report confirms that there is no outstanding settlement and hence project can be set to CLSD. This report shows all the line items against project
    The report S_ALR_87013533 shows the actual cost incurred in the project, but not settlement. This does not mean that the project is unsettled.
    see another report (project cost element report) - that might help you S_ALR_87013542

  • Facts of a certain period of previous year

    Hi all,
    probably my question will resolve in a simple answer, but I 'm not able to achieve the following problem.
    I want a report in which I see the turnover of the company of current year, previous year AND the turnover of the previous year till the daynumber of today of the previous year. (eg. today it's day 301; now I want to see the turnover of the 1 of january 2006 until day 301 of year 2006)
    Is there a way of doing this?
    Thanks,
    Egide

    Hi Venkat,
    first of all thanks for the quick reply.
    Unfortunately the problem is not as simple as you describe.
    This report should display these values by department.
    And what if I want to use other measures in stead of department?
    Is there no general way of doing this (in stead of writing a function in oracle).
    Isn't is possible to do this by using the ag and todate functions?
    any other suggestions?
    Thanks

  • OBIEE 11g - Current year date and the same date in Previous year

    Hi Experts,
    I have an attribute say RECEIPT NO, i want to display the "No of Receipts" i.e(count(receipt no)) for any given date in the current year as well as for the same date in previous year.
    Please suggest me how to achieve this in 11g.
    Thanks

    Hi Veeravalli,
    Thanks for your prompt help.
    Could you please ellobarate this. I have to display the count(receipt_no) for the last year same date.
    Thanks

  • Full year Total in previous year

    I use the ago function and I want the full year amount of the previous year. Example when a have my amount for period 4 in year 2010; I want to see the full year amount for 2009 in another column.
    Somebody has a solution,
    Thanks

    Thanks Daan,
    I have a column that holds the 12 months of the financial year (APR - MAR). I have separate columns that hold the Monthly and the Full Year measures.
    I add the Monthly and Full Year values into the Measures column of the Pivot Table and the column that displays the name of the Month is added to the Measure Labels. Therefore the monthly and the full year values are displayed for every month.
    How do I prevent the Full Year values from being displayed for every month using the filters you have mentioned?
    Regards
    Vikram

  • 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

  • 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.

  • 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."

Maybe you are looking for