Leap year issue in depriciation

Hi All,
I have an asset which is acquired on 16th January 2008. 2008 being a leap year should calculate depriciation according to 366 days in a year. However it is calculation on the basis of 365 days in a year. Where should this setting of leap year be maintained so that it starts considering 366 days instead of 365.
Regards,
Ajay

Hi Ajay,
In transaction OAVH:
Example
K4 01 2008 2 29 2             
K4 01 2009 2 28 2                               
K4 01 2010 2 28 2                               
K4 01 2011 2 28 2                               
K4 01 2012 2 29 2 
K4 01 2016 2 29 2                               
regards Bernhard

Similar Messages

  • Leap year issues

    how do you corr5ect leap year issues with calendar?

    I have a reoccurring appoint that happens every wednesday. But I noticed yesterday that it put that appointment on  Tuesday - Feb 28th instead of Feb 29th. When you open up the event it says:
    "Tuesday, 28 Feb, 2012
    from 6:30 PM to 8:30 PM
    repeats every week on Wednesday"
    I'm quite sure I didn't add a single instance of this event on the Tuesday. I'm a software developer and took a guess that the weekly event falling on Feb 29th of a leap year was the most likely culprit of this bug.
    Note that I used the iCloud control panel to push out my events from Outlook to iCloud a couple of weeks ago. So the logic error could be in that software. Or in Outlook, or in Google (as I used to synch my google calendar to outlook before going to iCloud). But I doubt it was caused by Outlook or Google calendar. No proof of that, just my gut feeling.

  • 7970G, CM 3.3.3 - leap year issue

    Hi,
    We`re having a issue with 7970G phones, which are not registering correctly. As its a leap year we expect the issue is related to that. All other phones are OK.
    Has anyone else come across this ?
    Appload - 70.63.0-1-4
    JVM 70.603ES1R4.bin
    OS 70.63.0-1.4.sbn
    Boot 7970_64060118.bin

    thanks, we got round this by upgrading to the latest firmware. Changing the date on the server would habe probably caused a lot of other issues...at least for us anyway.
    Tip for everyone...don`t give the execs latest and greatest :)

  • Leap year issue

    Hi friends,
    I have a problem in one of the existing codes.
    The cancellation amount is calculated for a range of dates.
    Say the active line item has a start date of  01.03.2006 and end date of  01.03.2012 say (B).
    Now if a rejection/Cancellation is put on date 01.05.2007 (A), the current program is calculating a value
    based on the diffrence of days (B - A).
    then this cancelled amnt =  the no of cancelled days * (a constn value * 12 / 365).
    Now I want to modify my logic in such a way that the leap is also accounted.
    If I use the same dates , i realise that 2008 is the leap yr.
    So how can i modify my calculation for the range if it contains a leap yr.
    Please suggest something on this, as it will be really helpful.
    Thanks,
    Sapna Agarwal

    Hi Sapna,
        try to use the FM /SDF/CMO_DATETIME_DIFFERENCE, it will take care of the leap year, just pass the two dates for which you want the difference.
    CALL FUNCTION '/SDF/CMO_DATETIME_DIFFERENCE'
    EXPORTING
       DATE1                   = s_date
    *   TIME1                  =
       DATE2                   = e_date
    *   TIME2                  =
    IMPORTING
       DATEDIFF                = DATEDIFF
    *   TIMEDIFF               =
    *   EARLIEST               =
    EXCEPTIONS
       INVALID_DATETIME        = 1
       OTHERS                  = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if the gap is for more one year than you have to do the calculation year wise only, in this case use the fm '/SAPNEA/JSC_LEAP_YEAR' that which year is a leap year. And than go for a IF condition while calculating either it should be 365 or 366 days.
    With luck,
    Pritam.

  • IPhone Leap year calendar issues anyone?

    Is anyone having a problem with scheduling meetings in outlook for February 29th and then they show up on the iPhone as March 1st instead?  Is there something that is not configured right because of leap year?

    I have a reoccurring appoint that happens every wednesday. But I noticed yesterday that it put that appointment on  Tuesday - Feb 28th instead of Feb 29th. When you open up the event it says:
    "Tuesday, 28 Feb, 2012
    from 6:30 PM to 8:30 PM
    repeats every week on Wednesday"
    I'm quite sure I didn't add a single instance of this event on the Tuesday. I'm a software developer and took a guess that the weekly event falling on Feb 29th of a leap year was the most likely culprit of this bug.
    Note that I used the iCloud control panel to push out my events from Outlook to iCloud a couple of weeks ago. So the logic error could be in that software. Or in Outlook, or in Google (as I used to synch my google calendar to outlook before going to iCloud). But I doubt it was caused by Outlook or Google calendar. No proof of that, just my gut feeling.

  • Unable to generate the file report pdf on 29 february 2012 or during any leap year day...

    hii this is manab......
    sir/mam i have face the following error in 29 february 2012 for my overall company report .But i can easily get the
    report of another department on 29feb 2012....but when i try generate the overall report of my comapany then i find the errors
    REP-1401: 'cf_mc_prod_lyrformula': Fatal PL/SQL error occurred.
    ORA-01839: date not valid for month specified
    The following is the logfile.........
    ...........................................................................................log file................................................................................................................
    HPCL Custom Application: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    HPCCMDS module: HPC Modified CMD Report
    +---------------------------------------------------------------------------+
    Current system time is 04-SEP-2013 11:37:20
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_MILL='NPM'
    P_TRANSACTION_DATE='2012/02/29 00:00:00'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    REP-1401: 'cf_mc_prod_lyrformula': Fatal PL/SQL error occurred.
    ORA-01839: date not valid for month specified
    Report Builder: Release 6.0.8.24.0 - Production on Wed Sep 4 11:37:20 2013
    (c) Copyright 1999 Oracle Corporation.  All rights reserved.
    Enter Username:
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11426643.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 04-SEP-2013 11:59:23
    +---------------------------------------------------------------------------+
    kindly give me solution .....i have e-business suite 11i
    internet explorer latest version...

    Hi,
    Please confirm whether this is a custom or standard report.
    If this is a custom report, then probably the respective issue has not been handled by exception handling.
    Also please refer note:
    How to check if version 11.5.10.2 is certified to Handle Leap Years (Doc ID 549937.1)
    Thanks &
    Best Regards,

  • ICal bug  -- leap year has broken reoccuring events

    Since last week , when there were 29 days in February instead of 28,  events in iCal which are re-occuring  (a meeting which occurs every month on the second Monday for example) is simply wrong.
    It is clear that this is an artifact of "Leap Year." The error compounds.
    In March in was off by one day -- scheduled on Tuesday instead of Monday. In April the error compounds... now scheduled on Friday in April.
    Events which were scheduled by data "appear" to be correct, but now I don't know that I can even trust them.
    This problem propigates through iCloud and infects my iPhone and iPads as well.
    iMac 10.7.3
    iPhone 5.1
    iPad 5.1
    Mac mini 10.6.8
    It turns out this Bug dates back to 2008!!!!!
    https://discussions.apple.com/message/6309125#6309125

    No. not really.
    I spent some time on the phone with Apple support and basically discovered that if I looked at the reoccurring event back in February (the previous month), it showed up correctly as an event being repeated as, in my case, "Custom, Every Month on the first Monday." However, then comparing that entry to the incorrect March entry, I noted the March entry was showing up as repeat "Every Month." (Which translated into every 30 or 31 days, looking at subsequent events.)
    Simply changing the bad March event back to the Custom "Every Month on the First Monday," and then applying it to the forward "worked around" the issue.
    We never did come up with any idea what caused the change. (i.e. the support person could find no references to any kind of similar problem.)
    I was told to go to "www.apple.com/feedback" and to select "iCal" from the list of "OS C Apps" near the bottom of the page, and report the problem.

  • Leap Year

    Hi Everyone..
    I have two columns called base date and final due date from which we calculate the number of days. Can someone tell me how to calculate leap year in OBIEE.

    Hi
    Thanks for your reply. I am able to calculate the number of days using the above function TIMESTAMPDIFF(SQL_TSI_DAY,Day1, Day2). But my issue is to calculate leap year.
    eg : No of days >0 and < =365 , its 1st year
    if No of days >365 and < = 730 , its 2nd year.
    In this i need to verify if there is any leap year coming in btw like if No of days is 366 then ?
    Thanks in advance for the reply.

  • Leap year certficate generation bug

    Looks like Cisco has a leap year certificate bug when generating certs (I only tried it on web-admin certs) today, Feb 29th, 2008. If you generate a cert for your controller today, you won't have HTTPS login as your cert will be invalid, Feb 29th, 2008 to Feb 29th, 2018. Well, 2018 is not a leap year so that cert would be invalid. I would suggest you use yesterday's date or tomorrow's date if you are generating certs, as that is the workaround. This goes for flashing IOS APs to LWAPP also. If you're doing it remotely, you don't want invalid certs out there as your APs would never join the controller. I think Cisco may have to investigate this as a bug.

    Well I'm just an idiot. It's not the first time. Won't be the
    last.
    I saw the error in my code. Searched and found this leapyear
    bug post:
    http://www.feed-squirrel.com/index.cfm?evt=viewItem&ID=80015,
    and didn't do enough testing. The issue was that the code creates a
    date a year ahead, and there is no 2009-2-29 (which was the
    original issue before I posted broken test code).
    My apologies to Dan and the rest.

  • I bought a iphone 4 32gb verizon from apple store 4-7-11 had problem receaver exchanged 12-11 next one died no battery power works with cord dead without so 4-6-12 made apointment apple store emeryville ca they said leap year too late out of warrenty,

    i bought a iphone 4 32gb verizon from apple store 4-7-11 3:00pm,  had problem with  receaver no sound could not hear person i called  exchanged 12-11 exchanged iphone 4 32gb verizon died no battery power works with cord dead without so 4-6-12 made next available apointment apple store bay st.  emeryville ca for 4-7-12 1:15pm
    they said leap year added extra day so too late out of warrenty, sorry but can sell you new one  i called apple said same , a company that big should take care of customers the origanel receipt should of said under date of purchess warrnty to end date following year,

    That's strange, because no where in the iPhone's limited warranty does it state "365 days", but it does state 1 year. I think the only way they could get out of that is because of the battery, which is not covered by the warranty. HOWEVER, it is stated on AT&T's website that claims are handled from 31-365 days, which would explain why the Apple people acted as such. I know you have Verizon, but since it is (essentially) the same device, it's under the same warranty.
    http://www.att.com/esupport/article.jsp?cv=820&sid=KB64687#fbid=MG9VDbF7hX1
    Many people have had stories about issues happening as soon as their warranty expires, with products in general.
    I'd just consider upgrading, and selling your old one.

  • Bug or error when handling leap years with WDS/DS

    Hi all,
    I discovered a difference in outcome with Build and Debug (without screens) and Build and Debug with Web Determinations or Determinations Server when calculating days within leap years.
    I use the function DayDifferenceInclusive to calculate the amount of days in an insurance period.
    the amount of days of the insurance period = DayDifferenceInclusive(the start date of the insurance, the end date of the insurance)
    With the regression tester or Build and Debug (without screens) I get the following outcome for the following input:
    *93 = DayDifferenceInclusive(02-29-2008, 05-31-2008)*
    When we use Web Determinations or Determinations Server we get the value of *92* for the exact same input data when it should be 93.
    Is this a bug in the java code? How can we fix this or is there a work around for it?
    We're in the middle of System Integration Testing for a huge project so help is much appreciated!
    Best regards,
    Niels Roest

    Niels,
    thanks for that - and it looks like in the Netherlands daylight savings started on the 30th of March 2008, which as far as I know is the trigger for this error.
    I have reproduced the issue against 10.1 using the period 01 October 2010 to 30 October 2010, which contains the date that daylight saving started in Australia.
    As for ways to work around the issue, I can offer 3:
    * wait for 10.2 - it's in beta at the moment (though given your opening comments, this might not be an option for you)
    * set your server locale to one that doesn't have DST
    * work around the issue in rules:
    Firstly, the issue is that the shipping version fails because it doesn't take into account that one of the days is shorter than the standard 24 hours.
    The trick is to replace the DayDifference function with the HourDifference function and round to the nearest number of days.
    So given a rule that looks like:
    the result = DayDifference(date one, date two)
    it can be rewritten as:
    The result = round(HourDifference(date one at 00:00:00, date two at 00:00:00) / 24, 0)
    * the whole "at 00:00:00" is necessary because HourDifference works on datetimes, not dates.
    Sorry for the hassle.
    Regards
    Andrew

  • Validating Leap Years

    Is there a way of checking that an entered leap year date is valid?
    Eg. User enters 2/29/2001 which is not a valid date because 2001 was not a leap year.

    You should be able to use the SimpleDateFormat class to do this by issuing a setLenient(false) call. However, it does not seem to detect a leap year problem with the date 2/29. If you run the code below, you'll see that in the first section it correctly detects that 2/30 is a bad date, but in the second section, it does not detect 2/29 as a bad date. In section 3, you can see how an added test can detect the problem date.
            //Date validation
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
            //Section 1 - correctly detects bad date
            try {
                String date = "2001-02-30";
                System.out.println("Here's the date - " + sdf.parse(date));
                sdf.setLenient(false);
                System.out.println("Here's the date - " + sdf.parse(date));
            } catch (ParseException pe) {
                System.out.println("Bad date");
            //Section 2 - does not detect bad date
            try {
                String date = "2001-02-29";
                System.out.println("Here's the date - " + sdf.parse(date));
                sdf.setLenient(false);
                System.out.println("Here's the date - " + sdf.parse(date));
            } catch (ParseException pe) {
                System.out.println("Bad date");
            //Section 3 - correctly detects bad date with additional check
            try {
                String date = "2001-02-29";
                System.out.println("Here's the date - " + sdf.parse(date));
                sdf.setLenient(false);
                //Additional test to compensate for leap year failure
                String dateString = sdf.format(sdf.parse(date));
                if (!dateString.equals(date)) {
                    System.out.println("Bad date");
                } else {
                    System.out.println("Here's the date - " + sdf.parse(date));
            } catch (ParseException pe) {
                System.out.println("Bad date");
            }

  • Handling weeks in Planning with leap years

    How are people handling weeks-based forecasting in Planning?
    I have a Planning app that has 53 time periods with an extra week in August to handle the leap year (thus the 53). There are dynamically calculated months, quarters, and the always-loved YearTotal in Time as well.
    This works fine in a leap year, but is kludgy otherwise as it includes an additional month in August – this skews form spreads.
    And it gets even uglier when calculating/data viewing year over year forms as the start week for September should vary across leap and non-leap years.
    It occurred to me that I could create a custom dimension called “Weeks” with all 53 weeks and then use a nested dimension strategy that combined a 12 months Time dimension and the relevant weeks (some hard coding there on forms). I could then use the form column/row suppression to show/hide weeks by month.
    The upsides:
    1)     Smaller block size, as Weeks would go sparse and Time would get reduced from 53 to 12 members.
    2)     True week/month relationships in reporting/forms through prepopulated data and suppression.
    3)     True 4-4-5 spreads to months (although an algorithm to spread to the separate Weeks would have to exist, but that is irrespecitive of the 4-4-5 spread). NB -- 445, etc., concepts don't work in a Planning app with weeks.
    I see a few downsides to this:
    1)     The possibility of entering data by week into the wrong month <-- Form construction could mitigate this.
    2)     Block creation issues in calcs as there is another sparse dimension to take care of.
    3)     Many more blocks <-- How about 53 of them?
    Any thoughts on this approach? I’m not scared of the calcs although I appreciate it’s a little more complicated. I don’t think it breaks the Scenario dimension’s opening/closing of periods. I guess I’m trying to see if there are any hidden issues with this approach and if anyone has figured out a better way to do this.
    Thanks,
    Cameron Lackpour

    The Calendar Component does take account of the leap year.
    If you look at the code, it has
    if ((month == FEBRUARY) && (isLeapYear(year))) numCells++;Not sure what went wrong. I'll take a look at it.
    - Winston

  • HELP! Files won't open and previously had Firefox icon instead of DW icons!  Leap Year thing?

    Hi!  I went to update my website, which I do every night before the first day of every month and all the files had a FIrefox icon instead of the usual Dreamweaver one.  I have shut down, reinstalled DW MX 2004 but the files still do not open.  The icons have now changed to DW but they are not opening with right click, opening from Applications folder, double clicking the file, from get info and open with DW.  I am stumped. HELP!  Need to update for March 1st.
    Is it something to do with Leap Year 29th Feb?  Checked the clock in preferences but can't see how this affects it.
    Firefox is always updated but the latest version does not seem to be as efficient as previous upgrades.  We installed Chrome as well.  Do they interfere with each other?

    Hi Ken
    I wish the 7.1 updater download had helped but it didn¹t.  All the files
    were backed up before the installation, which went fine.
    Mac 10.5.8
    We used Disc Warrior to defrag the hard drive, which did not make a
    difference.
    We recently started using Chrome, so now have 3 browsers in the dock,
    Safari, Firefox and Chrome.  Do they interfere in any way with each other?
    The files, which I hadn¹t touched for a month as I update on a monthly
    basis, initially had the Firefox icon.
    Below is the message to send to Apple, which did not go through their report
    system!  A little disillusioned with the service!
    Model: iMac9,1, BootROM IM91.008D.B08, 2 processors, Intel Core 2 Duo, 3.06
    GHz, 4 GB
    Graphics: kHW_NVidiaGeForceGT130Item, NVIDIA GeForce GT 130,
    spdisplays_pcie_device, 512 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E),
    Broadcom BCM43xx 1.0 (5.10.91.22)
    Bluetooth: Version 2.1.9f10, 2 service, 0 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD1001FALS-40K1B0, 931.51 GB
    Serial ATA Device: PIONEER DVD-RW  DVRTS08
    USB Device: Built-in iSight, (null) mA
    USB Device: Keyboard Hub, (null) mA
    USB Device: iLok, (null) mA
    USB Device: Apple Optical USB Mouse, (null) mA
    USB Device: Apple Keyboard, (null) mA
    USB Device: Deskjet 3840, (null) mA
    USB Device: BRCM2046 Hub, (null) mA
    USB Device: Bluetooth USB Host Controller, (null) mA
    USB Device: IR Receiver, (null) mA
    FireWire Device: d2 quadra (button), LaCie, 800mbit_speed
    Does not mean a thing to me.
    I am not late with updating the site, which is about New Zealand culture,
    month by month (www.englishteacher.co.nz). Probably only the third time I
    have been late since 2005. Not a huge amount of traffic, ~300 a month and
    free access to content but I would like to solve this problem.
    Could a reciprocal link have caused a problem?
    At my wits end.
    I really appreciate the help though.
    Cheers Yvonne
    From: Ken Binney <[email protected]>
    Reply-To: <[email protected]>
    Date: Wed, 29 Feb 2012 06:42:11 -0700
    To: Yvonne and Bill Hynson <[email protected]>
    Subject: HELP! Files won't open and previously had Firefox
    icon instead of DW icons!  Leap Year thing?
    Re: HELP! Files won't open and previously had Firefox icon instead of DW
    icons!  Leap Year thing?
    created by Ken Binney <http://forums.adobe.com/people/Ken+Binney>  in
    Dreamweaver - View the full discussion
    <http://forums.adobe.com/message/4236682#4236682>
    Not necessarily related, but did you also install the 7.1
    updater? http://www.adobe.com/support/dreamweaver/downloads_updaters.html
     Windows or MAC?
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/4236682#4236682 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/4236682#4236682. In the Actions box on the
    right, click the Stop Email Notifications link. Start a new discussion in
    Dreamweaver by email
    <mailto:[email protected].ad
    obe.com>  or at Adobe Forums
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/message/2936746#2936746.

  • How to find leap year in sql query

    How to find leap year in sql query

    Select
    CASE
      WHEN result = 0 THEN 'Leap_Year'
      WHEN result <> 0 THEN 'Not_A_Leap_Year'
    END
    From (Select mod((EXTRACT(YEAR FROM DATE '2013-08-24')), 4) result FROM DUAL);

Maybe you are looking for