Current Date - 91 days
I am trying to imbed a formula that will look pull in the current date, then subtract 91 days from it. I am wondering if anyone can help me with it?
Tried:
timestampadd(SQL_TSI_DAY, -91,Date)
ADDDATE(CURRENT_DATE, INTERVAL 91 DAY);
Thanks,
it has to be
30 days ago sales = total sales - sales for last 30 days
or logical column could be
case when sales_date < (SQL-___days, -30, current_date) then Sales else 0 end
Similar Messages
-
Current date, first day of month, last day of month, current week, current
Hi All,
may be the question will sounds basic for your guys, I am connecting via MDX a cognos reportnet on a BW 3.0B..due to loads of limitations on filtering via MDX on 'business date/time functions' , I would need to create in the infoqueries that are my data sources, the following additionnal objects:
- current date
- first day of current month
- last day of current month
- current week
- current year
I do not want prefiltered infoqueiries but object with these single values so that from reportnet I can have something like: OCALDAY between 'first day of current month' and 'last day of curent month'
Is there standard fonction for this under BW/BEX or if we need to developp functions has nayone some code examples.
thanks a lot for your great input
DavidHi,
In universe level if you want implement the requirede functions then you have to write custom sql and if you want to implement them in Reporting level then most of the functions are available to you. e.g. Quarter,Month, Year, Current Date....
Cheers,
Suresh A. -
Hi,
I would like to initialize a bind variable with current date -7 days
I saw the post regarding this request but it was for jdev11 and the solution doesn't work in jdev10.
Have you any idea to do that in jdev10
Thanks.A bind variable used in SQL statement
It's the same problem discussed in this post : current date as default date
The only difference is that i'm using Jdev 10 !
Dan. -
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.
BSet 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 -
ICal still shows previous day in ical proper, but shows current date in the dock
iCal is open in the MONTH, on my desktop permanently, but it continually shows yesterdays date. It isn't till I actually click on the following day in iCal proper that the date changes to the current date. The iCal icon on the dock works fine with no issues. When I first purchased the iMac iCal worked aok. Software is continually updated.
I have the same issue. I am also running iCal 5.0.2 under Lion 10.7.3. It worked fine for me on Lion 10.7.2, and it still works ok for me on my iPhone 4 running iOS 5.1. It does look like a bug to me. I have the issue connecting to a Google Calendar as well as to another (non-Apple) CalDAV server.
Let me know if you call Apple Support to report this issue. -
Number of days (current date-goods receipt date)
Hi All,
I have a requirement like this :
need to display no of days in Query which is CKF=current date-GR date. GR date is coming from r/3.We do not have current date field. and moreover no of days is in the selection screen.So we should have no of days calculated already in the cube.am i rght? calculation shold be done before data comes into the cube i.e in transfer rules or update rules...thats what i thought.Am i rght? can anybody come up with some code to calculte no of days in transfer rules or update rules?
pl correct me if i am wrong.
regards
Message was edited by: cmdWhen your write code in transfer rules it will be global.
if u write code in update rules it will local to on data target.
Transfer rules----
InfoSource
Update reules----
data target.
here infosource is re-usable to other datatargets, so it will effect to all.
but update rules is only one data target.
i think u clar about this.
pls assgain poinst, if u satify.
by
ANR -
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
Thanksselect sysdate+1 "add one day" from dual;
-
Extract data on report between last 30 days from current date.
Hi Experts,
Ealrier i had provided user promt to select the date range, now i need to schedule the report for this i have to set the date between last 30 days from current date.
How can i add this in formaula on record selection.
before:
{pm_process.pm_creation_date} in {@Start Date to UTC} to {@End Date to UTC}
I tried:
{pm_process.pm_creation_date} in CurrentDate() - 30 to CurrentDate()
But this is diplaying me only data of 30th date from current date.
Please advice.Hi Brian,
Thank you!
1. I have not created any function for {pm_process.pm_creation_date} in [CurrentDate() - 30 to CurrentDate()] i am just adding this on Record Selection and its not helping.
2. {pm_process.pm_creation_date} in Last30Days; this is throwing below error.
please advice what to be done? -
Using a checkbox in numbers- if,then, I want to display today's date if checked, and keep that date, the day it was checked, not the current day
this will not work. Numbers does not provide a timestamp. you can, however, enter the formula "=now()" in any cell, then copy that same cell, then paste (using the command "Edit > Paste Formula Results"
If you need a time stamp often,
make a single cell table with the formula (mentioned earlier).
and copy and paste as needed -
Adobe LiveCycle Designer 8 - Add days to Current Date in another text field
Hi-
I am working on an expense report. I have six fields, CurrentDate, and countDate1 through countDate5. The CurrentDate is a Time/Date field which the user can select whatever date is needed with the drop down calendar. The other five countDate fields are "text" fields which will represent Monday through Friday. I would like to add zero days to whatever the user selects as the CurrentDate and make that appear in countDate1 which represents Monday(the CurrentDate the user selects will always be a Monday), add one day to whatever the user selects as the CurrentDate and make that appear in countDate2 which represents Tuesday...and so on. I realize this is probably basic for someone familiar with FormCalc but I'm very new at this.
This got me very close but I want the user to select the date and not have the CurrentDate already filled in.
CurrentDate - DateTime field, FormCalc calculation script:
num2date(Date())
Date1 - Text field, FormCalc calculation script:
Num2Date( Date2Num(CurrentDate.formattedValue))
Date2 - Text field, FormCalc calculation script:
Num2Date( Date2Num(CurrentDate.formattedValue) + 1 )
Thanks!
BrianHere is an exmaple of adding days the script is used in the "exit" event for the date select field that has display format of "MM/DD/YYYY". Adding days requires add x number of days to the days since the epoch date for the current date, adding months or years one needs to manipulate the string parts of the date.
----- form1.#subform[0].InputDateField::exit: - (FormCalc, client) ---------------------------------
// fomatted string for selected date
var sFmtDateValue = $.formattedValue
var sMsg = Concat("Entered date formatted: ", sFmtDateValue) // build message string
sMsg = Concat(sMsg, "\u000a" ) // add new line to message
// convert date string to days since epoch date - format is important
var fDaysPast = Date2Num(sFmtDateValue, "MM/DD/YYYY")
// add 7 days to days past epoch date
var f7DaysPlus = fDaysPast + 7 // add 7 days
var s7DaysPlus = Num2Date(f7DaysPlus, "MMM DD, YYYY") // format string for 7 days plus
sMsg = Concat(sMsg, "\u000a", "Plus 7 Days: ", s7DaysPlus) // build message string
// add 14 days to days past epoch date
var f14DaysPlus = fDaysPast + 14 // add 7 days
var s14DaysPlus = Num2Date(f14DaysPlus, "MMMM DD, YYYY") // format string for 7 days plus
sMsg = Concat(sMsg, "\u000a", "Plus 14 Days: ", s14DaysPlus) // build message string
// display results
// work on months
// get parts of date past epoch date
var sFullYear = Num2Date(fDaysPast, "YYYY") // get 4 digit year form days past epoch date
var sMonth = Num2Date(fDaysPast, "MM") // get month form days past epoch date as number
var sDate = Num2Date(fDaysPast, "DD") // get date form days past epoch date as a number
var s2Month = Sum(sMonth, 2) // add 2 months
var s2FullYear = sFullYear
// if more than 12 months in new date adjust year on number of months
if (s2Month > "12") then
s2FullYear = Sum(s2FullYear, + 1) // increment year
s2Month = Sum(s2Month, - 12) // adjsut months
endif
var s2MonthsAdded = Concat(s2Month, "/", sDate, "/", s2FullYear) // date string
sMsg = Concat(sMsg, "\u000a", "Added 2 months: ", s2MonthsAdded) // display stringxfa.host.messageBox(sMsg, "Sample Adding Days" ,3, 0);
var s5Month = Sum(sMonth, 5) // add 5 months
var s5FullYear = sFullYear
// if more than 12 months in new date adjust year on number of months
if (s5Month > "12") then
s5FullYear = Sum(s5FullYear, + 1) // increment year
s5Month = Sum(s5Month, - 12) // adjsut months
endif
var s5MonthsAdded = Concat(s5Month, "/", sDate, "/", s5FullYear) //build Date string
sMsg = Concat(sMsg, "\u000a", "Added 5 months: ", s5MonthsAdded) // display stringxfa.host.messageBox(sMsg, "Sample Adding Days" ,3, 0);
// display results
xfa.host.messageBox(sMsg, "Sample Adding Days and Months" ,3, 0); -
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 -
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,
srinivasjaligamasrinivas 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? -
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,
RajCheck 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 -
Current date as deafult for Calender Day and user entry
Hello All,
There is a select option for Calender Day for a BW query.
This Calender Day should have a default as Current Date and User entry is also possible.
I have used a Customer exit and written the following code under i_step = 1
data: v_currdt like sy-datum.
clear: v_currdt, vfl_range.
if i_step = 1.
vfl_range-sign = 'I'.
vfl_range-opt = 'EQ'.
v_currdt = sy-datum.
vfl_range-low = v_currdt.
append vfl_range to e_t_range.
endif.
Please inform if this code is incorrect, because I am not able to see the date at all.
Cheers,
KPHi
Check with this code!
Implemented for the same function as you require.-
if i_step = 1.
case i_vname.
WHEN 'ZZZZZZ'.
IF i_step = 1.
REFRESH e_t_range.
CLEAR l_s_range.
l_date1 = sy-datum.
L_S_RANGE-LOW = l_date1.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
endcase.
endif.
Regards
M.A -
Current date - user entered days
Hi all
I have this scenario:
I have safety stored as attribute of material.
I have to do some calculation based on this so i created a replacement path variable and used replace with attribute value.
Now i have 2 safety stock:
1. Current ( safety stock restricted to current date )
2. Safety stock Past : restricted to (current date - User entered no of Days).
How to calculate the second one in 2004s??
ThanksHi Srini
Thanks for quick response. here is the issue. The safey stock needs to be calucated for just that day. so it not aggregated from current date- user entered days to current date.
ex:
Current Safety Stock (10/26/2007) Safety past (10 /26/2007 - 7 days) ( user enters 7 days)
100 200
So how to restrict Safety past to the date which is current - user enetered no of days.
Thanks
Pankaj
Maybe you are looking for
-
27 in IMac as second monitor for G4 Powerbook
Is it possible to use a 27 in Imac as a second monitor for a 15 in G4 powerbook
-
Hi - Need advice on placing pictures and text within DIV's
I am new to CSS and am creating DIV's to structure my page. I am trying to do two things and i imagine the solution will be similar or the same for both issues. Firstly I have created a container DIV in the centre of my page, within that I would like
-
Why all of a sudden are my images missing and have question marks
Hi Guys, Really irritating thing has started to happen when I use pages. I start my document as usual, drag and drop images into it then save. When I try to resave it complains of not being able to save the document. I then save as another file name,
-
Where to find in-depth information on iOS7
I'm taking an OS class and was assigned to learn iOS7's details throughout the semester. For example what kind of information is stored in iOS7's PCB. Where could I find this information or who could I contact for this information?
-
How can I configure a third party VME board with A24 address space using a VME-MXI-2?
Hi! We are trying to establish communications to a Galil Motion controller with a VME interface. Galil states that they are using a A24 address scheme with A16 data space for their board. I am confused how to configure that board in the VME chassis p