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

Similar Messages

  • Add one year to date/time field

    Hi All.
    In my form I have date/time field DATE with format MM/DD/YYYY. Add I would like when user selected according date in that field, the other field should display date on one year late then user selected in field DATE. I mean. If user install 8/27/2010 on DATE field in other field will display date 8/27/2011.
    Thanks.

    Hi Paul,
    Thanks for replay. In your example you used CLICK event. Is it possible to get date on other field without click button? For instance, if user just press TAB key on keyboard.
    Thanks.

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

  • I have a one-year old iMac and Safari will NOT remember bookmarks I try to add.  Any suggestions?

    I have a one-year old iMac and Safari will NOT remember bookmarks I try to add.  Any suggestions?

    Launch the Terminal application by entering the first few letters of its name into a Spotlight search. Copy or drag -- do not type -- the line below into the Terminal window, then press return:
    ls -Oel Library/Safari
    Copy any lines of output that appear below what you entered and paste them into a reply to this message.

  • QA: Designer's operation to Add one more Field to display in Query Result Web Part

    QUESTION ABOUT Query Result Web Part presentation +1 Field
    I'd be looking at a property of Web Part to look up Discussion Board through Query Result Web Part. Currently it displays 'Title' column of Discussion Board, and my caring requirement is presentation customization to hold double
    columns of 'Title'+'Updated Date'. How could I add one more field 'Updated Date' to display in addition to that preexisting 'Title' field?
    Any procedural steps to realize how to add Filed to display in Query Result Web Part?

    Hi Yoshihiro,
    As I understand, you want to add the field to display in Query Result Web Part in SharePoint 2013.
    Which web part does you use? Content query web part or search results web part?
    If you use search results web part, you could edit the discussion board result template and add the updated field in the template.
    You could go to Design Manager: Edit Display Templates (site setting-> look and feel->design manager->edit display template), download the Discussion Item.htm file, and edit the file. 
    After editing, upload the file.
    The articles below are about how to modify an existing Display Template in SharePoint 2013.
    http://www.learningsharepoint.com/2012/09/17/sharepoint-2013-the-new-display-templates-for-styling-your-content/
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
     If you use content query web part, you could edit the content query web part, in the Property Mappings section select the “Change the mapping of managed”, and add the “modifiedOWSDATE” (it means the last modified date) in the line, after
    that you could see the update date under the title.
    Best regards,
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • FAQ: How do I add my complimentary one-year subscription to my current Revel account?

    Q: I already have a Revel account, and now I’m eligible for a free year of Revel Premium. How do I add my complimentary one-year subscription to my current account?
    A: If you have a free Revel account, it will automatically be upgraded to Revel Premium. If you have a Revel Premium account, please contact Customer Service for help adding the complimentary subscription to your current account.
    To get help with your issue, you can contact us directly through the details on
    this page.

    Is there any way I can consolidate licenses?
    Not to my knowledge. One way is to cancel (and attempt to get a prorated refund for) the individual CC subscription and apply that money to a CCT one.

  • How do I add a one year Creative Cloud Photography subscription purchased from a different vendor to my account?

    I purchased a one year photography subscription from B&H.  How do I add it to my current account so it will take effect at the end of my current year?  Thanks.

    For anyone else with this question, when you go to creative cloud.com/redeem, when you enter the code for the 12 month prepaid membership purchased from another vendor such as B&H, it automatically extends your current expiration date by 12 months.

  • Function to find the Last Date of Month One Year Ago - RETURNS ERROR

    I've written sql code which takes a date and finds the Last Day of the Month one year ago. For example,  it takes the date '2015-04-17' and returns the date '2014-04-30'. The code works fine in a query. Now I'm trying to turn this into a function. However,
    when I try to create the function I get the error:
    Operand type clash: date is incompatible with int
    Why is this error being returned?
    Here is my function:
    CREATE FUNCTION dbo.zEOM_LY_D(@Input Date)
           RETURNS date
    AS
    BEGIN;
      DECLARE @Result date;
      SET @Result =  convert(DATE, DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
        RETURN @Result;
    END;
    Thanks for any help you can give.
                     

    Stan,
    Thanks very much- that does the trick. I should have said I am using SQL 2008 so EOMONTH is not available to me. I still don't get why I got an error though, since I was treating a date like a date and not like an int.
    Thanks, John
    I think i found the issue but i do not know why it is causing the issue. i think may be the way dates are treated/stored internally..i think dates are stored as no of days after 0001/01/01 but cannot see how this cwould effect..may be somebody else can through
    some light..... 
    if you make it as datetime it will work,
    if you leave it as date - eliminate adding 1...  you should prefer to use dateadd to add/substract dates.
    try this to understand..
    --removed the +1 in the code
    declare @input date
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)),0)),101)
    go
    --made the datatype as datetime
    declare @input datetime
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
    Hope it Helps!!

  • Getting the same day of the week from a previous year in a Power Query calc column

    Hi Power Query users,
    Would like to get your suggestions on this problem. I have a customer that wants to see the previous year's sales for the same day of the week. So today is Friday July 25, 2014. Customer would like to see sales for the closest Friday on the previous year,
    which was Friday July 26, 2013. Next year on Friday July 26, 2015, customer would see the sales for Friday July 25, 2014 and so on. Customer operates 7 days a week, all days of the year including holidays.
    What is the most elegant way to do this? I am assuming the best thing to do is to add this date as a calculated column in the date table, but I am not quite sure the best way to write the formula (including handling of edge cases - leap years, providing
    null when the previous year is not part of the date table, etc).
    I am starting with the
    date dimension as presented by Matt Masson.
    Please help if you have any formula suggestions for this.
    Thanks

    Okay, I'm making a couple of assumptions, so please let me know if these assumptions are incorrect:
    1) Instead of all sales data being in a single column, current year and last year sales are provided in different columns,
    2) The previous year sales column shows the sales occurring on the same
    date as the current year sales (so in your example, 43214 is the sales figure for 6/1/2013.
    If the above assumptions are true, we need to modify how the lookup is done. Let's assume that you created a custom column named SameDayOfWeekLastYear. Create another column called Previous Year Date, using the following function (Date_PreviousYear)
    (date) =>
    let   
        PreviousYearDate = Date.AddYears(date,-1),
        PreviousYearDateAdjusted = if (Date.Day(date)=29 and Date.Month(date) = 2) then
                                       #date(9999,1,1)
                                   else PreviousYearDate
    in
        PreviousYearDateAdjusted
    Incidentally, I created this function the week before your query, for a different purpose. In that case, it was to get the previous year sales occurring on the same
    date as the current year sales. It actually gets to your starting point, but with all the sales data in a single column to start with. However, when the current year is a leap year and you apply the Date.AddYears function, February 29th is calculated
    as February 28th of the previous year. If you then do a lookup for previous year sales, you get February 28th sales looked-up twice (the real Feb 28th and the bogus one resulting from taking February 29th back one year). The PreviousYearDateAdjusted identifier
    puts a truly bogus date instead of a duplicated Feb 28th - one that will always return null when looking up the sales value.
    This new date column will then be used to lookup the row of the previous year sales column that corresponds to the dates in the SameDayOfWeekLastYear column.
    Assuming that the last step in your query is InsertedCustom1, create another custom column (Previous Year Net_Same Day?), which returns the sales on the same day as the current year (the result that you're after). The formula would be:
    LookupValue(InsertedCustom1[Previous Year Net], InsertedCustom1[Previous Year Date], [SameDayOfWeekLastYear])
    where LookupValue is the custom function mentioned previously. After creating this new custom column, you can then remove all of the columns you don't need.
    Hope that the preceding is somewhat clear.

  • To whom it may concern      Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E  2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in goo

    To whom it may concern
    Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E
    2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in good shape I can prove it,the Apple support in Brazil doenst work like in USA.
    I look forward to your reply and a resolution of this problem.
    Thank you very much!!!

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • ITunes is adding a lot of music from my last backup whenever I add one new song

    So I am on my second iPhone and for years I have just managed my music manually. In itunes, syncing for music is turned off. Manually manage music is turned on. iCloud, iTunes match etc. are all turned off. I frequently add and remove albums from my phone without any incidents - until lately. Now whenever I add a new song or album to my phone, itunes also adds all the music that was included in my phone's last backup. So if I had like 10 albums on my phone when I backed it up, that were then deleted on my phone - it re-adds them. I can't for the life of me figure out how to get this to stop. The only thing that works is deleting all the backups on my computer. If i do that, the phone lets me add one album at a time. Otherwise it just keeps insiting that these albums belong on my phone. Again, i've gone through like every setting with a fine comb to make sure it's not an obvious check box that I've missed. Help?

    The Three Best Alternatives for Security Questions and Rescue Mail
         If you do not have success with one, then try another:
            1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
            2.  Call Apple Support in your country: Customer Service: Contact Apple support.
            3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • IPad 1 Safari crashes frequently. I went to many Apple stores in different countries and each Apple staff member had their own different opinions with no help. I had upgraded my iOS to 5.1.1 and the Safari crashing started about one year

    IPad 1 Safari crashes frequently. I went to many Apple stores in different countries and each Apple staff member had their own different opinions with no help. I had upgraded my iOS to 5.1.1 and the Safari crashing started about one year after the upgrade and some Apple staff blame this- but this started one year later after the iOS upgrade. Recently at the Apple Store in Vancouver an Apple staff reset my computer (erased everything and sent to iCloud to reset the iPad) and I hoped this would fix the problem. IPad Safari still crashes. Short of booking an appointment for taking it for repair to Apple technicians which will cost me money can anyone help me to fix this Safari crashing.

    Hi,
    You might have a 3rd party plugin that isn't compatible with Safari 4.0.4. Go here for help...
    Safari add-ons can cause performance issues or other situations
    If you are using a USB hub, try disconnecting and restarting with just your keyboard and mouse connected.
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    from the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Mac OS: Web Browser Quits Unexpectedly or Stops Responding
    Also, you could download and install the 10.5.8 combo update (PowerPC) available here.
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
    It contains fixes that might help. Then repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn

  • How to get one year licence for CE

    I received a mail that developers can use CE for one year.
    The SDN Subscriptions program is happy to announce that the SAP NetWeaver, Composition Subscription is now available for purchase in Germany and the United States. As a developer, now you have a lean, highly productive, standards-based integrated development, modeling, and runtime environment which will enable you to create and extend business processes that leverage both SAP and non-SAP applications and data. This one-year subscription provides access to the following software and services:- A one year developer license for SAP NetWeaver Composition Environment (SAP NetWeaver CE) that enables you to evaluate, develop, and test your Java applications.
    Edited by: shen peng on Dec 19, 2007 9:41 AM

    Hi Shen
    Follow these steps to get license key.
    1) Start NetWeaver Administrator (e.g. [http:/localhost:50000/nwa)
    2) Choose Tab Configuration Management and then Infrastructure.
    On the Infrastructure page choose option Licenses.
    The Licenses: Java Licenses application shows the System Parameters. Note the Active Hardware Key (e.g. S1426118465) and system ID (CE1).
    3) Start a License Key Request using http://service.sap.com/licensekey
    Provide the following information
    System ID: CE1
    Product ("Produkt"): SAP NETWEAVER
    Product Version ("Product Version"): SAP NETWEAVER 7.0 (2004S)
    System Type ("Systemart"): Development System ("Entwicklungssystem")
    Database System ("Datenbanksystem"): MaxDB (Former SAP DB)
    Product ID ("Produkt-ID"): J2EE-Engine
    Hardware Key ("HW-Schlüssel"): , e.g. S1426118465
    Complete the form and post the request. Then system will send you an email with the license key attached to your SAP email account. This may take a few minutes.
    Once you have received the email, save the attachment to your desktop.
    Switch to the Internet Explorer window with the NetWeaver Administrator. Continue in the screen from which you determined the Hardware Key. In Group Available Licenses Choose Install From File. In the popup window choose Browse and select the license key file you stored on your desktop. Then choose Add.
    Hope this helps.
    regards
    Pankaj

  • Can't buy premium (ONE YEAR) only 1 month because ...

    Now, Skype is SOOOOOO BAD with "support".  I go to purchase premium, one year, and it WON'T LET ME!  it will only let me purchase 1 month because I only have $9 in account. SO, I go to add money to my account.  It only lets me add $10 at a time.  Now, I don't want to add a whole bunch of $10 hits to my VISA card or my bank will think it's stolen and put a hold on it.  So, I CAN'T BUY PREMIUM.  I sent a note to Skype LAST WEEK and the morons didn't understand the question and didn't answer it (just add money to your account!).  So, I CAN'T PURCHASE IT.  If only they had a valid competitor I would split in a second.  I dare say Skype is getting close to Ticketmaster-the most hated brand in America......anybody got any ideas?  Skype has no answers or abilities for me to even buy the ($*&%& service that my company wants me to have!  What a $*%& joke Skype. 

    Hi,
    I get it that you are upset about the payment amount limits, but please mind your language, otherwise your posts will be removed due to violation of community guidelines.
    About the issue itself, if you don't have enough Skype Credit on your account then of course you can't purchase Skype Premium for 12months with Skype Credit. Currently your account is new when it comes to payments and due to security reasons there are limits for amount you can pay at once. After you have made several successful payments over time these limits will increase.
    Instead of making several orders you can use your credit card to pay for Skype Premium with one payment. You don't need to first add credit to your account and then purchase, if you will be using credit card then why not use it for direct payment?
    I'll check what caused the miscommunication with customer service and see if there is anything customer service could have done differently to provide better service.
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • How do I move an existing "one-year license" to my "Creative Cloud for teams" license

    I currently have two regular one-year licenses which I would like to consolidate in my new Creative Cloud for teams license. The teams license has 1 license, but I'd like to add the two regular licenses, so that I will have 3 team licenses.
    Is there any way I can consolidate licenses? Right now I have two regular licenses and a team license under one single account.
    Thanks for the advice and help.

    Is there any way I can consolidate licenses?
    Not to my knowledge. One way is to cancel (and attempt to get a prorated refund for) the individual CC subscription and apply that money to a CCT one.

Maybe you are looking for

  • Problem with ESS in portal

    Hello experts! I would appreciate a little help from you. We have configured recently ESS in our portal. The problem arised since that. We detected that all the connections between our portal and the gateway of the backend is all concentrated in the

  • Synchronizing Iterators for master view with multiple detail - how to ?

    New to JDeveloper (from Forms) and after an introduction a week or so back, one question I have not yet answered with the ADF framework is how to synchronize iterators. Maybe I missed something simple, but if I have master table A with FK relations f

  • No entry in table T555E

    Hi Guy's, While running time evaluation i getting an error that no entry in table T555E for the key 02115 . Plz suggest how to rectify the issue.... Thanks in advance..

  • Click Wheel Problem on 4G Ipod

    Hi, Recently my 4G Ipod scroll wheel has stopped responding to touch scroll-buttons work fine. Reviewed posts to see this is a common problem. I have had some success but need more advice. This is what I did 1. Reset, Restore etc- did not make wheel

  • CFDOCUMENT times out on generating simple PDF

    I generate content from query and it takes some seconds to show up corresponding HTML piece. When I enclose this into cfdocument tag - it hangs, then gives me the following error: "The content of this document process takes more than 60000 millisecon