Last year column data not displying

Dear All,
I am working on one of reporting issue where data is not getting displayed for few Last year columns. I have checked at the back end and data is available in info providers.
I want your help to identify possible reason. I carried below trouble shooting steps.
1: checked data in back end and its available
2: all restrictions are proper.
3: there no issue with query properties, I check all.
I am doubtful about customer exit code so here it is. Please suggest me whether its good or not.
WHEN 'ZVAR_LYCW'.
    IF I_STEP = 2.
      CLEAR LOC_VAR_RANGE.
     BREAK-POINT.
      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
      WHERE VNAM = 'ZVAR_CALDAY'.
        CLEAR : L_S_RANGE,
                v_loc_date,
                v_loc_date1.
        L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
        L_S_RANGE-LOW(4) = L_S_RANGE-LOW(4) - 1. "low value previos year
        L_S_RANGE-HIGH = LOC_VAR_RANGE-HIGH.
        L_S_RANGE-HIGH(4) = L_S_RANGE-HIGH(4) - 1.
        v_loc_date = L_S_RANGE-LOW. "take input value in another variable
        v_loc_date1 =  L_S_RANGE-HIGH.
        L_S_RANGE-LOW =  v_loc_date.
        L_S_RANGE-HIGH = v_loc_date1. "high value = input, taken into another variable
        L_S_RANGE-SIGN = 'I'.
        L_S_RANGE-OPT = 'BT'.
        APPEND L_S_RANGE TO E_T_RANGE.
        EXIT.
      ENDLOOP.
    endif.
Please help.
Thanks,
Vishal

Hi vishal,
try this:
WHEN 'ZVAR_LYCW'.
IF I_STEP = 2.
CLEAR LOC_VAR_RANGE,L_S_RANGE,
v_loc_date,
v_loc_date1.
* BREAK-POINT.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZVAR_CALDAY'.
v_loc_date =  LOC_VAR_RANGE-LOW+0(4) - 1.
v_loc_date1 = LOC_VAR_RANGE-HIGH+0(4)-1.
L_S_RANGE-LOW = v_loc_date.
L_S_RANGE-HIGH = v_loc_date1.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
endif.
Edited by: JAIGUPTA on Jan 20, 2012 6:14 PM

