Date calculation in OBIEE
Hie my requirement is:
I want to apply a filter on the the column 'reported_date'. Filter should be display all the rows with reported_date within last 1 year.
any help on how to write it?
Vik
it is giving following error:
Error getting drill information: SELECT Product.Product saw_0, Product."Product ID" saw_1, Time."Reported Date" saw_2 FROM "Bug DB" WHERE (Product."Product ID" = 807) AND (Time."Reported Date" BETWEEN add_months(current_date, -12) AND current_date)
Error Details
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: {call NQSGetLevelDrillability('SELECT Product.Product saw_0, Product."Product ID" saw_1, Time."Reported Date" saw_2 FROM "Bug DB" WHERE (Product."Product ID" = 807) AND (Time."Reported Date" BETWEEN add_months(current_date, -12) AND current_date)')}
I also tried using sysdate instead of current_date but in vain
Similar Messages
-
Schedule Line Delivery Date Calculation with Transportation Scheduling
Hi All,
We are currently running into a problem where our Sales Order Schedule Line delivery dates are being pushed out too far into the future - because of the Calendar being used to determine the transit time.
We have 'Delivery Scheduling' and 'Transportation Scheduling' activated for our Sales Document type
We have Routes that are configured with a 'Transit Time' and a 'Factory Calendar'
Order Scenario:
'Factory Calendar' assigned to our 'Route' is setup with only one 'Workday' in a given week e.g. Wednesday
Our 'Route' has a Transit Time of 2 days
We create a Sales Order on Monday for a Material that is available in our Plant
The 'Goods Issue' date is being determined correctly for the next Workday - being Wednesday
The 'Delivery Date' is extending out over 15 days (2 Wednesdays into the future) - since it is working on 'Calendar Days' and not 'Actual Days'
Does anyone know of a way (config or other) to only influence the 'Goods Issue' date with the 'Factory Calendar' assigned to the Route, and have the 'Delivery Date' calculated using the Transit Time on the Route and 'Actual Days' rather than Calendar days?
All help greatly appreciated.
Thanks,
Ravelle<i></i>Hi Pathik,
Thanks for your reply. I have already maintained the Calendars I'm using for this business process in <SCAL> - same as <OY05>.
The problem I'm having though is that by assigning a Calendar directly to my route (which I doing to influence the goods issue date - using a 1 Working Day Calendar) it is also taking precedence in determining the Transit time - which in this case I don't want, as I want my Transit time to be determined using a 5 Working Day Calendar.
I don't think this problem has a config option as a work around...I think the only possibility in this case is a development to achieve the results we need.
Thanks,
Ravelle -
Hi,
how can i calculate date difference in hours from 2 dates(timestamp) in obiee
i.e. 02/03/1986:08:00 and 03/02/1986:0:14:00Hi,
If you are having two date column and want the difference in hours then try with the below function:
timestampdiff(SQL_TSI_HOUR, date_column1, Date_Colum2)
or if you are having two date value in the expression itself then go with the below syntax:
timestampdiff(SQL_TSI_HOUR, TIMESTAMP'1998/07/31 23:35:00', TIMESTAMP'2000/04/01 14:24:00')
Hope it helps,
Regards,
Bose
Edited by: Bose on Mar 20, 2012 3:33 PM
Edited by: Bose on Mar 20, 2012 3:38 PM -
How to update the default date format in OBIEE 11G.
Hi All,
How to change the default date format in OBIEE 11g from the MM/DD to DD/MM. Could anyone please help me out ASAP?
Thanks,
ArpanHi Arpan
OBIEE 11g is having " localedefinitions.xml " file at this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display
in my case i installed at C:\Oracle\MIddleware.
so
1- Stop BI Server from EM
2- Navigate to this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display. in your case oracle home will be different
3- take a backup of this file localedefinitions.xml "
4- modify it and save
5- bring BI Server up.
Regards
sher -
Graph Data Labels in OBIEE 11g - Customizing
Hi folks!
Would somebody know how to select what is shown in graph data labels in OBIEE 11g?
For example in a scatter graph data label I'd like to show the Group only (not the combination of Series, Group, X and Y, as by default). For a pie chart one can select the data shown in data labels to some extent (name / value), however couldn't find this option for scatter graph.
After searching I could only find instructions for 10g - such as John's instructions at http://obiee101.blogspot.com.es/2008/01/obiee-xy-and-data-in-mouse-over-label.html.
However, my understanding is that the graph engine in OBIEE 11g is now different, and the 10g instructions are not valid for 11g anymore.
I was also having a look on the .cxml files in OBIEE 11g but those seem to relate to colors only?
Any help appreciated, best regards,
Ilmarihello,
i'm facing the same situation here,did you find a solution for your problem? -
Hi,
I am working on a calculation in OBIEE 11g.
its like :
CASE WHEN MEASURE1 = 0 THEN MEASURE2 + MEASURE3 + MEASURE4 ELSE 0 END
Results were not coming correct. I analyzed the backend SQL and the problem is it not applying MEASURE1 in GROUP BY. I have tried to cast it as char but it is just nt applying it in GROUP BY. Any one have any suggestion.
Another issue I am facing is purging cache. I use CALL SAPurgeAllCache(); but later if u try to get physical SQL i can see it is still referring to some Cache table any idea how can I GET FULL PHIYSICAL SQL EVERY TIME I RUN A REPORT BY PURGING CACHE.
Looking forward for your response thanks!
ThanksHi,
Please check follow the steps.
Group by problem please refer the below thread.
Re: Group By
All measures columns are comming single table are multiple tables ?-- If yes those columns are comming multiple tables please check join conditions.
2. Another issue I am facing is purging cache. I use CALL SAPurgeAllCache(); but later if u try to get physical SQL i can see it is still referring to some Cache table any idea how can I GET FULL PHIYSICAL SQL EVERY TIME I RUN A REPORT BY PURGING CACHE.
A. If you run the above script it will remove bi server cache only. You have to remove BI presentation cache also, Go--> settings-->Administrator--> manage session--> close all cursors also.
or .
your need to check Go--> physical layer--> click table properties --> here are you defined any cache times.
Hope this help's
Thanks,
Satya
Edited by: Satya Ranki Reddy on Jun 1, 2012 12:08 PM -
Hello All,
In my report, User wants to see a day counter which is the dfference of a date (date coming from cube) and Current date. For current date we are using 0f_aday sap exit. How we can we acheive this, does it involve any User exits at the back end or can I use a calculated keyfigure to find the difference between these two dates.
Please reply to this as it is very Urgent Issue
thank youHI AL,
Thanks for the udpate. But I believe we can update any thread if its related with the same subject if its less than 3 years. Is it not right ? I have a mail in my inbox, from some moderator confirming the same. That is the reason I have updated this thread...as its related to the same question and this thread is created n 2011.
Anyway, thanks for the answer. I will change the dimension to date and calculate the difference from the 2 variables.
Reg another doubt, from the below link...
https://docs.google.com/viewer?a=v&q=cache:YQS2jPhWysAJ:www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705734f2-4e85-2e10-2ebf-891d0110de74%3FQuickLink%3Dindex%26overridelayout%3Dtrue+&hl=en&gl=au&pid=bl&srcid=ADGEESjL8dx81tAAJNL0Ln4c2MW4k3yZRDNFsop1pptOc3bQf1xU0Le9e3loFsZXJi5rWuYt3j7yoStGMktsL5XEdV9T3ONzdKay0x5yrIbaUBB3Dpz1Fr6xuggf_IZX-S0Q4WONpBhN&sig=AHIEtbTZfXXLN4gZCsw7qpZXgrkjeCYLcA
what is the field used for Interval ( from, to , range) . You have missed my other question, why am I getting X below the result while doing the date calculation . I mean I am getting the result, but below every row, there is a X . Any ideas ?
Thanks,
DR -
Due Date Calculation on A/R Invoice
The Due date calculation on an Invoice for a customer with a payment condition of 30 days is wrong on the system:
Invoice DocDate: 11.05.17
Invoice DueDate: 11.07.01
On the BP Master Data is set a payment condition of 30 days. So it should be a due date of June, not July. This is a invoice that comes from a Sales Order with Approval Procedure.
Our version is 2007 A SP:00 PL:49.
Thanks in Advance...Hello,
Perfect Notification
For Payment Terms for Business Partner----
IF (@transaction_type = 'A' Or @transaction_type = 'U') AND @object_type = '17'
BEGIN
Declare @GroupNum as Nvarchar(20)
Declare @OCRDGroupNum as Nvarchar(20)
Declare @PaymentTermCode as Nvarchar(20)
Declare @PaymentTermName as Nvarchar(20)
Set @PaymentTermCode = (Select GroupNum from OCRD where CardCode = (Select CardCode from ORDR where DocEntry =@list_of_cols_val_tab_del))
Set @PaymentTermName = (Select PymntGroup from OCTG where GroupNum = @PaymentTermCode )
Set @GroupNum = (select GroupNum from ORDR where DocEntry =@list_of_cols_val_tab_del)
Set @OCRDGroupNum =(Select GroupNum from OCRD where CardCode = (Select CardCode from ORDR where DocEntry =@list_of_cols_val_tab_del))
If @GroupNum != @OCRDGroupNum
begin
SET @error = 10
SET @error_message = N'Payment Terms Should be ' + ' ' + @PaymentTermName + ' ' +' For this Business Partner'
end
END
End----
It will Definatillly Help You.
Thanks
Manvendra Singh Niranjan -
Hi,
We have a requirement to exclude non-Business days while calculating Baseline date(for the Accounting Document created on saving the Billing document)
Currently the Baseline Date being populated in the Accounting Document is Document date + 5days(including Holidays).
For eg
Current Scenario
Document Date: 12th Feb 2008
Baseline date: 17th feb 2008.
Requirement:
Document Date: 12th Feb 2008
Baseline date: 19th feb 2008(Excluding Sat & Sun).
Request you to share useful info in this regard.
Thanks
BinuHi,
Use user exit RV60FUS5 for these base line date calculations.
Thanks
Krishna. -
Baseline date calculation excluding non-Business days
Hi,
We have a requirement to exclude non-Business days while calculating Baseline date.
Currently the Baseline Date being populated in the Accounting Document is Document date + 5days(including Holidays).
For eg
Current Scenario
Document Date: 12th Feb 2008
Baseline date: 17th feb 2008.
Requirement:
Document Date: 12th Feb 2008
Baseline date: 19th feb 2008(Excluding Sat & Sun).
Request you to share useful info in this regard.
Thanks
BinuHi,
Use user exit RV60FUS5 for these base line date calculations.
Thanks
Krishna. -
Baseline date calculation in Invoice verification (MIRO)
Dear experts,
I need to set baseline date after 40 days from document date in MIRO.
Baseline date calculation of "Terms of Payment" in IMG has two parameters:
・Fixed day
・Additional months
We cannot set 40 days in these parameters.
Can anybody tell me how to set baseline date not month but date(not fixed day) ?
Please advise me on the settings SPRO>MM>Purchasing>Vendor Master>Define terms of Payment.
Thanks & Regards
KenHi,
You can't do this.
The baseline date is the date on which the calculations are made.
So if you have 40 days to pay, this will be 40 days from the baseline date.
This will either be the document date or another date, but you can't (in standard SAP) have the baseline date as "X" days after "Y".
So the baseline date is the date of an event (e.g. the date that the Invoice was posted) not a calculation.
Is it possible that you have misunderstood the use of this date?
If you just want to ensure that the payment date is 40 days after invoice recipt, then set you just have to enter the number of days in the payment terms and the baseline date stays as the invoice date (etc.)
Steve B -
Baseline Date for Due Date Calculation required for S/L indicators
Hello,
Iu2019m facing the following problem
Iu2019m trying to insert an invoice (using a customer master record) but the system blocks me because the field ZFBDT (Baseline Date for Due Date Calculation) is a Required entry.
The strange thing is that if I use a S/L indicators the field is mandatory, if not the date may be defaulted.
I checked in OB41 but there are non differences between Special PK and normal PK.
Any ideas?
Thanks in advance
AlbertoDear Alberto,
the field "Due On (BSEG-ZFBDT)" cannot be controlled with field status.
It is controlled by field attribute of screen painter (Tcd: SE51). If
you look at element attribute for "Due On" field, a flag for required
entry is activated. In this case, field status has no control over
the field.
As of release 3.1G, field BSEG-ZFBDT is hardcoded in most FI screens
to be mandatory and cannot be influenced by any field status
changes. This situation is only valid when posting with special G/L
indicator (ie PK 29/39).
SAP development team has determined that this is a critical field. The
reason behind this is that this special GL screen and the data entered
here are very important to many other programs. This data affects
liabilities and receivables where due date is necessary almost
everytime. Thus, we changed this field in this screen in order to
prevent problems in many other areas. The reason is explained further
in note 95079.
I hope this helps You.
mauri -
How is delivery date calculated
How can anyone please explain how delivery date is calculated using forward and backward scheduling
I want to have it broken down into the following steps
for eg for delivery date calculation following dates are used
Material Availabilty Date
Material Staging Date
Pick/pack time
Transportation PLanning date
Loading date
Goods issue date
Transit Date
Delivery Date
Can some one please give me an example and explain wht these dates are
for eg customer needs delivery date on 11/20/2008
how would the system cacluate whether it can meet the delivery date using backward scheduling
and if it doesnt meet how does the system do the forward scheduling
also i am not clear with the following dates
material avaialibilty date
material staging date
transportation date
can some one please explain me all this in detail
Also i have another question at the sales order creation when is shipping point and route determined
coz based on the ATP check only material avaialabilty date is determined and if we have a bacjground job running every 1 hours for atp then immediately when we create a sales order is a route and shipping point determined (just before we save the sales order)
Let me be more clear
Suppose customer representative recevies a order on the phone
he enters sold to party, ship to party ,PO number,delivery date and material number and then hits enter
so at tht time the shipping point and route is determined ?
also when an atp check runs and if the delivery date is not met then the system will propose a new delivery date but if we have a different route configured say for eg overnight so we can meet the delivery date and we want to change this route to overnight what must we do?
should we change the shipping condition in the header?
I am not very sure about the process can you please also explain me this in detail?
ThanksHi there,
When a sales order is logged & the user enters the requested delivery date, system 1st does the backward scheduling date. Pla note that the factory calender mentioned in the shipping point & route plays a crutial role in defining the working days & confirmed delivery date.
For eg: Customer has raised an order on 11/15 & requests delivery on 11/20/2008.
the following times are important in delivery scheduling.
Transit time: maintained in route
Loading time maintained in the shipping point
Transportation planing time maintained in the transportation planning point.
pick pack time maintained in the shipping point.
Material availability time maintained in MM02 --> MRP screens. This is the time that the material can be manufactured (for inhouse producted items) or external processing time (for externallly procured materials like TAS items).
From the requested delivery date 11/20 system does the backward scheduling & determines the following dates:
Goods issue date, loading date, pick pack date, transportation planning date & material availability date.
Time between:
goods issue date - reqested delivery date: transit time
Goods issue date - loading date: loading time
transportation planning date - pick pack date: picking pack time
Material availability date - transportation date: transportation planning time.
Consider that the factory calender has all days of the week as working dates (to make it simple to explain). Also transit time is 3 days, loading time is 1 day,pick pack time is 1 day, material availability time is 3 days.
From 11/20 ussing backward scheduling system determines the following dates:
Goods issue date: 11/17
Loading date: 11/16
Pick pack date: 11/15
System will check if material is available on the 11/15 to start pick / pack. If it is available then system will confirm the reqested delivery date. Else it will check when the material is available. For eg basing on the MRP settings mnaterial is available only on 11/18. So from 18th system does forward scheduling & redetermines all the dates. So pick / pack date is 11/18. Loading date is 11/19, goods issue date is 11/20 & possible delivery date is 11/23. So system will confirm the delivery date on 11/23. This is when complete delivery is required. If partial delivery is allowed, then system will check how much quantity is available on 11/15. Accordingly it will give 2 delivery dates.
In the above example include teh factory calender which will have 5 day week with Fri & Sat as holidays. Accordingly dates will change.
Here replenishment lead time also plays an imp role. Pls refer http://help.sap.com/erp2005_ehp_03/helpdata/EN/6b/2785347860ea35e10000009b38f83b/frameset.htm for further information
Regards,
Sivanand -
Dynamic Date Calculation for Current Date - 1
I am trying to create a variant with a dynamic date calculation attribute.
I am following the instructions as they are posted to the web but I get an error message.
I want to get all data EQ to the current date -1
In the object for selection screen I enter a D for Selection Variable, for Name of Variable I enter an I to include specific values and the option EQ for current date +/- ??? days. Then I enter 1- for the number of days. I have tried to enter this many times and in many ways but it doesn't work. I keep getting this message "lower limit of interval is greater than upper limit"Hi,
Welcome to SDN.
Selection-screen has four values -
SIGN
OPTION
LOW
HIGH
Pass your date value in the option low for the screen.
Sign you have already pass as I and option as EQ.
Regard,
Amit
Reward all helpful replies.
Can you paste your code here.
Message was edited by:
Amit Khare -
Oracle EBS Discoverer as a data source for OBIEE 11g
We are a heavy user of Discoverer workbooks with Oracle EBS. We're moving to OBIEE 11g(11.1.1.3) and have an RPD with both 3rd party and custom content.
I wanted to ask the experts here how I can leverage my Discoverer investment with out a lot of re-work in OBIEE. I briefly looked at the MigrateEUL.exe and it says it can move an EUL to an RPD, but talks about some limitations for complex EULs such as an EBS Apps EUL. Even if it created an RPD, I'm not sure how I can merge my current RPD and this newly gen'd RPD.
I also heard from someone that there is a way to setup Discoverer EUL as a standard data source in OBIEE 11g and consume it directly. I'm looking for a document or blog that explains these steps. Any pointers or experiences with the above is appreciated!!
Thanks.Hi,
For some more details, you can refer to the following document;
http://www.oracle.com/technetwork/developer-tools/discoverer/discoverer-metadata-conversion-assi-128504.pdf
My personal expreriences:
The Metadata Conversion Utility is an accellerator / assistant. It does not provide you with an end product. There is some additional handwork requiered. It could be a risk when you copy an old Oracle Discoverer environment. Shit in is shit out. Last but not least; There is not yet a workbook migration utility.
Cheers,
Daan Bakboord
http://obibb.wordpress.com
Maybe you are looking for
-
I have an apple I'd and a mobile me account. I accidentlly put a gift card in the mobile me account. Can I move it to the apple I d account?
-
I would like to slow down a video clip for a basketball highlight video. Can anyone tell me a simple and quick way to do this in FCE4? thanks. MC
-
I was happy to see portal support the core JSTL taglibs since the apache implementation requires a JSP 1.2/Servlet 2.3 container but I was purplexed as to why only a subset of the the core tags are supported. Most noticably absent is the out tag, as
-
Can't get to desktop and can't switch it off anymore
Hello, all of a sudden my I-phone stays in the phone mode and I can't get it back to the main menu. I can't either switch it off. Does anyone know what's happening and how to solve this? Thanks
-
Basic Database connection and run querry.
Hi, I pretty new to java, So if any can help, please do. All i want to do is connect to a sql database and run a querry, return the results and then output them as XML. I have no idea where to start! Please Help.