Hierarchies in Queries
I wnat to find out in which BEx queries a particular hierarchy is being used. What is the best way to get this information .
Any help appreciated.
Thanks
Arvind
Hi Arvind,
When running SE38 -> ANALYZE_RSZ_TABLES you have "Table RSZELTPROP".
There you can check the "Where-used list for Hierarchy Nodes" and choose them to check.
At
Nadja Xavier
Similar Messages
-
Where-used list for hierarchies in queries
Hi all,
has anybody an idea, how to find out, in which queries an external hierarchy is used? (BW 3.5)
Thanks in advance!
Regards,
Carsten BuckenHi Carsten,
you can goto the metadata repository. Search for the object on which the hierarchy is built and you get a list of all queries using the infoobject.
Additionally you can search for variable built on/for that hierarchy and you get a list of queries using that variable.
At least this is not exactly what you want, but I think you will get almost all queries you are looking for.
kind regards
Siggi -
BW hierarchies issue with BOBJ Reporting tools
Hi All,
Brief about the requirement:
Our client was using Mainframe and other tools for their reporting. Now as they have planned to go for SAP, purchased SAP BW 7 and SAP BOBJ XI 3.1 for warehouse and reporting purposes.
Initial Road map planned for implementation was
o to use Crystal for operational and formatted reporting
o to use WebI for Ad hoc and interactive reporting
o to use Xcelsius for Dashboards
Once we started analysing the requirements, we observed that client requires hierarchies extensively for reporting and they donu2019t want to compromise in that for reporting. At this situation we have explored the options and came to know from the SAP sites that BO got limitations in case of BW hierarchies. But we not able to articulate the what is the exact issue. Is it with only WebI or Crystal also?
What we have articulated is we cannot report the hierarchies in BO in terms of nodes - > Sub nodes -> sub nodes instead we can do as fixed columns. Please add me if i am missing anything else.
And also please let us know options. Options that we were thinking are Implement with BO XI 3.1 considering Advanced analysis tool then upgrade to BO XI 4.1.
Please suggest us, what is the BW & BO hierarchy issue and right tools to use.
Thanks & Regards,
BalaOur client uses XI 3.2 but is experiencing issues with Hierarchical BEX queries returning blanks - the mdx is fine - just webi that seems to have a problem and I'm also trying to determine in exactly which instances this occurs.
XI 4.x supposedly resolves mots issues but here again details are not known.
I.e. hopefully someone can point to an info source that describes in more detail what issues are likely to occur re hierarchies and webi. -
Drill down in report based on two queries
Hi,
I have a problem with drilling down in report which is based on two queries.
Queries are based on different universes.
Both queries contains almost the same dimensions but different measures.
In my report is a calculated measure based on measures from both queries.
In both universes are the same hierachies.
When I drill down in report for the first time I have to chose hierarchy but then data are filtered to the choosen value only from one query , data from second query are not filtered and the values of calculated measure are incorrect
How can I solve this issue without adding dimensions belonging to the hierarchies to queries.
Please help.
Regards.
MGHi MG,
First of all, what do you mean by "Both queries contains almost the same dimensions but different measures"
"Almost" is not a good word in the IT world, especially when trying to merge/join tables. You need to be exact.
That sounds like a possible reason for the problem.
I am also not sure about your question:
"How can I solve this issue without adding dimensions belonging to the hierarchies to queries."
You may have to add those dimensions to the queries. Why would you not want to?
Thanks -
Overview City Model, Dashboards, Reports BW and Ad-hoc reporting
Hello everyone,
We have different informations views from CCLM.
Overview City Model, Dashboards, Reports BW and Ad-hoc reporting.
I would like to know Which cubes and tables are Involved in each one of theses reports.
I know Ad-hoc reporting (RAGS_CC_REPORTING) use the next tables: AGS_CC_QUALITY, AGS_CC_OBJECTS, AGS_CC_ATTRIB, AGS_CC_VERSION. AGS_CC_LAST_USG, AGS_CC_USAG, AGS_CC_SIMIL, any more?
About City Model, I think It use table AGS_CC_CRIT and AGS_CC_QUALITY and Cube 0SM_CCITY, but I am not sure if its totally true or there are more.
About DashBoards I think it use Cube 0SM_ESRSG, cube 0SM_CCLM ??, table AGS_CC_QUALITY ?? but I am not sure....
The goal is to know, for example ATC quality in table AGS_CC_ATC_SYS you can´t view in the ad-hoc reporting...
thanks and regards.
Gerardo.Our client uses XI 3.2 but is experiencing issues with Hierarchical BEX queries returning blanks - the mdx is fine - just webi that seems to have a problem and I'm also trying to determine in exactly which instances this occurs.
XI 4.x supposedly resolves mots issues but here again details are not known.
I.e. hopefully someone can point to an info source that describes in more detail what issues are likely to occur re hierarchies and webi. -
Does anyone have experience with reporting on Mainframe data with OBIEE? My thoughts are that DB2 data should not be an issue with a DataDirect DB2 driver. Is this correct? Also, how about non-releational data like IMS and VSAM fiiles?
Thank you for any suggestions.
Jeff DavisOur client uses XI 3.2 but is experiencing issues with Hierarchical BEX queries returning blanks - the mdx is fine - just webi that seems to have a problem and I'm also trying to determine in exactly which instances this occurs.
XI 4.x supposedly resolves mots issues but here again details are not known.
I.e. hopefully someone can point to an info source that describes in more detail what issues are likely to occur re hierarchies and webi. -
Help needed in understanding the concept of hierarchical queries
I really need help in this matter. I have a flafile containing about 4000 rows. It is from my supplier, it's structure is as follows:
create table Flatfile
(Pgroup varchar2(30),
Pclass varchar2(30),
Manufacturer varchar2(30),
Article varchar2(30),
Price Number(6,2));
Insert into Flatfile Values
('Application Software','Database Software','Oracle','Oracle 10G',115);
Insert into Flatfile Values
('Application Software','Database Software','Microsoft','MS SQL Server 2000',200);
Insert into Flatfile Values
('Application Software','Spreadsheet Software','Microsoft','Excel',100);
Insert into Flatfile Values
('Monitor','15"','Acer','Acer 15"" TFT superscreen',199);
Insert into Flatfile Values
('Monitor','15"','Sony','Sony R1500 flat',225);
Insert into Flatfile Values
('Monitor','17"','Philips','Philips Flatscreen',250);
Insert into Flatfile Values
('Monitor','19"','Viewsonic','Viewsonic PLasma Monitor',275);
Insert into Flatfile Values
('Processor','AMD','AMD','FX-55',600);
Insert into Flatfile Values
('Processor','Intel','Intel','P4 3 GHZ',399);
My goal is to make a hierarchical query with the start with and connect by clauses. From what I have read is that I need to normalize the data of the flatfile.
How do I achieve a table which I can query so that the query will represent the hierarchy that exists. Namely
Pgroup
++Pclasse
Application Software
++Database Software
++Spreadsheet Software
So a 2-level hierarchy. I'd like to understand this simple concept first. I built on the knowledge that I gain. So the questions are:
1.What do I need to do to make the table so that I can use a hierarchical query on it?
2. How should the query syntax be?
3. Is it also possible to get the data in the hierarchical query sorted asec?
I would only like to use the simple structures of the start with and connect by clauses first. I've read there are some new additions to 10G. The problem with the examples used by the tutorials is that the tables are already made so that they are suitable for hierarchical queries. I hope to understand it by this example. And take it a step further.
Sincerely,
PetePrimarily hierarchy query serves to process tree-like structures which RDBMS simulates using through parent-child relation, often in a single table (see famoust
EMP table where employee can have the manager who is an employee at the same time).
In your case it could look like:
SQL> select pgroup, pclass from flatfile;
PGROUP PCLASS
Application Software Database Software
Application Software Database Software
Application Software Spreadsheet Software
Monitor 15"
Monitor 15"
Monitor 17"
Monitor 19"
Processor AMD
Processor Intel
Application Software
Monitor
Processor
12 rows selected.
SQL> select decode(level,1,pclass,' ' || pclass), Manufacturer from flatfile
2 start with pgroup is null
3 connect by prior pclass = pgroup
4 /
DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
Application Software
Database Software Oracle
Database Software Microsoft
Spreadsheet Software Microsoft
Monitor
15" Acer
15" Sony
17" Philips
19" Viewsonic
Processor
AMD AMD
Intel Intel
12 rows selected.The hierarchy syntax is described completely in the documentation including
LEVEL and PRIOR keywords.
As for the ordering question you can use siblings ordering:
SQL> select decode(level,1,pclass,' ' || pclass), Manufacturer from flatfile
2 start with pgroup is null
3 connect by prior pclass = pgroup
4 order siblings by 1 desc
5 /
DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
Processor
Intel Intel
AMD AMD
Monitor
19" Viewsonic
17" Philips
15" Acer
15" Sony
Application Software
Spreadsheet Software Microsoft
Database Software Oracle
Database Software Microsoft
12 rows selected.Rgds. -
Alternative for Hierarchical Queries
Hi all,
Is there any other way to implement the Hierachical Query in Oracle. Let us assume the following example of the Scott.emp Table. The output of the table must be in a Hierarchical manner as follows :
ORG_CHART EMPNO MGR JOB
KING 7839 PRESIDENT
JONES 7566 7839 MANAGER
SCOTT 7788 7566 ANALYST
ADAMS 7876 7788 CLERK
FORD 7902 7566 ANALYST
SMITH 7369 7902 CLERK
BLAKE 7698 7839 MANAGER
ALLEN 7499 7698 SALESMAN
WARD 7521 7698 SALESMAN
MARTIN 7654 7698 SALESMAN
TURNER 7844 7698 SALESMAN
JAMES 7900 7698 CLERK
CLARK 7782 7839 MANAGER
MILLER 7934 7782 CLERK
The above structure can be achieved using the following implementation by using the clauses namely CONNECT BY PRIOR, LEVEL and START WITH :
SELECT LPAD(' ',2*(LEVEL-1)) || ename org_chart,
empno, mgr, job
FROM emp
START WITH job = 'PRESIDENT'
CONNECT BY PRIOR empno = mgr;
The above query works fine without any issues.
But is there any other way to implement the above logic without using the above hierarchical query clauses.
Please help me on the above.
Thanks in advance.
Regards
RajThanks.
Why I require this implementation is we have an software which runs both on Oracle and SQL Server, we accomplish the same very easily in Oracle by using the Hierarchical Queries already available in Oracle. But there is no such predefined keywords to implement in SQL server. That is the purpose of the above.
When we can achieve the same in a alternative way in Oracle, the same I feel can be implemented in SQL server.
Raj
Not without dropping into PLSQL, but this is not easy, and why bother, if your query works OK? -
I've a table with these values.
ID Name Parent_ID
0 Organization1 null
1 Organization2 0
2 Organization3 0
3 Organization4 0
4 Organization5 1
5 Organization6 1
6 Organization7 2
7 Organization8 2
8 Organization9 4
9 Organization10 4
10 Organization11 6
11 Organization12 8.
Need to write a sql query in Oracle 9i to get the Hierarchy of Organization12:
The output should be:
Organization1
Organization9
Organization5
Organization2
Organization1.
The query should be dynamic. If I give Organization11, I should get the hierarchy of Organization11.
Organization1
Organization7
Organization3
Organization1.
Could anyone please help me in getting this output.See the followings links for hierarchical queries:
http://philip.greenspun.com/sql/trees.html
http://www.psoug.org/reference/connectby.html
--Manohar -
How to create hierarchies in Bex queries?
Hi All,
I am new to query designer tool,
can you please help me how to create hierarchies in Bex queries using query designer tool?
Thanks in advance...Hi,
directly you can't create hierarchy at bex level.
First you have to maintain hierarchy data source at source or bw side, based on your needs.
Later you can load data to hierarchy, after that at bex level you can activate hierarchy options to related info object properties.
To maintain hierarchy we need to enable hierarchy options at related info object(RSD1, hierarchy tab, select with hierarchies) maintenance level.
For example: info object - 0GL_ACCOUNT and you need hierarchy structure on gl account.
For that we need to have hierarchy data source and will load data from ecc.
Later we can develop reports on gl account in hierarchy fashion.
On what object infoo bject you want create hierarchy report and have loaded hierarchy data?
Thanks -
Map the hierarchical queries pseudo column level
Is it possible to map the hierarchical queries pseudo column level in the Workbench?
I have an object for which I use connect by queries. I would like to map the pseudo column level. is this possible? if yes, how
If the mapping is not possible how do I get the level using a report query?
Is there any other way to retrive level?
Thanks
Edited by: amehta5 on May 4, 2010 11:52 AM
Edited by: amehta5 on May 4, 2010 11:55 AMThanks James, appreciate your feedback.
I tried report.addItem("level", builder.getFunction("LEVEL"));
but the query TopLink generates has LEVEL() and it errors out.
Code -
Expression startExpr = null;
Expression connectBy = builder.get("manager");
Vector<Expression> order = new Vector<Expression>();
order.addElement(builder.get("name"));
report.setHierarchicalQueryClause(startExpr, connectBy, order);
report.addAttribute("name");
report.addItem("level", builder.getFunction("LEVEL"));
Query generated by TOpLink - SELECT NAME, ID, LEVEL() FROM EMPLOYEE WHERE (EMPLOYEE_TYPE = ?) CONNECT BY PRIOR EMPLOYEE.MANAGER_ID = EMPLOYEE.ID ORDER SIBLINGS BY NAME
bind => [M]
Edited by: amehta5 on May 6, 2010 6:11 AM -
Hierarchical queries (mother, father,...)
Hi guys,
a have a problem that I think it can be solved whit hierarchical queries.
the question is like this. I have a person ...and each person has a mother and a father. (the mother/father may be or not be in my table)
so my table configuration will be like:
create table person
(id number,
name varchar2 (100),
mother_id number,
father_id number
the questions I need to answer are like:
1. return all persons that have all grandparents (or grand grand parents) in this table.(including parents). so entire genealogic tree is intact
e.g. if the grandfather is not in the table I will not display that person we cannot display that person
I have something like:
insert into person values (1,'alin', 4, 5); ----id 1 has parents in my table: 4 the mother, 5 the father
insert into person values (4,'mother_1', 8,null); ----id 4 has only her mother in table
insert into person values (5, 'father_1',9,10);--id 5(who is father of 1) with 9 as mother and 10 as father
insert into person values (8, 'grant',null ,null );
insert into person values (9, 'aaa',11,12);
insert into person values (10,'bbb',13,14);
insert into person values (11,'ccc',null ,null);
insert into person values (12, 'ddd',null ,null);
insert into person values (13,'eee',15,16);
insert into person values (14,'fff',17,18);
insert into person values (15,'ggg',null ,null);
insert into person values (16,'hhh',null ,null);
insert into person values (17,'iii',null ,null);
insert into person values (18,'jjjj',null,null);
in this configuration my select should return id 5 with his relatives and id 10 with this relatives because only them have all relatives in table:
id | name | mother | father | mather_mother (mm) | father_mother (fm) | mf | ff
5 | 'father' | 9 | 10 | 11 | 12 | 13 | 14
10 | bbb | 13 | 14 | 15 | 16 | 17 | 18
and second select ..if I input an id..lets say 1 to get the same result..like:
id | name | mother | father | mather_mother (mm) | father_mother (fm) | mf | ff
1 | 'alin' | 4 | 5 | 8 | null | 9 | 10and maybe at some point I want to show level 3(with grand grand parents)
please se the attached picture:
link: [http://picasaweb.google.com/alinbor/Tree#5428860555382426514]
ThanksHi,
Here's a revised version of the String Aggregation approach.
For :level_cnt = 3, it produces this output:
ROOT_ID ROOT_NAME ANCESTORS
M F MM FM MF FF
5 father_1 9 10 11 13 12 14
10 bbb 13 14 15 17 16 18The last part, starting with UNION, gets the "header " row.
The first part, before UNION, is exactly what I posted yesterday.
WITH got_tree AS
SELECT id
, name
, CONNECT_BY_ROOT id AS root_id
, CONNECT_BY_ROOT name AS root_name
, LEVEL AS level_num
, CASE
WHEN id = PRIOR mother_id
THEN 'M'
ELSE 'F'
END AS mf_flag
, SYS_CONNECT_BY_PATH ( CASE
WHEN id = PRIOR mother_id
THEN 'M'
ELSE 'F'
END
) AS gender_path
FROM person p
CONNECT BY ( id = PRIOR mother_id
OR id = PRIOR father_id
AND LEVEL <= :level_cnt
, got_sa_num AS
SELECT t.*
, ROW_NUMBER () OVER ( PARTITION BY root_id
ORDER BY level_num
, mf_flag DESC
, gender_path DESC
) AS sa_num
FROM got_tree t
SELECT root_id
, root_name
, REPLACE ( SYS_CONNECT_BY_PATH ( TO_CHAR (id, '9999')
) AS ancestors
FROM got_sa_num
WHERE sa_num = POWER (2, :level_cnt) - 1
START WITH sa_num = 2
CONNECT BY sa_num = PRIOR sa_num + 1
AND root_id = PRIOR root_id
UNION
SELECT NULL AS root_id
, NULL AS root_name
, REPLACE ( SYS_CONNECT_BY_PATH ( LPAD ( SUBSTR ( REPLACE ( gender_path
, 2
, 5 -- 1 + number of '9's in TO_CHAR, 13 lines up
) AS ancestors
FROM got_sa_num
WHERE sa_num = POWER (2, :level_cnt) - 1
START WITH sa_num = 2
CONNECT BY sa_num = PRIOR sa_num + 1
AND root_id = PRIOR root_id
ORDER BY root_id NULLS FIRST
; -
hi,
What is the usage of 'Connect' , 'Prior' in hierarchical queries and
what does it mean??http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/queries003.htm
Cheers
Sarma. -
Hierarchical queries no longer working with 11gr2
Hi, next hierarchical query:
SELECT REF(f) FROM STORE1.FOLDER_TABLE f
WHERE LEVEL > 1 START WITH REF(f) = ? CONNECT BY PRIOR f.key$ = f.header$.parentKey
used to work fine with 11gr1, while with 11gr2 it raises ORA-00904: "F": invalid identifier.
This seems to occur for all hierarchical queries.Here's a simple script for SQL developer:
CREATE OR REPLACE TYPE Test_type AS OBJECT (
key RAW(16),
parentKey RAW(16))
CREATE TABLE Test_table OF Test_type (
key DEFAULT SYS_GUID() PRIMARY KEY)
OBJECT IDENTIFIER IS PRIMARY KEY;
SELECT REF(f) FROM Test_table f
START WITH f.parentKey IS NULL
CONNECT BY PRIOR f.key = f.parentKey
Returning ref(f) raises ORA-00904: "F": invalid identifier.
Returning f.key succeeds. -
Hierarchical Queries / Rowsets via JDBC?
I have an application that requires data from an SQL database to be displayed in a hierarchical directed graph (i.e. a JTree). Is it possible to construct Hierarchical Queries that return Hierarchical Rowsets in servlets via JDBC? This would be akin to using a Microsoft ADODB Hierarchical Recordset object, but I need a Java solution that's portable and isn't dependent on proprietary extensions in a server (i.e. iPlanet, etc.).
Any help would be appreciated.
Thanks.Is it possible to construct Hierarchical Queries that
return Hierarchical Rowsetsin servlets via JDBC?No. JDBC only speaks in flat rows and columns.
What type of hierarchical rowset are you referring to? Is it multidimensional data? For example MSSqlServer OLAP with row, column and measure dimensions? Or, is it simply grouped data for which you are both summarizing and displaying detail?
Maybe you are looking for
-
How can I sign out of my iCloud account from a macbook I no longer have access to?
I got a new macbook recently and neglected to sign out of my iCloud account on the old macbook before I erased and reset it. Now eveytime I open a new Safari page on my iPhone, both macbooks show up with the Safari windows that are still "open". I
-
WHAT'S THE DEAL I NEEDS MY MACBOOK
Hey...when I boot up my Mac it turns on, I get the start up sound and then it'll stay on the grey screen for a bit before a folder icon with a question mark in the middle starts flashing in the center of my screen. Does anyone know what this is? WHAT
-
Header Text from VF01 into Line layout of F-30
Good day.. i Need help on this I need to display the header text from VF01 into F-30 line layout or display the text field from fbl5n into line layout of F-30 Process Open Items. thank you in advance
-
Unable to connect to CMS - A wrong connection is made
From an ASP.Net application on my local machine, I am attempting to set a report source to a report in InfoView on a different server. I am having problems getting an EnterpriseService object created when calling a SessionMgr.Logon method. The error
-
Media Encoder (compilation error)
grande difficulté pour exporter mes vidéo faites à partir d'images fixes de grande résolution ! le processus s'interrompt au bout d'un temps variable avec le message COMPILATION ERROR non déterminé ,