on 06-06-2012 10:22 AM
Hello,
We have a requirement for which we are accessing SAP ECC 4.0 and creating views based on standard SAP tables CDHDR & CDPOS. Since these tables are huge tables, we have put the filter condition to select only a specific table and specific field and only for past 7 days. We were able to put this date filter using date_diff function. But now our requirement is to to filter the data for date range. We could filter the data for a single date by using condition as
UDATE = to_date('01/11/2012','mm/dd/yyyy')
but we are not able to put that for a date range. When we try to put the condition as
UDATE between to_date('01/11/2012','mm/dd/yyyy') and to_date('01/18/2012','mm/dd/yyyy')
it is giving an error as "Syntax error at identifier" (COR-10611).
Please help at the earliest since we need to provide the resolution to the client.
Thanks in advance
Minakshi
Hi Minakshi,
Why not use 2 filter conditions:
UDATE > to_date('01/11/2012','mm/dd/yyyy')
AND
UDATE < to_date('01/18/2012','mm/dd/yyyy')
Regards,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How would you write an expression that would filter data 2 months before system date (last two months) .. thought this was very simple but tried a few methods - none of them worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Im trying to do something similar where I want the sysdate to be 1 month before ERSDA (Created on date). This is my data:
Sysdate_30: I added this (add_months(sysdate(),-11) to make the sysdate 1 month before ERSDA (Created on date).
I tried this in my view but got this error:
Would really appreciate quick help on this! 🙂
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.