Problems in query result with infoset and timedep infoobject
Hi,
I have the following situation:
infoobject ZEMPLOYEE timedep
Infocube 0C0_CCA_C11 (standard cost center/cost element postings)
-> infoset with infoobject and infocube linked with outer join
My query should show all active employees in one month without any posting in the infocube.
My testdata looks like this:
pernr date from date to cost center
4711 01.01.1000 31.12.2002
4711 01.01.2003 31.01.2009 400000
4711 01.02.2009 31.12.9999
That means the employee is only active between 01.01.2003 and 31.01.2009.
I expect the following result in the query with key-date 31.01.2009:
4711 01.01.2003 31.01.2009 400000
I expect the following result in the query with key-date 01.02.2009:
no result
-> because the employee is not active anymore, I don't want to see him in the query.
My query delivers the following result:
4711 01.02.2009 31.12.9999
The first and the last entry in master data is automatically created by the system.
I tried to exclude the not active employees by selection over cost center in the filter (like cost center between 1 and 9999999, or exclude cost center #). But unfortunately the filter selection does not work, because obviously the attributes are not filled in the last entry.
Is there anyone who can tell me how I can exclude the last entry in the master data in the query?
Any help is much appreciated! Points will be assigned!
best regards
Chris
HI,
problem is that I can't use employe status in this case, beacuse for any reason the people don't use it.
I have also tried with exceptions and conditions, but the attributes ar enot filled, so it seems that nothing works.
Do you have any other suggestions?
Thanks!
best tregards
Chris
Similar Messages
-
Script for Save Options- Save Query Results with document
Hi,
Is there any javascript for Save query results with document in save options? If so where can i find that?
Thanks
Kalaihi guys,
I found the answer.The following example shows you how to save the results with the query
section named “SalesQuery”.
ActiveDocument.Sections["SalesQuery"].SaveResults=true -
Inconsistent results with localtimestamp and current_timestamp
Running XE on Windows XP with the system timezone to GMT rebooted, restarted XE)
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
I'm getting incorrect and inconsistent results with current_timestamp and localtimestamp:
With SQL, localtimestamp computes the wrong offset (appears to use 1987-2006 DST rules):
select
dbtimezone
, sessiontimezone
, current_timestamp
, current_timestamp + numtodsinterval(18,'day') as current_timestamp18
, localtimestamp
from dual;
+00:00
US/Eastern
17-MAR-10 10.27.17.376000000 AM US/EASTERN
04-APR-10 10.27.17.376000000 AM US/EASTERN
17-MAR-10 09.27.17.376000000 AM
however, in PL/SQL, both current_timestamp and localtimestamp return the wrong hour value, and adding 18 to current_timestamp shows it is using 1987-2006 DST rules (1st sunday of april)/ note that this happens in straight PL/SQL and in embedded SQL (same results selecting from tables other than DUAL):
begin
for r1 in (
select
dbtimezone
, sessiontimezone
, current_timestamp
, current_timestamp + numtodsinterval(18,'day') as current_timestamp18
, localtimestamp
from dual
loop
dbms_output.put_line('SQL dbtimezone = ' || r1.dbtimezone);
dbms_output.put_line('SQL sessiontimezone = ' || r1.sessiontimezone);
dbms_output.put_line('SQL current_timestamp = ' || r1.current_timestamp);
dbms_output.put_line('SQL current_timestamp +18 = ' || r1.current_timestamp18);
dbms_output.put_line('SQL localtimestamp = ' || r1.localtimestamp);
end loop;
dbms_output.put_line('dbtimezone = ' || dbtimezone);
dbms_output.put_line('sessiontimezone = ' || sessiontimezone);
dbms_output.put_line('systimestamp = ' || systimestamp);
dbms_output.put_line('current_timestamp = ' || current_timestamp);
dbms_output.put_line('current_timestamp +18 = ' || (current_timestamp + numtodsinterval(18,'day')));
dbms_output.put_line('localtimestamp = ' || localtimestamp);
end;
SQL dbtimezone = +00:00
SQL sessiontimezone = US/Eastern
SQL current_timestamp = 17-MAR-10 09.29.32.784000 AM US/EASTERN
SQL current_timestamp +18 = 04-APR-10 10.29.32.784000000 AM US/EASTERN
SQL localtimestamp = 17-MAR-10 09.29.32.784000 AM
dbtimezone = +00:00
sessiontimezone = US/Eastern
systimestamp = 17-MAR-10 02.29.32.784000000 PM +00:00
current_timestamp = 17-MAR-10 09.29.32.784000000 AM US/EASTERN
current_timestamp +18 = 04-APR-10 10.29.32.784000000 AM US/EASTERN
localtimestamp = 17-MAR-10 09.29.32.784000000 AM
dbtimezone = +00:00
sessiontimezone = US/Eastern
systimestamp = 17-MAR-10 02.16.21.366000000 PM +00:00
current_timestamp = 17-MAR-10 09.16.21.366000000 AM US/EASTERN
current_timestamp +18 = 04-APR-10 10.16.21.366000000 AM US/EASTERN
localtimestamp = 17-MAR-10 09.16.21.366000000 AM
is this a known bug?
is there a patch or a work-around for XE?
are other datasbase versions affected?Can't patch XE, unfortunately it comes with pre-2007 DST rules.
There is a metalink note describing how to fix the DST changes, and while it's not really a "supported" method, neither is XE- if you can get updated timezone files from a later patch set for the same release, 10gR2, on the right operating system, shutdown/startup the database the updated DST rules will be in place. The timezone files are in $ORACLE_HOME/oracore/zoneinfo.
Another unfortunately, any values already stored in the database using timestamp with local timezone datatypes for the affected period of the DST changes won't be correct, i.e. there is no 2010-03-14 02:01 (?) but with older timezone rules in place that would be a valid timestamp. The data has to be saved before updating the timezone file, and re-translated to timestamp w/local tz datatypes after the update.
IMHO storing literal timezone info isn't an ideal practice, let the client settings do the time interpretation, time is always changing. Its the interpretation of the time that gets changed. From time to time. :( -
Query Result with pagination problem
I have a region that has a search field with a "Go" button which runs a report based on a SQL Query(PL/SQL function body returning SQL query). Works great and displays the default of 15 rows with a pagination scheme of "Row Ranges X to Y of Z(with pagination)". The problem is that when I click on the "Next rows ... " link the screen goes blank and I have to click on the "Go" button before it displays the next 15 rows. How do I get around this problem of having to click on the "Go" button?
thanks
JohnHi John,
I am also facing the same problem. Any solution has been found out by you.
If so, please give it in the forum know.
Thanks in advance
kavitha l -
Problem Displaying Query Result
I have been working through David's book 'Dreamweaver CS5 Training from the Source' and am attempting to adapt the tutorials for my own ideas.
My problem, I believe is in displaying the results of a database query. I want to display to the user a list of group names they are associated with.
The query looks like this:
$id = "$identity->user_id"; //logged in user
$sql = mysql_query("SELECT name
FROM groups
INNER JOIN user2group USING (group_id) // reference table contains user_id and group_id
WHERE user_id = $id
ORDER BY name")or trigger_error ( mysql_error ( ) );
while($row = mysql_fetch_array($sql)){
$groups = $row['name'];
I attempt to display the results with:
<?php echo "$groups"; ?>
I have also tried:
$sql = mysql_query("SELECT name
FROM groups
INNER JOIN user2group USING (group_id) // reference table contains user_id and group_id
WHERE user_id = $id
ORDER BY name")or trigger_error ( mysql_error ( ) );
while($row = mysql_fetch_array($sql)){
$groups = array();
$groups[] = $row['name'];
and display with:
<?php echo implode('<br />', $groups); ?>
In both scenarios I get only one record displayed. (there is more than one record). The records seem to be available to display because if I change the ORDER command I get a different result.
Any help is much appreciated.
Thank youThank you so much for the explanation of the while loop it was extremely helpful. I was able to get my results to display correctly by including the echo statement in the while loop.
I spent several hours trying to use the array_push command with no success. I did explore the link you provided, but found many of the examples people gave to be very complicated. I would really like to start working with this command, if you would be able to provide me with an example based on my query and I can see it working I can start varying it to some of the more complicated methods given in the link.
Thank you again for your help. -
Hi- I occasionally come across this issue when I run any query in SQL Developer (3.0.02), the Query Result tab shows a bold red Exclamation point and the display grid is blank. It says "Fetched 50 rows in 0.235 seconds" but the results aren't displayed. There is nothing wrong with the queries so it seems like some type of display problem but I can't figure out how to fix it. Like I said, it doesn't happen all the time and I run the same saved queries so I know it's not a problem with the actual queries. Has anyone ever seen or heard of this before?
Hi,
Sounds like you are using an early adopter version of 3.0. Why not upgrade to the latest production release (3.1.07.42)?
A similar situation is described in this old thread:
Re: Randomly not getting query results
Regards,
SQL Developer Team -
Problems exporting query results to Excel
Hi!
I hope you can help me
We have a web template that uses the class ZVIG_ART that we created in the transaction SE24, this class display some label in the query
results, the problem is when we export this report to excel the label disappear. The numbers indicates the stock of the item and the label N/V indicates that the item is not in the store's catalog. Another case is that we can have N/V items but with stock, for example the ITEM2 of the STORE3 with the label N/V-1piece. How can we export this label to EXCEL?
| STORE1 | STORE2 | STORE3
ITEM1 | 10 PIECES | N/V | 20 PIECES
ITEM2 | 11 | 20 | N/V-1PIECE
Thanks in advanced.
Veronica B.Hi Mari,
Thanks for the reply.
I can understand the resason for not being able to change the Posting Date. But what are the reasons for not being able to change the Document Date? What is the fiscal reason for not being able to change the Document Date? Please provide an example. Reversing the document doesn't work in this case as the SQ01 report would still include the incorrect date.
Regards,
Gary -
Numbering query results with a line number in SQL*Plus
Doesn't it stand to reason that in SQL*Plus there would be a way to number each query results sequentially with line numbers starting at 1 to n -- something option like from a SET command? I'm not talking about linesize.
There's a column rownum the engine adds into the result sets, just add it to the select list. Can use it to limit the result set (with some limitations) i.e.:
select rownum, ... from ... where rownum <= 100
Can't use ">=", that condition will never be met but a subset could be used:
select * from ( select rownum as linenr, tab1.* from ... ) where linenr between 10 and 20 -
Problem processing RAW images with Lion and 3.1.3
Images that have "This photo was adjusted using an earlier version of Apple's RAW processing. Attempting to send to a plug-in or Photoshop results in a dialog "Editing Error This image cannot be rendered for editing because Aperture does not support the image format." Images that were previously processed with the current version of RAW processing work correctly.
There is another discussion for problem with raw and the new 10.7.3.1 : my Raw from Panasonic GH2 are green and Aperture says : treatment with old version
I find the solution to correct my RAW : they are green because of the bad WB applied by Aperture.
I put here the solution but I have to correct manually and ask to treatment in the RAW windows for each picture. If it doesn't work, I correct manually the WB.
https://discussions.apple.com/thread/3942768?start=0&tstart=0
We have to report this bug to Apple. -
Incorrect query results with conformResultsInUnitOfWork
Hi,
has anybody experienced this:
Take two classes User and Group
Group has a 1:n Mapping to User (attribute users)
User has a 1:1 Mapping to User (attribute partner).
Following query returns too many objects
User user1 = someUserObject;
ReadAllQuery readAllQuery = new ReadAllQuery(Group.class);
Expression e = builder.anyOf("users").get("partner").equal(user1);
readAllQuery.setSelectionCriteria(e);
readAllQuery.conformResultsInUnitOfWork();
Vector vector = (Vector) unitOfWork.executeQuery(readAllQuery);
It returns
- the correct Group object as determined from the sql query +
- any other objects of the same class that are fully instantiated (users is instantiated and for each user, partner is instantiated), even if they don't conform to the expression.
The same query works properly ;
- without conformResults
- or if the other objects are not fully instantiatedHi,
we need an workaround badly and the support is moving at exactly the rate I feared it would.
So I thought, since we only hit this bug with existing objects and we use conformResultsInUnitOfWork because we want to find the newly created objects, is there a way to get
- the SQL Query results
+ any new objects that conform to the query
We still might get new objects that don't conform to the query (this is the bug) but I'll worry about that later if it happens.
My first attempt at a solution looks like this:
1. turn off conformResults
2. manually add all new objects that conform to the query
I had to guess a little for 2, since I don't know what exactly toplink does to select the "conform" objects.
private static List findConformNewObjects(UnitOfWork unitOfWork, ReadAllQuery query) {
List result = new ArrayList();
Class resultClass = query.getReferenceClass();
Expression selectionCriteria = query.getSelectionCriteria();
Enumeration enumeration;
IdentityHashtable newObjectsCloneToOriginal = unitOfWork.getNewObjectsCloneToOriginal();
if (newObjectsCloneToOriginal != null && newObjectsCloneToOriginal.size() > 0)
enumeration = newObjectsCloneToOriginal.keys();
while (enumeration.hasMoreElements())
Object o = enumeration.nextElement();
if (resultClass.isInstance(o))
if (selectionCriteria != null && selectionCriteria.doesConform(o, unitOfWork, null, query.getInMemoryQueryIndirectionPolicy()))
result.add(o);
return result;
Does this look OK to you? Is there a better way to do it?
Ana -
Copy BW query results with formatting
When copying a query's results to another workbook, the formatting (namely coloring) changes. Is there any way to copy the query results to a new workbook and keep the exact same formatting as in original query?
One way to do this would be to copy the worksheet with the results to the other workbook, as follows:
Edit --> Move or copy sheet... --> change "To book:" to the 2nd workbook --> check "Create a copy" option --> OK
After doing that, you can cut & paste from the copied worksheet to other worksheets in the workbook, if necessary, and the formatting will be maintained.
Hope this helps...
Bob -
Same Query Result via jdbc and sqlnet
Hi,
i've got a strange Problem, i think.
i submitted a query via sqlplus console and than via a java application using jdbc and results are not the same.
is this in some cases a known issue?
regards
guido
Edited by: xia0bo on Aug 19, 2009 2:39 AM
sorry, i've solved the problem. there was an error in my reporting engine.
regards
guidoxia0bo wrote:
Hi,
i've got a strange Problem, i think.
i submitted a query via sqlplus console and than via a java application using jdbc and results are not the same.
is this in some cases a known issue?
regards
guidoHighly unlikely! You could try to monitor/trace the session on the database and see if the same one was executed. -
Quality Center 11 (ALM) Query - Integration with Subversion and Jenkins
Hi OHPCPaT Forum,
Are there any restrictions to enabling the QC integration with Subversion and Jenkins when the QC server is a SaaS cloud instance? Is there any additional config I should be aware of?
Thanks in anticipationHi,
Yes all the users are facing the issue. Please find more details for the issue.
Currently we are upgrading Quality Center 10.0 to 11.0 with HP Enterprise Integration module for SAP applications. The project successfully upgraded from QC 10.0 to 11.0 but there are some error popup for the project for which Application Module and Enterprise Integration for SAP applications Version 2.6 was enabled
Quality Center Details:
HP Application Lifecycle Management 11.00
ALM patch level: 07
Quality Center 11.00 Enterprise Edition
Component Build
OTA Client 11.0.0.6051
User Interface 11.0.0.6051
WebGate Client 11.0.0.6051
Test Run Scheduler 11.0.0.6051
Execution Flow 11.0.0.6051
Site Administration Client 11.0.0.6051
Extension Version
Enterprise Integration for SAP applications 2.6.0.3232
Sprinter 11.0.0.6051
Application Model 2.6.0.917
Installation Steps followed:-
1.Installed HP ALM
2.Installed Patch Service Pack 2 (Patch 2,3,4)
3.Installed Patch 6
4.Installed Patch 7
5.Installed the Extensions HP Enterprise Integration module for SAP applications using Extension Deployment Tool by following the steps provided in the Addin Page
6.Created new project in HP ALM
7.Login to the project (no issue)
8.Enabled the Project Extensions
9.Login to the project (able to access the project but error message is popup when we access Test plan and Defect module)
Note: There is no error when we access the project for which the HP Enterprise Integration module for SAP applications EI not enabled. QC 11.0 is not integrated with any tools.
Let me know is there any step we missed or we need to do any manual steps we need to do before enabling EI -
Incorrect query result with Top N condition and two structures
Hi,
I have created a query on a FI-GL infocube with the characteristic 0BUS_AREA in rows and two structures in columns. The first structure has two items / selections (each item is a selection of several GL accounts). The second structure has two items (the first one contains the key figure 0BALANCE for the current period and the second item is a formula that calculates the absolute value of the first item. The first item is hidden). The (simplified) result looks like this (sorry, not very pretty!):
Business Area Clients Clients fae
Business Area1 10 15
Business Area2 20 7
Business Area 3 15 8
Overall result 45 30
I then added one condition using the Top N operator. The condition is defined for all the elements of the structures. When I execute the query, I sometimes obtained an incorrect number of Top N records selected. The problem seems to occur when N is greater than the number of available Business Areas for an element of the structure.
For example, if N = 8 and data only exists for 5 Business Areas for the structure element Clients, I may end up with 10 Business Areas for the second structure element Clients fae when I only expect 9 (i.e. the top 8 Clients fae + 1 of the Top 8 Clients for which there is no data under Clients fae).
Has anybody encoutered that kind of problem ?
Many thanks.
François.Pascal,this is a known behavior with conditions.When you apply condition it just hide the extra rows and it does not impact the result row.So your result row actually shows the value irrespective of the condition you apply.
Now with the help of local functions like calculate result as summation you can show the correct sum after applying the condition but when you try to use that result in some calculation then it takes the original value thereby discarding the calculated value.
Same is happening in your case as well.Its taking the original value i.e 350 and not the calculated sum after condition i.e 270.
Hope this helps.
Regards,
AL -
Hi All,
I have created a query and there is a keyfigure "Amount" and characteristics are company code and calender day (key date).
In result it should display total amount on keydate(user input)...it is displaying result if there is only single entry for amount but if there are many entries for amount on a particular day then it is showing * in amount not the total of amount.
Please suggest what can be the problem ...
Regards
shwetaYou have chosen a currency field which has multiple currencies ie 1000GBP and 2000 EUR - hence * for the total
Include the unit of currency in your query and supress result rows for the user - then you will get a total per currency code
Or of course you coudl nodim the result and add that up (ie in the exampel above you will get 3000
edit: sorry double post with Praveen above
Edited by: Simon Turnbull on Dec 30, 2008 2:10 PM
Maybe you are looking for
-
Performance tuning of BPEL processes in SOA Suite 11g
Hi, We are working with a customer for performance tuning of SOA Suite 11g, one of the areas is to tune the BPEL processes. I am new to this and started out with stress testing Hello World process using SOAPUI tool. I would like help with the below
-
Error message "don't show me this message again", I need it back!!!
Stupidly I click "don't show me this message again" when itunes couldn't locate my music on an external hard drive. Apple help couldn't helped, so does anyone know how I can get this error message back so I can so itunes where to locate my music.
-
Remove duplicate entries from dropdownlist in web dynpro abap
How to remove duplicate entries from dropdownlist in web dynpro abap? Can someone please help me I have maintained the data in the z table wherein the records of particular fields are repeated but when i show that record in the Web Dynpro application
-
I'm trying to upload my photos through Kodak gallery's new beta version. When I find my iphoto folder it is now available to be highlighted? i.e I can't chose photos from within. Thank you
-
FireFox has stopped showing the PDF/MP3 dialog option box
Starting today when I want to open or download a PDF or MP3 file the dialog box that usually pops up in the right-hand corner of the browser window is no longer appearing. Now it is taking me to a "enter to save as" page. How do I bring back the dial