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?
Similar Messages
-
Validation for posting date is less than 7 days of current date
Hi
I want to create a validation wherein system will validate every entry that whether posting date is less than 7 days of current date. If it is than check in a set is that user id available if not than show error message.
If someone have any idea on this logic pls share with me.
Regd
ShivHi,
That's certainly possible via usual OB28 validation. Define your prerequisites for the posting date (you will have to do it via user-exit (bkpf-budat greater then sy-datum less 7 days) , and check whether the user is in the set.
Regards,
Eli -
Get the date of a particular week day from given date
I have a given date.
from that date i want to get the date of sunday of that week
wat is the best possible way to do the same.
for eg:
if i am given 03/11/2007 which is a saturday
i want to get 27/10/2007 which is the sunday which falls in the same week as of 03/11/2007
can anybody please help.hi,
Here I am posting code for your requirement.
Here I am hard coding the date value.
import java.util.*;
public class DateTest{
public static void main(String ar[]){
Calendar calendar =new GregorianCalendar(2007,7,4);
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
calendar.set(2007,7,4-calendar.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
} -
Last 6 months of data from current date
Hi Experts,
I have a requirement in WebI to display last 6 months of data based on current date.Actually I have a column called "Employee Contract Start date" in my report.Suppose the end user executes the report today,then he should be able to see the Employee's data whose contract started today and in the last 6months from current date.
Also I have dimension object name "Employee Contract Start Date".
Please be noted that I am getting the data from Bex Query and I am working on BO 4.1 version.
I have Objects "Calender day" , "Cal.year/Month" , "Calender month" , "Employee Contract Start Date" in the BEx Query.
Could anyone please propose me, what are the ways to meet this requirement?Hi Cris,
We can get the 6 Months date in webi.
Check the below blog , will help you.
http://scn.sap.com/community/businessobjects-web-intelligence/blog/2014/01/21/time-variablesdimensions
Regards,
Javed -
Last day from the list of dates
i have a query which give me list of dates. From these list of date i want to find the last day in all months. when i am using last day fucntion i am getting last day from the sysdate and not from the list of dates generated by my query.
the query
(select distinct to_date(substr(batch_id,1,6),'DDMMRR') batch_id from gcon_mst_v0)
order by batch_id desc
i want last day from each month from the list of dates listed from the query.
Help would be higly appriciated
Thanks in advanceThe column is a varchar but i am convering it to get
the list od dates as you can see in the query. i want
all the last dates of every month from that list of
dates for eg. below is the list of the dates i am
getting from the query.
7/11/2007
7/10/2007
7/9/2007
7/8/2007
7/6/2007
7/5/2007
7/4/2007
7/3/2007
7/2/2007
7/1/2007
6/29/2007
6/28/2007
6/27/2007
6/26/2007
6/25/2007
6/24/2007
6/22/2007
6/21/2007
6/20/2007
6/19/2007
6/18/2007
6/17/2007
6/15/2007
6/14/2007
6/13/2007
6/12/2007
6/11/2007
6/10/2007
6/8/2007
6/7/2007
6/6/2007
6/5/2007
6/4/2007
6/3/2007
6/1/2007
5/31/2007
5/30/2007
5/29/2007
5/28/2007
5/27/2007
5/25/2007
5/24/2007
5/23/2007
5/22/2007
5/21/2007
5/20/2007
5/18/2007
5/17/2007
5/16/2007
5/15/2007
5/14/2007
5/13/2007
5/11/2007
5/10/2007
5/9/2007
5/8/2007
5/7/2007
5/6/2007
5/4/2007
5/3/2007
5/2/2007
5/1/2007
4/30/2007
4/29/2007
4/27/2007
4/26/2007
4/25/2007
4/24/2007
4/23/2007
4/22/2007
4/20/2007
4/19/2007
4/18/2007
4/17/2007
4/16/2007
4/15/2007
4/14/2007
4/12/2007
4/11/2007
4/10/2007
4/9/2007
4/8/2007
4/6/2007
4/5/2007
4/4/2007
4/3/2007
4/2/2007
4/1/2007
3/30/2007
3/29/2007
3/28/2007
3/27/2007
3/26/2007
i want the last date for all the months listed. that
would be
6/29/2007 -- last day for june
5/31/2007-- last day for may
4/30/2007-- last day for april
3/30/2007-- last day for march and so on
thankswrite query as
SELECT LAST_DAY(TO_DATE(SUBSTR(COLUMN_NAME,X),'MM/DD/YYYY'))
FROM TABLE_NAME -
Please help to get onhand stock report with last purchase and billed date warehouse and item wise
please help to get onhand stock report with last purchase and billed date warehouse and item wise
Hi Rajeesh Ambadi...
Try This
SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',
T1.LASTPURDAT ,t1.LastPurPrc
FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
WHERE
T0.ONHAND>0
AND T0.WhsCode ='[%0]'
Hope Helpful
Regards
Kennedy -
"Expected Close" date needs to be 30 days from opened on day
Hi all,
We are trying to auto-populate an opportunity field ("expected close") with a date that would be 30 days in the future from the opportunity field "opened on" date. We have the opened on date already set so that it auto-populates with the date that a new opportunity is created.
This is what we have tried so far in the opportunity field edit area:
[<CloseDate>]=Today()+30
Any ideas as to why this isn't working, and ideas on how to make it work are appreciated!!Yes this works.
Go to the Admin Section, Application customization, pick the field that you want to update (in our case Opportunity),
Click Opportunity Field Set-up, pick the field that you will update (in our case Close Date) and click "edit".
In the Default Value add this: Today()+30 (or however many days you want (in our case "30"days from created date))
click "Save"
Log out and log back in to see if update has happened.
GOOD LUCK!! -
How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)
DT,
If the starting date is in Column A, and you want to calculate what the date would be 60 days later, in Column B, write in Column B:
=A+60
Couldn't be much easier.
Jerry -
Sqlldr - can you skip last row from a data file
Hi
I need to skip last line from the data file when I load the data into the tables. Is that possible to do using sqlldr, if yes How?
Also, the first row in the data file, which has a single column needs to be loaded into all the rows of the table. How can i do that?
Example
020051213
1088110 0047245 A 000000000000GB 00000496546700
1088110 0719210 A 000000000000GB 00001643982200
1088110 0727871 A 000000000000GB 00000083008900
9010163
The first line needs to go into all the rows, and the last row needs to be skipped. Remaining can be loaded normally. I think this would take multiple loads. Can anybody please help.
TIAhere i am sending a control file sample which use the when clause
in sql loader
load data
infile 'load_4.dat'
discardfile 'load_4.dsc'
insert
into table sql_loader_4_a
when field_2 = 'Fruit'
field_1 position(1) char(8),
field_2 position(9) char(5)
into table sql_loader_4_b
when field_2 = 'City'
field_1 position(1) char(8),
field_2 position(9) char(5)
) -
First and last day of current year as a date object
Howdy...
can someone please help me out... i need a fast way to get the first day of the current year as a date object and the last day of the current year as a date object...
big thanks for any sample code...import java.util.Calendar;
// snip
Calendar firstDayOfYear = Calendar.getInstance(); // will initialize it with today
firstDayOfYear.set(Calendar.DAY_OF_MONTH, 1);
firstDayOfYear.set(Calendar.MONTH, Calendar.JANUARY);
Calendar lastDayOfYear = Calendar.getInstance(); // will initialize it with today
lastDayOfYear.set(Calendar.DAY_OF_MONTH, 31);
lastDayOfYear.set(Calendar.MONTH, Calendar.DECEMBER);Rommie. -
Trying to subtract days from a date
Im trying to subtract days from a date.
When i use this query:
select sysdate-:p21_DAYS_OLD from dual;
it displays the correct date but not in the correct format. It is displaying 12-AUG-09 instead of 08/12/2009.
I tried this query but i get the ORA-01722: invalid number error.
select to_char(sysdate,'MM/DD/YYYY')-(:p21_DAYS_OLD) from dual;
Can someone help me please?
DeannaDclipse03 wrote:
Im trying to subtract days from a date.
When i use this query:
select sysdate-:p21_DAYS_OLD from dual;Just set the NLS_DATE_FORMAT parameter for your session and execute the above query.
ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY'
/ -
How to calculate number of days from a date field
Dear BW Experts.
I have a field 'Create Date' in the BEx query. Now we need to create a variable which should give the number of days from the date of running the query (sy-datum) to the Create Date.
This will help the users to get records which are say, 30 days old (Sy-datum - create date = 30) or 10 days old etc.
Could you suggest as to how to create this variable.
Thanks,
SaiHi,
Step 1: Create variable on "Create Date" with User entry processing type
Step 2: Create a restricted KF for Sales & restrict it on "Create Date" to get "Sales on day"
Step 3: Manipulate the values of "Create Date" on which you could restrict "Sales" again and again to get other values
Step 4: Create one variable (ZPUTMNTH) for u201CMonth to Dateu201D with processing by u201CCustomer Exitu201D. This variable was created on u201CDateu201D characteristics.
Step 5 : Goto C-mod t-code and use EXIT_SAPLRRS0_001
to calculate "month to date" user input is "Calday" Key Date
WHEN 'ZPUTMNTH'.
IF I_STEP = 2. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZPDATE'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6). "low value, e.g.YYYYMM (200606) part of key date (20060625)
L_S_RANGE-LOW+6(2) = '01'. u201C low value e..g. YYYYMM01 (20060601)
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
Assign if helps.....
Regards,
Suman -
Using 2004s service pack 10. Is there a way to subtract x number of days from a date using a formula? I saw an earlier post that said to use function module RP_Calc_Date_In_Interval but when I search for this it says it doesn't exist. Is it called something else in 2004s? Is the only way to accomplish this using a function module?
If formula variable does not work and if the "no of days is a fixed number", then next alternative is to have a routine in transformation and make the subtraction.
Ravi Thothadri -
Get last august month from current date
Hi,
I need to get last august month from current date.
e.g if current date is 1-OCT-2013 need to get last August date i.e.1-AUG-2013
e.g. if current date is 1-MAY-2013 need to get last August date i.e.1-AUG-2012Something like this?
SQL> WITH table_x AS(
2 SELECT SYSDATE dt from dual UNION ALL
3 SELECT TO_DATE('20-05-2013','dd-mm-yyyy') from dual
4 )
5 --
6 ---
7 --
8 SELECT dt,
9 CASE
10 WHEN (dt >= Add_Months(TRUNC(dt,'YEAR'),7)) THEN
11 Add_Months(TRUNC(dt,'YEAR'),7)
12 WHEN (dt < Add_Months(TRUNC(dt,'YEAR'),7)) THEN
13 Add_Months(TRUNC(dt,'YEAR'),7) - 365
14 END cs
15 FROM table_x;
DT CS
24-OCT-13 01-AUG-13
20-MAY-13 01-AUG-12 -
Payment term - 90 days from document date on 15th of the month
Helllo,
Can anybody please tell me how to configure following payment term?
90 days from document date on 15th of the month i.e. as follows:
u2022 Document date = 03.01 => Due date = 15.04 (90 days completes on 03.04)
u2022 Document date = 15.01 => Due date = 15.04 (90 days completes on 15.04)
u2022 Document date = 27.02 => Due date = 15.06 (90 days completes on 28.05)
u2022 Document date = 18.03 => Due date = 15.07 (90 days completes on 16.06)
Regards,
CHetna PantDear,
Define no 'fixed day' and 'additional months'. Go to payment terms section and enter 90 in 'No. of days'
Maybe you are looking for
-
Text wrap dialogue box is blank in CS3
I am not able to view the options in the text wrap dialogue box - why? I have restarted InDesign and my computer but there are no options showing in the dialogue box. I use text wrap all the time so this is a major problem for me. Thanks for your hel
-
In Lion Server what comes first, DNS, Certificates, or Open Directory
For a fresh install of Lion Server in what order should things be installed? Certificates, DNS service, Open Directory
-
I just dropped my new macbook pro on the ground, it dents a little. So can I bring it to apple store, and repair it for free? BTW: I bought it just one month ago. Thank you very much
-
Best way to pass an OS loophole up to the developers?
I found sort of a loophole that could cause serious problems to someone who uses this feature of their Macs. In the middle of a lecture class, I changed the language of my keyboard so I could type in another language. I am listening to the professor
-
IPhoto Keywords - Disappearing?
Has anyone's iPhoto Keywords disappeared? Mine just have and it's not cool! I think it happened after Security update v1.0. So what gives, yo? Do I now have to sort through my whole freaking library again?