Regarding subtraction of 10 days from the current date

Need to know how I can get 10 days subtracted from the current date before the report is excuted. This needs to appear in the selection screen before the report is excuted.
The select option contains two fields the first field is the date which is 10 days subtracted from the current date and the next field is the current date.
Please suggest.
Thanks.

Hi Dolly
I had a same req before check that code:
AT SELECTION-SCREEN OUTPUT.
IF pa_older = 'X'.
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = pa_end  "<<<<< date or in ur case sy-datum
days = '10'
months = '00'
signum = '-'
years = '00'
IMPORTING
calc_date = pa_end1.  " <<< subtracted date
ENDIF.

Similar Messages

  • I need help highlighting an expiration date on my Numbers '09 spreadsheet. I want the text/fill of a cell to change color when the expiration date of an item is within 180 days of the current date.

    I need help highlighting cells on my Numbers '09 spreadsheet.  I want the cell text/fill to change color when the date is 180 days or less from the current date.  I already have a cell with the current date in it.  I also know how to change the fill/text colors.  All the cells have been formatted to show date only.  I am having trouble with the formula.  I can get to the Conditional Formatting menu and select "With Dates" but after that I am lost.  Can anyone help?
    Thank you for any assistance.
    B

    Set a Conditional Format rule as shown in the illustration below. The rule has been applied to all dates in column B of the table.
    Regards,
    Barry

  • How to add 15 days to the current date

    Hi everyone,
    I have the following doubt.
    I stored the current system date in to a variable.Now I want to store the date which is 15 days after the current date in to a new variable.
    ie current date:1-aug-09
    later date:1-aug-09 + 15 days ie 16-aug-09.
    Plz help me in solving this problem.
    Thanks & Regards,
    srinivas

    jaligamasrinivas wrote:
    I used String variable to store the current Date.
    Now in new string variable i want to store the date after 15 days from current dateSee reply #2. String is not the right type, to be doing date arithmetic, just like it wouldn't be the right type to do numeric arithmetic. You wouldn't store integer values as strings and ask how to add them up, would you?

  • Add one day to the current date

    Hi all,
    A stupid question...
    How can I add one day to the current date in a select. I want something similar to add one month to current date, but with days:
    something like:
    select TO_CHAR (ADD_MONTHS (SYSDATE, -1), 'DD-MM-YYYY')
    from dual
    Thanks

    select sysdate+1 "add one day" from dual;

  • How to Add 15 Days to the current Date in eCATT

    Hello eCATT Guru's,
    How to add 15 days to the current date in eCATT.
    I have changed the Date format to mm/dd/yyyy.
    now i want to add 15 days to the sy-datum.
    How to do that.do any one know?
    Thanks in Advance,
    Raj

    Check out this link -
    http://help.sap.com/saphelp_46c/helpdata/en/d7/e21a50408e11d1896b0000e8322d00/frameset.htm
    It gives details about DATE variables in CATT. Hope this will help you out.
    ashish
    Reward points if you find this helpful.
    Message was edited by: Ashish Gundawar

  • FM which gives the date if we add 'x' number of days to the current date.

    Hi all,
    can you plz tell me the FM which will give me the exact date if i add some ' X ' number of days to the present date.
    in detail -->my inputs would be    1)DATE
                                                    2)no of days
    i need--> the exact date which comes after those days get added to the given date.
    PLZ HELP ASAP.
    Rgds,
    REDDY.

    Hi,
    You can use FM RP_CALC_DATE_IN_INTERVAL.
    data: wa_date  like sy-datum.
    *Add 21 days to current date.
    call function 'RP_CALC_DATE_IN_INTERVAL'
             exporting
                  date      = sy-datum
                  days      = 21
                  months    = 0
                  signum    = '+'
                  years     = 0
             importing
                  calc_date = wa_date.
    write: / wa_date.
    Regards,
    Ferry Lianto

  • Urgent: Removal of sat/sun days from the sql date query

    Hi All,
    I have a date field in my database table and I would like to get the details from the db table for the condition (SYSDATE - I/PDATE)< 2 i.e I need all the details which are 2 days old. But with this condition I would like to exclude the saturdays and sundays.
    Say if I am running this query on wednesday then it returns me the details for sat/sun which I do not want. It sould return me the thursday and friday details.
    My question can we this in SQL??? Can anybody help me??
    Thanks and regards,
    Kshitij

    refer to http://technet.oracle.com:89/ubb/Forum88/HTML/002539.html

  • How to sort news articles from Oldest(from the current date) to newest?

    I have a list of news announcements from the month of "Jan 2015" to "Dec 2015". For example each month having a one event, so totally 12 events. But I need to display the latest news articles from current date of latest upcoming news at the top(i.e. May 2015) to farthest at the bottom(i.e. Dec 2015)

    Try with sort!
    {module_announcement sort="datereverse"} or {module_announcement sortType="datereverse"}. I'm not sure what syntax we use with the new render engine.
    With the old syntax it would be {module_announcement,filter,id,noTemplate,effect,targetFrame,reserved,reserved,reserved,r eserved,sort}

  • Parameter for Last Week, Last Month & Last Year from the current Date

    I have a crystal report that has a StartDate & EndDate parameters from the stored procedure that I am calling. Now i got a new requirement saying that my user wants a drop-down parameter in which they need to be able to select last week (Sunday to Saturday), last month, last year instead of manually selecting start date and end date parameters? Can anyone please explain me how to do this?
    (FYI, I am using Crystal 2008)

    Hi Naveen,
    You'll need to handle the logic in the Stored Proc's where clause.
    If you're using oracle, I have something like this in the Stored Proc's where clause for our reports:
    Where {Date_Field} Between
    Decode('{?Relative Date}',
    'Yesterday', sysdate - 1,
    'Last Week', Tunc(sysdate, 'IW')-7)
    AND
    Decode('{?Relative Date}',
    'Yesterday', sysdate,
    'Last Week', Tunc(sysdate, 'IW'))
    where 'Relative Date' is a prompt in the Stored Proc and 'yesterday'. 'last week' are the 'static values' in the prompt.
    -Abhilash

  • Adding days to the current date

    I'm trying to write a program that takes an order and prints an invoice for my intro to java class. The date of the order and the date of arrival (which is 14 days after the date of the order) are to appear on this invoice. I thought that I figured it out but I get a compile error. Here's what I have so far:
    SimpleDateFormat formatDate = new SimpleDateFormat("MMMMM, dd, yyyy");
        Calendar rightNow = Calendar.getInstance();
        public String dateOfOrder()
             return formatDate.format(rightNow);
        public String dateOfArrival()
             return formatDate.format(rightNow.add(DAY_OF_MONTH, 14));
        }I'm writing it in JCreator and I get "cannot find symbol variable DAY_OF_MONTH" as my compile error. It compiled just fine until I added the dateOfArrival method. I keep reading through the Calendar API but I just can't understand why it won't work. What am I doing wrong?

    masijade. wrote:
    Which class is "DAY_OF_MONTH" a part of (I know what it is, but I want you to think on it). Try adding that class name to the front of the field name, with a period between them i.e.Calendar?
    I tried making the following adjustment but just got a new error.
    public String dateOfArrival()
             return formatDate.format(rightNow.add(Calendar.DAY_OF_MONTH, 14));
        }My error this time is: 'void' type not allowed here
    It seems like it is recognizing DAY_OF_MONTH now but something else is going wrong. Where am I going wrong?

  • Previous quarter from the current date using Date functions

    hi all,
    how can i get the value of the previous quarter and previous month using using NOW() function in the formula.
    regards,
    Rk
    Edited by: Rk on Feb 13, 2009 9:28 AM

    Hi Pk,
    This "DSTR(DADD(NOW(),-1,'Q'),'YYYYQ')" will give you just an year 2008 (if you run this today).
    But this "DSTR(DADD(NOW(),-1,'Q'),'YYYYMM)" will give you an year and month of prev quarter
    200811(if you run this today)
    Ola

  • How to add some days to the current system date

    can anyone help how to add some days to the current date i.e if today is 3-12-2007 and if v add 15 more days then the output should be 18-12-2007

    RajeshChandan wrote:
    First of all thanks a lot ,and coming to the question i dont mean to change the sysdate instead i want to write a prg. where after entering the current date it should effect with the no.of days that i have given but not the system date .if u can answer please reply for thisAh, I see. In that case, you can use an instance of GregorianCalendar and use it's add(...) method to add days, months, years etc. to it.
    http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
    Good luck.

  • To extend SAP user date and to add months to the current date

    Hi All,
    I need to extent the user date in SAP based on one condition.
    If the condition is true extend the date by 12 monthd if false 6 months from the current date.
    Can i have the FM for user date extentions and FM for getting the date.
    Thanks,
    Chandu.

    Hi ,
    You can use this FM for exteding the date.
    CALL FUNCTION 'BAPI_USER_CHANGE'
        EXPORTING
          username   = us_username
          logondata  = e_bapilogond
          logondatax = e_bapilogondx
        TABLES
          return     = i_return.
    u need to pass date and correspoing flag also.
    For extension of the date by months u can use this FM.
          CALL FUNCTION 'MONTH_PLUS_DETERMINE'
            EXPORTING
              months  = 6 or 12 ( depending up on ur logic)
              olddate = sy-datum
            IMPORTING
              newdate = us_expdate.
    Thanks and regards.
    Sham

  • I want to Subtract the current date to find out whats the date 10 days back

    Hi guys,
    I want to subtract the current date to find the date 10 days back. If I use Gregorian calendar and then substract the day
    calender.get(GregorianCalendar.DATE) - 10;
    I will get right if my current date is 20 or more. If it happens to be less than 10, then I get in negative.
    Please suggest an solution for this.
    Thanks in advance
    With regards,
    Amin

    Here's the code.
        GreogrianCalendar mycalendar = new GregorianCalendar() ;
        mycalendar.add(mycalendar.DATE, -10) ;That should get you the date you want and just ignore the background noise that is hambone.
    Hi guys,
    I want to subtract the current date to find the date
    10 days back. If I use Gregorian calendar and then
    substract the day
    calender.get(GregorianCalendar.DATE) - 10;
    I will get right if my current date is 20 or more. If
    it happens to be less than 10, then I get in negative.
    Please suggest an solution for this.
    Thanks in advance
    With regards,
    Amin

  • How to subtract a day from the presentation variable @{system.currentTime}

    Hello,
    How can subtract a day from the presentation variable - @{system.currentTime}
    I use the above as a title in the report. However I want to subtract a day from the above variable. How can I accomplish it?
    Thanks.

    Hi,
    Did you try the steps which I mentioned above. You can use TIMESTAMPADD function in many places in your report but I think not in title section of the title view.
    Also you can try using Narrative view instead of title view to achieve this. Follow below steos:
    * Pull another column in the report and change its fx to TIMESTAMPADD(SQL_TSI_DAY, -1, @{system.currentTime})
    * Now go to the Narrative view and add the below text in Narrative section of the view.
    Active Person Report as of @1
    Here @1 assuming the new column created is placed before all the columns in the request.
    * Also set the 'Rows to Display' as 1.
    * Delete Title view from the report and this narrative view on top of your report.
    Hope this helps.
    Thanks

Maybe you are looking for

  • How to call a BSP page or webdynpro from a WAD Template button

    Hi All, I want to implement a button on a web template which when called involes a BSP page or a web dynpro and displays the BSP page or webdynpro in a popup window. Thanks Karen

  • Cannot edit any roles in CUP5.2 due to "Enter a valid Role Name" error

    We are running CUP 5.2. I am having a problem with our Roles after they were uploaded into CUP; I cannot make any changes to the Role Details because CUP returns an error stating that our Role Names are invalid. First I uploaded the roles (I continue

  • Invoice List for Proforma

    I have to make Invoice list for Proforma But here I am getting this message as " The document is not relevant for invoice lists". How to get ris of this

  • Newbie alert! - need help getting started

    Hello! (If there is a better place to post this message, please forgive me, and tell me where I should post.) My team is moving to the Weblogic app server platform, and my current task is to get my feet wet. I've picked up a few things after digging

  • Can't get rid of custom profile icon

    I just started using Adium 1.1.3, and for some reason, no matter what I do, it sets my profile icon to an icon on my icon list in iChat (the first one I ever put in there a very long time ago). So naturally I tried setting iChat to a different icon a