Add three years to a date

Hello all,
How to add three years to a date? Please keep in mind the February month.
Thanks

Hi,
Please check FM RP_CALC_DATE_IN_INTERVAL.
data: wa_date like sy-datum.
call function 'RP_CALC_DATE_IN_INTERVAL'
         exporting
              date      = sy-datum
              days      = 0
              months    = 0
              signum    = '+'
              years     = 3
         importing
              calc_date = wa_date.
write: / wa_date.
Regards,
Ferry Lianto

Similar Messages

  • Is it possible to add the YEAR to the date shown in the Lockscreen?

    TIA.

    Hi,
    We cannot display the year information on Windows 8.1  Lock Screen.
    The behavior is by design.
    Thanks for your understanding.
    Regards,
    Kelvin Xu
    TechNet Community Support

  • How to delete data older than three years from DSO

    Hi  all,
    We needs to keep historical data in the DSO only for three years. One way of doing this is by selective deletion we can delete data older than three years but we want to make it authomated. Is it possible to add a process or ABAP program to delete data older than three years.
    If it is p[ossible by ABAP code then can you please give me sample code.
    Many Thanks in advance.
    Harman

    Some time for in case of huge volume of data selective deletion is not works, Try for "prunning" option.
    It's work as follows
    1)     Create DSO which is same replica of your Source DSO.
    2)     Create two transformation
         a) from Source DSO to Copy DSO
         b) Another is from Copy DSO to Source DSO
    3)     Transprort Last 3 years records to Copy of Source DSO using DTP Filter range for time.
    4)     Once data loading from Source DSO to Copy DSO get completed delete all data from Source DSO.
    5)     Now load data from Copy DSO to Source DSO.
    6)     After complete loading delete entire data from Source DSO.
    I use prunning process to one of my client and it's work perfectly.
    Regards,
    Sushant
    +919820849482

  • Loading data of last three years via initial load

    Hi All,
    We are having one requirement. We have to load data of last three years from source to target via initial load.
    most of the table(s) are not having timestamp column.
    Please suggest some process to get this done.
    Thanks
    Kamlesh

    This question doesn't seem to have anything to do with GoldenGate, does it? Assuming the source & target are both the same DB vendor (ie, both Oracle), then there is no reason to use GG for the initial load. (But trying to figure out how to get the last 3 years data without timestamps will be an interesting challenge, in any case. Not sure which forum is best to answer that question.)

  • I have an iPod touch from about three years ago.  I would like to know if there is a limit on the upgrade versions because it won't let me upgrade to version 4.3  I have version 4.2.1 and it won't let me upgrade further

    I have an iPod that is about three years old.  I am trying to download an appf rom the app store and it says trhat I need a version 4.3 or higher.  My iPOd has version 4.2.1 right now and iTunes tells me that my iPod is up to date.  It won't let me upgrade any higher.  Is there a limit or can I get a newer version another way?

    Yes, there's a limit, and that iPod touch has reached it.
    (72099)

  • How can i add one month to a date variable ?

    Unlike the week which always 7 days, month may change from 28 to
    31, so how can i add one month to a date variable ? Thanks in
    advance.

    Adding 365 won't always work because of leap years.
    You could use the following SQL statement:
    SELECT
         TO_DATE(
              TO_CHAR(TO_DATE(SYSDATE), 'DD-MON-') ||
                (TO_CHAR(TO_DATE(SYSDATE), 'YYYY') + 1)) NEXT_YEAR
    FROM
         dual
    NEXT_YEAR
    08-JAN-03Or you could create your own function. You would use this
    exactly like add_months:
    CREATE OR REPLACE FUNCTION add_years
         (v_date DATE, num_years NUMBER)
    RETURN DATE AS
         v_year DATE;
    BEGIN
         v_year := TO_DATE(
                   TO_CHAR(TO_DATE(SYSDATE), 'DD-MON-') ||
                         (TO_CHAR(TO_DATE(SYSDATE), 'YYYY')
                                             + num_years));
         RETURN v_year;
    END;     
    SELECT
         add_years(SYSDATE, 1) new_year
    FROM
         dual
    NEW_YEAR 
    08-JAN-03
    SELECT
         add_years(SYSDATE, -1) new_year
    FROM
         dual
    NEW_YEAR 
    08-JAN-01

  • What is the best way to add a day to a Date object?

    I have come across numerous examples on adding a day to the CURRENT date, using the Calendar object. However, what I need to do is to add a day to a Date variable.
    Can someone tell me how to do that? I tried to set the value of my Date variable into the Calendar object, but, it appears that for the current JAVA version, they have deprecated the getYear(), getMonth() and getDay() methods for the Date class.
    Really appreciate your suggestions.
    Thank you in advance,
    SiowLing

    I haven't seen the OP express a concern over how to create/obtain the Date object (he could be using "new Date()" given the emphasis on "CURRENT"). Milliseconds is fine too if that's what you have (for example from a java.sql.Date).
    So the way to add a day to a Date object (the OPs original question) is to:
    - set the Date on a Calendar using setTime
    - add 1 to the DATE field of the calendar
    - get the Date from the Calendar using getTime
    Obviously you're right if the OP doesn't have Date object to start with, but just the "numbers" for year, month, day.

  • How to track changes in program RFASLD15 over a period of three years?

    Hi Everyone
    I need to find out what changes have been made to the program RFASLD15 from July 2007 till date.  That is, over a period of three years. 
    I have tried using version management.  That lists only one change.  Done in 2008.
    But when I go through the source code, I see there have been as many as six SAP Notes that have been implemented.  But I can find no log maintained for it.  So I can't find a way to determine when the notes were implemented.
    Can anyone tell me how I can find a list of all the changes that were made to RFASLD15 since July 2007; including any SAP Notes that were implemented?
    Thank you.

    Hi,
    Go to SE03
    In the First Lines SELECT the Check box and Enter the Program name
    You will find all the Transports to that Particular Program along with notes implemented.
    Select the Both Modifiable and Released Buttons

  • Add one year to 0date in Query

    In the query how can add create a keyfigure/calculation to add one year to date
    If date is 20090909 new calculation should show 20100909.

    Hi,
    For this you need to write some code for customer exit variable on 0CALDAy, I written some code and artcles on this so you can check in SDN.
    Use the Function Module and get the required result.. Just check this FM and use it in Ext code. DATE_CREATE
    Re: bit challenging to Query designer pros
    https://www.sdn.sap.com/irj/scn/advancedsearch?query=date_create
    WHEN 'ZE_0_7'.
        LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
             CLEAR: l_s_range.
             ZT_DT1 = loc_var_range-low.
            CALL FUNCTION 'DATE_CREATE'
               EXPORTING
                ANZAHL_JAHRE         = 1
                ANZAHL_KALTAGE       = 0
                ANZAHL_MONATE        = 0
                ANZAHL_TAGE          = 0
                 DATUM_EIN            = 01.01.2009
    *            DATUM_EIN_ULT        = ' '
    *            ULTIMO_SETZEN        = ' '
              IMPORTING
                DATUM_AUS            =  .
    *            E_TT                 =
    *            E_ULTKZ              =
            l_s_range-low = .
    *        l_s_range-high =  .
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
       ENDLOOP.
    Thanks
    Reddy

  • Adding one year to a date

    Post Author: JudyD360
    CA Forum: Formula
    I want to select clients who received services on or after their first birthday. I have {service.date} and {client.birth_date}. How do I add one year to the birthdate?

    Post Author: JudyD360
    CA Forum: Formula
    Thanks, I'll give that a try. I'm really new at this. I appreciate the help.

  • How to add 2 days to a date field?

    How to add 2 days to a date field if a Saturday was selected on a different date field?
    Thanks

    I am attempting to add a date field and then have a another field add an amount to a box if the date is less than 30 days. Later I want to update the form to have the today's date is less than 10 days.
    Early Registration Fee is $10.00 if posted by February 25, 2008
    Late Registration Fee is $20.00 if posted by March 17, 2008
    It seems simple, but, when you get to be 71 years old, it seems difficult. Any help will be appreciated.
    Here is a link to the form I'm working on:
    http://www.aworldwide.com/Gideon/Convention_Registration.pdf
    I am using a trial version of Adobe Acrobat 8.
    Thanks,
    Andy Anderson

  • Can i eligibal for Microsoft MVP ,contributing since last three year on various forums

    Can i eligible for Microsoft MVP ,contributing since last three year on various forums,my questions are
    what are the Dates when I apply for MVP ?
    I am contributing since last three year on various forums.
    I am actively contributing on
    http://www.c-sharpcorner.com
    I got two times MVP award from C# corner web site.
    my contribution involves in giving webinar as wel writing blogs,article,forum post and so on.
    Never written any paid article even people offer me because i just wanted help people through community.
    Following are the webinar activities i have done and doing
    My Upcoming  Webinar
    Date
    Topic
    URL
    9-Nov-2014
    Getting Started with WCF
    Click here to attend
    Following are Webinar’s which I had given in Past
    Date
    Topic Name
    Registered attendees
    Event Detail URL
    24-08-2014
    Introduction to Web Services
    115
    Click here
    18-05-2014
    Advance
    Object Oriented Programming with C#
    170
    Click here
    20-10-2013
    Object Oriented Programming with C#
    315
    Click here
    you can see my contribution of articles,blogs,forum post and other contribution by using below link
    http://www.c-sharpcorner.com/Authors/0c1bb2/
    I want help ,advice and suggestion regarding Microsoft MVP, I know their are great authors on MSDN also their are great MVP's ,can please review my profile and tell me that i am eligible to apply Microsoft MVP and Can I shall get it ?
    Please give your valuable time to review my above profile for Microsoft MVP .
    Thanks in advance

    VW
    To nominate yourself you can go here http://mvp.microsoft.com/en-us/nominate-an-mvp.aspx
    Wanikiya and Dyami--Team Zigzag

  • Add new fields incu stomer data tab ( transaction BP)

    Hello,
    I need to add three new fields in the  standard  transaction BP.  I need the  three new fields show in the customer data tab when you have introduced a determinated value in control tab before.
    Is it possible?
    Can you tell me the way?
    Thanks

    Hello,
    I was changing  the  customer fields of transaction BP with transaction eewb.
    I was working in a specific project (ZBUPA) as you can see in the following images. I don´t know what I've changed but now the icon of the enhancement of the project is like a red broken box (Errors occurred if you look for it at the legend), and the task has got a prohibit icon (Processed with Errors). Like this:
    [[IMG]http://img329.imageshack.us/img329/6627/errorpp1.th.jpg]http://img329.imageshack.us/my.php?image=errorpp1.jpg][IMG]http://img329.imageshack.us/img329/6627/errorpp1.th.jpg | http://img329.imageshack.us/my.php?image=errorpp1.jpg]
    I am very interested in recover the system to the initial state of the screen, like this image shows.
    [[IMG]http://img329.imageshack.us/img329/3763/okzv3.th.jpg]http://img329.imageshack.us/my.php?image=okzv3.jpg][IMG]http://img329.imageshack.us/img329/3763/okzv3.th.jpg | http://img329.imageshack.us/my.php?image=okzv3.jpg]
    Thanx!

  • I upgraded my three year old ipad to IOS 8 and it's working very slow and irregular, can I go back to the old settings?o

    I recently upgraded my three year old ipad to IOS 8 and it's working very slow and sometimes freezes. Can I go back to the old system?

    No, downgrading the iOS version is not supported by Apple.
    You could see if any of the following improve things :
    - closing apps via the iPad's taskbar : iOS: Force an app to close.
    - if having problems with Safari, clearing its history and data : Settings > Safari
    - soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    - backing up (and copying any purchases over to your computer's iTunes library via File > Devices > Transfer Purchases) and restoring
    - adjusting settings e.g. turning 'reduce motion' on (Settings > General > Accessibility), turning off 'background app refresh (Settings > General), turn off multitasking gestures (Settings > General)
    - resetting back to factory defaults (after copying off purchases and any documents, photos etc that you want to keep) and then resyncing it back

  • My limited warranty seems to have expired before 1 year of purchase date, why? also, can I still purchase AppleCare?

    So I purchased my iMac in the first days of December 2010. It's not a year since that and today when I checked the support status, it says it has expired. Does anybody have an idea of what happened here? Also, could I still be able to buy AppleCare? I read that you can purchase it up to a month after the limited warranty's over, but I don't know if that's still possible today. Does anyone know? Thanks.

    This is what I found on Apple's Support page.
    5. Can I extend service coverage on my MacBook beyond the 1-year warranty?
    The AppleCare Protection Plan for MacBook extends hardware repair service and technical support coverage to three years from your MacBook’s original date of purchase. You can only purchase the AppleCare Protection Plan while your MacBook is covered under Apple's One-Year Limited Warranty.
    You can look there, too.
    Apple - Support - Macbook

Maybe you are looking for

  • Java file not included .

    I have: import org.eclipse.swt.widgets.Shell;in my program. But this is showing a 'cannot resolve' error. I found that this file was actually in a winzip extractor,so I extracted it in the workspace folder .But it is still not accessible. I cannot fi

  • Burn Error AFTER running ONYX

    Last week I had a problem when I tried to burn a DVD. I am in iDVD 4.0.1. I keep getting the message: "The Recording Device reported the error #8: No Additional Sense Information. (0X00, 0X00). I ran that ONYX program and I was able to burn my DVD. I

  • Installed 10.5 Leopard on my G4- how do I transfer my files

    I have 10.4.11 on one drive (that I'm working from now) and I have 10.5 on another drive. now I want to be able to access my iTunes, iPhoto , etc in 10.5, but everything is empty when I open it.  the files are still in the drive, just don't know how

  • I cannot access the iTunes store.

    I cannot access the iTunes Store when I select that option.  I only get the following message:  "the item you have selected is not currently available in the Canadian Store."  However, I can search the iTunes store and find all kinds of content and e

  • IBook 3.1 doesn't show previously purchased books in the store

    Quite annoying,as when browsing for a new book, i cannot see which ones i have bought before. They are listed in 'purchased', though. And if by mistake i try to buy again one i already have, it shows indeed that the book already has been purchased. S