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) ?

Similar Messages

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

  • 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

    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

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

  • When ever  enter the date start date up to next year same date between the days divided into 8 parts

    when ever  enter the date start date up to next year same date between the days divided into 8 parts
    Q1.1 (YYYY) = 1st half of Quarter 1 for year YYYY
    Q1.2 (YYYY) = 2nd half of Quarter1 for year YYYY
    Q2.1 (YYYY) = 1st half of Quarter 2 for year YYYY
    Q2.2 (YYYY) = 2nd half of Quarter 2 for year YYYY
    Q3.1 (YYYY) = 1st half of Quarter 3 for year YYYY
    Q3.2 (YYYY) = 2nd half of QuarterQ3 for year YYYY
    Q4.1 (YYYY) = 1st half of Quarter 4 for year YYYY
    Q4.2 (YYYY) = 2nd half of Quarter 4 for year YYYY
    Here YYYY depicts the year.
    e.g. Q1.2 (2014) depicts the 2nd half of Quarter 1 for year 2014.
    The description of these values are explained below.
    The table below provides the description about each value:
    Quarter     Quarter Range      Start Date
    Q1.1      1 Jan - 15 Feb         1st  Jan
    Q1.2      16 Feb-31 Mar         16th Feb
    Q2.1      1 Apr- 15 May          1st Apr
    Q2.2      16 May-30 June       16th May
    Q3.1      1 Jul-15 Aug             1th Jul
    Q3.2      16 Aug -30 Sep       16th Aug
    Q4.1      1 Oct -15 Nov           1st Oct
    Q4.2      16 Nov – 31 Dec      16th Nov
    The dropdown values in time window needs to be updated as per date entered by the user in the Audit Plan start date and
    should display the next four Quarter (each divided in 2 half  i.e. Eight values ) along with the year  from the selected Audit plan start date.
    for eg. If the Plan start date is given as August 10 2013 then the Time window will display the following options:                      
    Q3.2 (2013)                
    Q 4.1 (2013)               
    Q 4.2 (2013)               
    Q 1.1 (2014)               
    Q1.2 (2014)                
    Q2.1 (2014)                
    Q 2.2 (2014)               
    Q 3.1 (2014)               
    You can refer to the Table above and look that 10 Aug 2013 falls under the Q3.1 so Time window will display the next next 8 half Quarters ( Total 4 Quarter) till Q 3.1 for the year 2014.

    Hello,
    WITH half_quarters AS(
        SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1)) hq_start
               ,1 part
        FROM    dual
        CONNECT BY ROWNUM <= 5
        UNION ALL
        SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1) + 1) + 15 hq_start
               ,2 part
        FROM    dual
        CONNECT BY ROWNUM <= 5
    ,ordered_half_quarters AS(
        SELECT  hq_start
               ,part
               ,ROW_NUMBER() OVER (ORDER BY hq_start) r
        FROM    half_quarters
        WHERE   hq_start > DATE '2013-08-15'
    SELECT  'Q '||TO_CHAR(hq_start,'Q')||'.'||part||' ('||TO_CHAR(hq_start,'YYYY')||')' q
    FROM    ordered_half_quarters
    WHERE   r <= 8
    ORDER BY r;
    Q       
    Q 3.2 (2013) 
    Q 4.1 (2013) 
    Q 4.2 (2013) 
    Q 1.1 (2014) 
    Q 1.2 (2014) 
    Q 2.1 (2014) 
    Q 2.2 (2014) 
    Q 3.1 (2014) 
    half_quarters generates the start dates of every half of a quarter, starting with the begin of the first quarter that contains the sample date.
    The next step is to order the dates and to select only those after the sample date.
    The last part formats the output and orders the data.
    Regards
    Marcus

  • Error in Asset Value carry forward to next year

    As a regular periodic process of Month/Year closing activities in SAP, Asset Year 2015 was opened and then closes the year 2014 and carried forward the Asset values to the year 2015. But unfortunately some of the Asset value had not been transferred to the year 2015. As a result, Depreciation had not been charged for those Asset for the year 2015. Need to transfer the Asset value to the current year immediately. Can any one help me regarding the problem ? The APC Start value is showing in the year 2014 but its not showing in 2015.
    The Closing value of Current APC of year 2014 does not match with the Opening value of the APC Start, so what should be the possible reasons for that ?

    Hi Erika,
    I did that on last January 2015. First i use the T-code: AJRW for the Fiscal Year Change and then T-code: AJAB - for Year end-closing Asset Accounting as i did that for last 4 years. Though there was as error message indicating error in depreciation calculation, our consultant assured me that that will not create any problem. The Error was like below:
    600981       0    Secretariat Table                              2014 Error in dep. calculation

  • 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

  • No asset values shown for new fiscal year

    We have a problem with an Asset in our FA module. The Asset was created in May 08 and had costs posted to it within the same month. Depreciation was run for May & Jun 08 with no problems. Year end was Jun 08 and the asset was included in both the Asset Balances report and the Asset History Sheet.
    However, the asset does not appear in either of the above reports for Period 1 of the new year. It can still be viewed in Asset Explorer (AW01N), but the cost does not appear to have been carried forward to the new financial year. There is no data in the u2018acquisition valueu2019 field for 2009 and no planned depreciation information.
    We have checked the master data record and although the acquisition posting date was 24.05.2008, this date does not appear in the u2018First acquisition onu2019 field, so not sure if this is the issue?
    Any ideas anyone?

    Hello..
    You first have to change the fiscal year of the asset to next year through T Code AJRW & than only u can see the balance in the next year.otherwise i dont think there is any problem.
    Regards,
    Aakash

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

  • Trunc date fonction for last year

    hi all,
    how can I get the first of each month of last year,
    OK, I explain more,
    I have a live database and a datawarhose and I need to purge all data of the month before actual month but of last year for the live DB.
    exp:
    the sysdate is *2010/12/09* and I should delete all record of table X between *2009/11/01* and *2009/12/01*
    how can I use the trunc fonction to do this automaticly
    thx a lot for your help, and excuse me for my english
    Edited by: 809634 on Dec 9, 2010 11:22 AM

    Hi,
    To use John's idea in a DELETE statement:
    DELETE     table_x
    WHERE     dt_col     >= TRUNC (ADD_MONTHS (SYSDATE, -13), 'MONTH')
    AND     dt_col     <  TRUNC (ADD_MONTHS (SYSDATE, -12), 'MONTH')
    ;where dt_col is the DATE column that decides if the row is too old to keep or not.
    Do you really need the first condition? What if today is December 9, 2010, and, for some reason, there is still data in table_x from October 2009 as well as Novmber 2009? The statement above would leave all the rows from October 2009, but the following statement:
    DELETE     table_x
    WHERE     dt_col     <  TRUNC (ADD_MONTHS (SYSDATE, -12), 'MONTH')
    ;would leave only rows from December, 2009 or later.

  • Spread Data Over Multiple Months & Years with Data from Multiple Years

    Hello Everyone,
    I have a complex calculation for spreading values over several months spanning mulitle years. Because we have a 36 month rolling Forecast, a more sophisticated calc is required as opposed to hard coding months or years.
    Heres the description:
    Users enter the following data,
    FY11     BegBalance     Number of BOD Members     10
              BOD Options Vesting Months     20
              BOD Options Accounting Value     10
              BOD Options- Number of Shares     100
              BOD Grant Month     Aug
    FY12     BegBalance     Number of BOD Members     5
              BOD Options Vesting Months     10
              BOD Options Accounting Value     5
              BOD Options- Number of Shares     200
              BOD Grant Month     Oct
    FY13     BegBalance     Number of BOD Members     20
              BOD Options Vesting Months     8
              BOD Options Accounting Value     20
              BOD Options- Number of Shares     100
              BOD Grant Month     Feb
    Based on the above;
    "BOD Stock" is calculated as following/month=Number of BOD Members*BOD Options Accounting Value*BOD Options- Number of Shares/ BOD Options Vesting Months
    Start month for the above is based on "BOD Grant Month". So, for instance considering data for FY11:
    The total "BOD Stock" value is $10000 (originating from FY11) with start month of AUG in FY11 and the number of months to spread over is 20 months. So, essentially the "BOD Stock" per month (originating from FY11) is $500 starting from AUG FY11 to Mar FY13.
    Similarly, the total "BOD Stock" value is $5000 (originating from FY12) with start month of OCT in FY12 and the number of months to spread over is 10 months. So, essentially the "BOD Stock" per month (originating from FY12) is $500 starting from OCT FY12 to JUL FY13.
    The challange I am facing is because of the number of months to spread. Because I have data to spread from multiple years and each year's data spills into the following years, each year should accumulate data from prior years. For instance;
    FY11 should include only FY11
    FY12 should include FY11 and FY12
    FY13 should include FY11, FY12 and FY13.
    Could anyone suggest a smarter way to do this without writting code for each year, maybe using @MDALLOCATE function? The following shows how data should be spread and accumulated.
                             BegBalance     Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sep     Oct     Nov     Dec     Period
    FY11     Number of BOD Members          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Aug     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               10000     #mi     #mi     #mi     #mi     #mi     #mi     #mi     500     500     500     500     500     #mi
    FY12     Number of BOD Members          5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     200     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Oct     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               5000     500     500     500     500     500     500     500     500     500     1000     1000     1000     #mi
    FY13     Number of BOD Members          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          8     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Feb     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               40000     1000     6000     6000     5500     5500     5500     5500     5000     5000     #mi     #mi     #mi     #mi
    Appreciate your inputs!
    Edited by: user10678366 on Oct 12, 2010 3:21 PM

    Why not use substitution variables for Years? you could have something like &Year1, &Year2, &Year3
    Cheers

  • CURRENT YEAR SALES DATE PARAMATER AND PRIOR YEAR SAME DATE RANGE

    I am pulling data from a SQL view dbo.view that has current and historical SOP data by line.  The date paramater is a date range,  uppr date and lower date formulas are in the report.  I need to include prior year SOP data for the same prior year date range in the detail.  I have tried adding the view in twice with no luck, just duplications.  Ultimately I want to supress the detail and only show the totals by customer so it is comparitive.  Thanks for your help.  Jayne

    OK
    lets simplify it
    get a test data source with some simple dates in it.
    get the report logic working.
    it looks like you have the right formula ideas but lets go for
    @upperthisyear
    @upperlastyear
    @lowerthisyear
    @lowerlastyear
    then assuming a date field of {table1.date}
    the record selection would be
    if (@upperthisyeare > {table1.date} and @lowerthisyear < {table1.date}) or (@upperlastyeare > {table1.date} and @lowerlastyear < {table1.date}) then 1 else 0
    I would test this by using it as a formula field with the test data.

  • Due date is showing earlier than doc. date

    Hi,
    I have a funny question. I have posted billing doc. in VF01 for 10000/- on 30.06.2009 payment term is 30 days from the doc. date so the due date should be 30.07.2009. Against this doc. i have posted one residual payment for 5000/- on 15.08.2009 but when i am executing customer line item report in FBL5N system is showing this residual doc. date is 15.08.2009 and due date is 30.07.2009. Why is the due date showing a earlier date than doc date? The due date should be the same day or later than doc date.
    Adv. thanks to all....
    Regards

    Hi,
    When we do a residual payment option, the new document created for the residual amount, is created with reference to the original document. When we create documents with reference, by default the baseline date of the new document is same as that of the original. You can change the base line date by double clicking on the line after simulating.
    Also check if you find any options in SPRO under the open item processing in the business transaction node for Accounts receivable and Accounts payable.
    Thanks and Regards,
    Anit

  • Month-to-Date and Year-to-Date values in Query

    Hello experts,
    One of our BI reports has the following requirement: the user should be asked for the report date. After the user inputs the date, the report shows the key figures in three different "flavors": one is the values for that date, the second one is the cumulate values from the first day of the month of the report date to the report date itself, and the third is the cumulate values from the first day of the year of the report date to the report date itself.
      I created my report date variable based on 0CALDAY. Then I searched for SAP-exit variables that would help me achieve this, but could not really find any, except for 0P_ABO10, 0P_ABO11, 0P_ABO12 variables, all of them have as description "Start of Key Date Year". I tried creating a few selections in which the dates taken were defined as a range from each of these variables to the report date variable (for the year-to-date values), but I got the error "Variable 0P_ABO10 could not be substituted". I also got this error for the other two variables. And I could not find any SAP-exit variables like "Start of Key Date Month", in order to do the Month-to-Date part. My next try was to use the field "Key Date" with a variable in it, instead my own report date variable based on 0CALDAY, but it gave me the same errors.
    I searched the forums and found a few threads that looked useful, like
    First and Last day of month and
    1st day of month / 1st day of week variables
    However, they require some ABAP coding, and I do not know where to place the code (actually, I do not know where to work with ABAP code), and I also believe that I would have to do some changes to it.
    Any suggestions?

    Hi Pedro,
    You have to create customer exit in T_Code: CMOD
    1. Create a Z project
    2. Select RSR00001 as enhancement type.
    3. Go into include ZXRSRU01
    4. create a code like
    Here A is your variable based on 0calmonth with type customer exit and B is variable for 0calday.
    Try to write logic for your case taking this as example.
    WHEN 'A'.
        IF I_Step = 2.
          Loop at I_T_VAR_RANGE into L_T_VAR_RANGE where VNAM = 'B'.
            Concatenate L_T_VAR_RANGE-LOW(4) '001' into D1.
            Concatenate L_T_VAR_RANGE-LOW(4) '012' into D2.
            Clear L_S_Range.
            L_S_Range-low = D1.
            L_S_RANGE-high = D2.
            L_S_RANGE-sign = 'I'.
            L_S_RANGE-opt = 'BT'.
            Append L_S_Range to E_T_Range.
          ENDLOOP.
        ENDIF.
    If you want exact code I can help you in that.
    Thanks,
    Kams

Maybe you are looking for