Similar Messages

  • Till Last Year, To Date -  Discoverer......

    We have following table X
    PNO Date Amount
    10 10/31/2006 10
    10 11/30/2006 15
    10 11/30/2007 20
    10 12/31/2007 30
    10 1/31/2008 15
    10 2/29/2008 25
    10 3/31/2008 40
    We need to create report as follows, the parameter is the Date.
    Lets say user pass parameter : 3/31/2008
    The report should look like,
    PNO TillLastYear To date
    10 75 155
    Till Last Year - Sum of Amount column till Last Year
    To Date - Sum of Amount Column to the date parameter passed.
    Could some on guide me how to achieve this......?

    Hi,
    You need to add the PNO item into your report and then create calculations based on your date item:
    TillLastYear SUM(CASE WHEN DateItem < TRUNC(SYSDATE,'Y') THEN Amount END)
    ToDate SUM(CASE WHEN DateItem < :DateParameter THEN Amount END)
    Rod West

  • Last year-to-date figure

    Hello Experts -
    I'm using a customer exit variable to calculate the beginning of the year. And I have a variable input for a calendar month.
    I'm using these two values to get the year-to-date figure.
    How can I calculate the last year-to-date figure?
    Thanks a lot in advance.

    Thanks for the prompt replies.
    I don't have a year so thats why i'm using a customer exit.
    another thing is my calendar month is not the 0CALMONTH. i had to derive it from a timestamp. and its not a time characteristic which we can't create.
    its a NUMC. and i think thats why the offset isn't working either.

  • Last year to date

    afternoon all,
    I am so confuse with these year to date dates, what is the best practice if you want to get all the dates from last year upto today's date.
    For example, Today is 16/01/2009, so effectively the last year to date would be 16/01/2008 to 16/01/2009.
    I am thinking of using =Today-365
    or  =Currentdate-365
    or  =(dateserial('y',-1,)
    Perhaps you can give me some ideas?
    Regards
    Jehanzeb

    I forgot to ask another question. I am using the following formula under my Record Selection formula,
    Does this formula means from Last year to date?
    ({lab_rework.rework_date} in date(year(currentdate),1,1) to
    dateserial(year(currentdate), month(currentdate)+1,1)-1
    Sorry but I am so confused with these date formulas.
    The purpose is to get last year to date records, that is 16/01/2008 to 16/01/2009 where 16 is currentdate.
    Regards
    Jehanzeb

  • Assign Assets value date bydefault as last year doc date.

    My scenario is :
    Assets Purchased date is 01-02.2009(which comes in last year) & we are posting it today.
    I keep default value date as doc date.
    But it comes by default  when i post in same fiscal yr.When i post with last yr doc date,then it takes today date as value date.
    How to keep last yr doc date as value date?

    Thanks.
    I have kept the rule as 3-prime & 4-Alternative.
    Still i m not getting .
    Posting date       01.07.2009
    Document date : 01.02.2009
    So i want Valie date as 01.02.2009.
    I think this rule is applicable in same yr of Posting & Value date only.
    When i use date within same yr then this rule getting apply,but when i used different fiscal yr then it takes Posting date as value date.
    So how to Keep value date as doc dt( which is in last yr) ?

  • Getting last year column value from a single table

    I am having the following columns in my table
    BRANCH_CD
    YYMM
    VNDR#
    VGROUP#
    SALES_TRGT_AMT
    SALES_ACTL_AMT
    CUM_TRGT_AMT
    CUM_ACTL_AMT
    i need to get sales_actl_amt from this year and sales_actl_amt from last year from a single table
    pls help
    thank you
    Edited by: 960991 on Nov 19, 2012 11:13 PM

    Hi ashish,
    but i can't use unions in my reports.
    once view my query :
    select t.branch_cd,b.branch_e_name,t.vndr#,v.vndr_name,
    sum(nvl(t.sales_actl_amt,0)) sales_actl_amt
    from inv_sales_trgt_val t,branches b,vendor v where
    t.branch_cd=b.branch_cd and
    t.vndr#=v.vndr# and
    (t.yymm between :fiscal_month and :fiscal_month2) and
    (:fiscal_month<>trunc(:fiscal_month2,-2)) and :fiscal_month2<>trunc(:fiscal_month2,-2)) and t.branch_cd between :from_branch and to_branch and
    t.vndr# between :from_vndr and :to_vndr
    group by t.vndr#,v.vndr_name,t.branch_cd,b.branch_e_name
    order by t.vndr#,t.branch_cd;
    how can i get last year sales_actl_amt .

  • To find last year's data / a particular year's data

    Hi ,
    How to find out the data for the entire last year , i tried like
    entered_date between to_char( '12/31/2008 11:59:59', 'MM/DD/YYYY HH12:MI:SS')
    and to_char('01/01/2010 00:00:00', 'MM/DD/YYYY HH12:MI:SS' ) , but it is an invalid number error.
    thanks.

    Hi,
    If you want something that doesn't require hard-coding a year, but automatically figures out what year it is:
    WHERE   entered_date     >= ADD_MONTHS ( TRUNC (SYSDATE, 'YEAR')
                                              , -24
    AND     entered_date     <  ADD_MONTHS ( TRUNC (SYSDATE, 'YEAR')
                                              , -12
                                    )There are a couple of things to notice about the expression you posted (besides using TO_CHAR instead of TO_DATE):
    WHERE  entered_date     BETWEEN TO_DATE ('12/31/2008 11:59:59', 'MM/DD/YYYY HH12:MI:SS')
                          AND       TO_DATE ('01/01/2010 00:00:00', 'MM/DD/YYYY HH12:MI:SS')BETWEEN includes both endpoints, so the expression above covers a tiny bit more than one year. It includes one second from 2008 and one second from 2010, as well as all of 2009.
    Currently 2010 is the last year, so the expression you posted (as well as my suggestion) is actually for the year before last year, but it can easily be changed for any year.

  • HT201272 I purchased an album last year, and its not showing on my purchase histrory.to redown load

    i purcahed an album last year. i got a new phone but not able to redownload album (s) when i got to see if i can repurchaed.. it saids i have alreaded purchased it dose not let me down load from y Reg PC eather

    Thanks very much I have contacted them via this. Just hope they respond quickly- rather annoing! Greatly appreciated though

  • I bought cs6 last year and can not find any information on my adobe account about the purchase. I need to reinstall it. How do I get a hold of adobe to get this information?

    who do I contact about finding a activation code of my CS6 i bought last year?

    Serial number and activation support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • Smartform column - data not fully shown

    Hi experts,
    In smartform table, i have data around 1000Characters to be displayed in one column, but it was displaying upto 250 something.
    I checked on the variable in text, it is declared with String. I debugged also variable string contains 1000 characters but it displays only less charcters in column ( final output).
    Pl help
    Regards
    Kishore.

    hii kishore,
                    1. i hope  your entering it from header text.
                    2.Create a text element
                     3.Keep the  text element under loop.
                    4.specify it_tab into wa_tab under table tab in Loop.
                    5.specify &wa_itab-text& in the text element.
    Regards,
    Sridhar.V

  • HT1660 How do I find receipts for past purchases I have made in the last year if their not in my email?

    I play War2Victory and WiStone said I maybe able to be qualified for SVIP but when I went to my email looking for receipts from purchases I could not find them, I don't know if I erased them on accident or what? Is there someplace I can get them again from ITunes?

    Thank you wjosten. That enlightens me on Apple phones.....
    I will have to be more alert and save important numbers immediately and so not lose these numbers.
    Thanks once again.

  • Dates -- Pulling the last year data!, which should'nt be the case.

    Need some basic SQL Help ..
    Iam supposed to pull the data based on a date column(end_time) -- Yesterday 3PM untill Today's 3PM.
    Iam getting last year's data too in additon to Current Data.
    Where am i comparing wrong??
    SELECT a.*
    FROM table a
    WHERE TO_CHAR (a.action_end_time, 'MM/DD/YYYY HH24:MM:SS') >=
    TO_CHAR (SYSDATE - 1, 'MM/DD/YYYY')
    || ' 15:00:00'
    AND TO_CHAR (a.action_end_time, 'MM/DD/YYYY HH24:MM:SS') <=
    TO_CHAR (SYSDATE, 'MM/DD/YYYY')
    || ' 15:00:00'
    ORDER BY a.end_time;

    Date math, 1 = 1 day 1 / 24 = 1 hour, trunc with no date format gives midnight
    Try this.
    select a.* from table a where
      a.action_end_time between trunc(sysdate) + (15 * 1 / 24)
                            and trunc(sysdate - 1) + (15 * 1 / 24) In your example you are comparing strings, not dates.

  • ABAP Logic - This Month This Year to This Month Last Year problem

    Hi All,
    I have a following requirement ... the report currently compares This Month This Year to This Month Last Year. But this is not a valid comparison for the user until the end of the month is reached as only then is it comparing 2 full months. We would like to use a formula replacement path variable to work out which proportion of data we have for this month. ie. if its day 15, we have 50% of data (if there are 30 days in the month - this just an example), therefore we should only show 50% of This Month Last Years column so that the comparison between the 2 is sensical.
    So I'd like the formula variable to return a ratio or percentage which I can then use in a calculated key figure in the query to pro-rata the last year data.
    The query currently displays data by Fiscal Period, so when working out the ratio I would need to check which Fiscal Period we're in and also consider that the data is loaded every night, so on the 1st day of a Fiscal Period we are comparing everything up until yesterday.
    Can anyone see in problem with the logic of this, or better yet, has anyone done this before and maybe has some code for me? Is there another way I could be doing this?
    Edited by: Julius Bussche on Sep 19, 2008 4:31 PM

    Have you tried google for this Error Message...
    http://support.microsoft.com/kb/959077

  • Last Year Sales Report

    I have a requirement where say user selects year and months by prompts eg. 2008 jan and 2008 feb. It should also give me sales for last year and should be arranged as rows.
    2008 Jan Sales
    2008 Feb Sales
    2007 Jan Sales
    2007 Feb Sales
    How to go about it?
    Thanks

    You would need to expose another column (you can hide it, of course) that contains the month number (monthnum) equivalent (1 - 12) of the month name (Jan - Dec). Set primary sorting (1) to the year in descending order and secondary sorting (2) to the monthnum column in ascending order.
    As for getting "last year's" data from the prompt, say you have a prompt called "Year." Then you would create two "year" filters, on the Year column, as follows:
    "column name".year = @{Year}
    OR
    "column name".year = @{Year}-1
    This will pull both the "prompt year" and the year before.

  • Last Yr Plan Data Vs Current yr Plan Data

    Hi gurus,
    Cd some one tell me when we are into a situaion where need to compare Plan Values Vs Last Yr and Current Yr,
    1. How we are going to do this.
    2. How Versions will be differentiated?
    3. Will be Plan Valus of Last Year still can be changed or else they will be in  
        Display Mode. For me it does not make sense to change Last Year Plan Data.
    Thanks a lot for all your kind inputs.
    Quick assistance is highly appreciated.
    Regards,
    BI-IP Guest

    Hi ,
    I think u can take a multiprovider on three cubes in which
    1.)The last year content will be in the standard infocube (b'coz according to any business data can be changed within a particular time limit)
    2.) The current year's content also u have to put in standard infocube
    3.) The plan data u can put in real time infocube on which u can define aggregation level and planning function and sequences.
    now u can report on the multiprovider by which u can compare the data on the respective three years.
    Regards,
    Supriya

Maybe you are looking for

  • Desperate - How can I delete an entire index at once?

    I have accidentally entered the index references for a quarterly into the 'topics' panel when they should have been inthe 'reference' panel. (Darned radio buttons....) There are dozens of entries and deleting them individually from the index will tak

  • Facebook in is not working with this new update from firefox. why?

    i got on internet explorer and check facebook and they said that facebook was not supporting this new Firefox. i hate internet explorer.. and i was happy with firefox.. but i can't have it if it wont let me on facebook. i do a lot of my business ther

  • Credit Management & Customer Hierarchy

    Hi, 1. i need to assign credit limits in a customer hierarchy set up. For Eg: The Global client is assigned a credit limit of USD x. The national clients shall have a % of x.  How to define this set up in SAP? 2. What processes are covered (in genera

  • Document printing SDK

    Hi Is it possible to print a range of documents via the SDK, analogously as in "sales - document printing"? And if possible, can anyone give us some program-code how we can accomplish this? Many thanks in advance, Iris Spenninck

  • Table,Images in Email text area

    Hi Experts, I am using javax.mail API to send a mail which is deployed on SAP WAS. I want to send text of a mail which contains table as well as in images. How do i achieve it with Webdynpro