Posting hierarchical data
Hi,
Can any body give me give suggestions of how I can implement the Hierarchical posting of data into database.
For ex. I have a XML document which contains records for Dept. and Emp tables. I want to post these datagrams into respective tables.
<ROWSET>
<ROW>
<DEPTNO>10</DEPTNO>
<LOC>New York</LOC>
<NAME>Accounting</NAME>
<tname>DEPT</tname>
</ROW>
<ROW>
<EMPNO>3456</EMPNO>
<ENAME>SMITH</ENAME>
<MGR>5677</MGR>
<tname>EMP</tname>
</ROW>
</ROWSET>
here tname identifies the table into which data will go and we don't which tables info. the xml document will have and the relation ship between those tables.
I am looking for more generalized mechanism to hadle this. I mean the xml document may contain more than two tables info. and may contain in random order.
Note:
I think if we get the hierarchy from all_constraints view we could solve the problem.
Thanks in adv.
Hari.
For a totally generic solution that's driven off information in ALL_TABLES, ALL_TAB_COLUMNS, and ALL_CONS_COLUMNS, and ALL_CONSTRAINTS, you'd need to author it yourself unfortunately.
If you're doing it in PL/SQL, you might find some useful constraint-walking code in the DBXML package that is part of our sample code we put on the web a long time ago called the "PLSXML Examples and Utilities".
Specifically, the DBXML.SQL package has some generic procedures for retrieving the inbound and outbound constraints on a table.
http://technet.oracle.com/tech/xml/info/index2.htm?Info&plsxml/xml4plsql.htm
Similar Messages
-
Hierarchical data maintainance
Hello,
I have a table (Parent - Child).
There is a requirement to maintain this table, thats the hierarchy of the oraganisation.
So, every quater they will be updating the table.
They will be importing the data through an excel and in that excel there are 3 action items,
=> Insert, Update and Delete (logical delete).
CREATE TABLE PARENT_CHILD_TBL
( "ID" VARCHAR2(6 BYTE) NOT NULL ENABLE,
"ID_DESC" VARCHAR2(200 BYTE),
"ID_LEVEL" VARCHAR2(200 BYTE),
"PARENT_ID" VARCHAR2(200 BYTE)
For Update:
Any ideas, What all validation can come for an updation of an hierarchical data in general.
Like
= how to derive the level value at database side when the id is updated to some other level.
= How to maintain the relation.
A -> B -> D ( A is the grand parent here).
A -> C
eg: if B is updated as parent node of A, then we should throw error (cyclic data).
Any more validations for hierarchical data, anybody can suggest and the way to go for it will be helpful.
Thanks !!Hi,
You can use the LEVEL psudo-column in a CONNECT BY query:
SELECT p.*
, LEVEL
, CASE
WHEN TO_CHAR (LEVEL, 'TM') = id_level
THEN 'OK'
ELSE ' *** BAD ***'
END AS flag
FROM parent_child_tbl p
START WITH parent_id = '0000'
CONNECT BY parent_id = PRIOR id
Output from the sample data you posted (where all the level_ids are correct):
PARENT
ID ID_DESC ID_LEVEL _ID LEVEL FLAG
A ROOT 1 0000 1 OK
B CHILD1 2 A 2 OK
D SUB CHILD1 3 B 3 OK
C CHILD2 2 A 2 OK
If you only want to see the rows where id_level is wrong, then you can use LEVEL in a WHERE clause.
Maybe you shouldn't bother manually entering id_level at all, and just have a MERGE statement populate that column after all the other data is entered.
Why is the id_level column defined as a VARCHAR2, rather than a NUMBER?
Given that it must be a VARCHAR2, why does it need to be 200 bytles long? -
Hierarchical data in VizPacker
Hi,
I am creating an extension of tree layout for lumira. I have implemented d3 part of it, but i am facing issue while using same in vizpacker. I am uploading data from csv file. Inside my d3 code i am recieving csv data as array of json objects, i am using d3.nest() to create hierarchical data and this way i am able to draw my graph but with vizpacker, format of data is different.
[{"Set 1":["Population over 60","India","2002"],"NumericMeasure":["7.01"]},{"Set 1":["Population under 15","India","2002"],"NumericMeasure":["33.42"]},{"Set 1":["Population over 60","India","2003"],"NumericMeasure":["7.08"]},{"Set 1":["Population under 15","India","2003"],"NumericMeasure":["33.03"]},{"Set 1":["Population over 60","India","2004"],"NumericMeasure":["7.15"]},{"Set 1":["Population under 15","India","2004"],"NumericMeasure":["32.62"]}]
I want to nest elements first by country and then by Indicators followed by NumericMeasure like this
{"country": "India","children": [{"Indicator": "population under 15","children": [{"year": "2002","numericMeasure": "30.1"},{"year": "2003","numericMeasure": "31.5"},{
"year": 2004,"numericMeasure": "32.9"}]},{"Indicator": "population over 60","children": [{"year": "2002","numericMeasure": "7.1"},{"year": "2003","numericMeasure": "7.5"},{"year": 2004,"numericMeasure": "7.0"
How should i do it? Thanks in advance!
Regards,
Ashish.Hey Ashish,
I'm currently in an [R] headspace, so coming back to JS/VizPacker may require some additional time to go through your code with you.
As an employee I would highly recommend that you revert internally, as there are some great resources for you (be sure to check out the JAM page; Jan should be able to guide you) - and then you can come back and post the solution to your question.
This example in d3 is pretty straight-forward though:
var data = [
{ "name" : "Level 2: A", "parent":"Top Level" },
{ "name" : "Top Level", "parent":"null" },
{ "name" : "Son of A", "parent":"Level 2: A" },
{ "name" : "Daughter of A", "parent":"Level 2: A" },
{ "name" : "Level 2: B", "parent":"Top Level" }
// *********** Convert flat data into a nice tree ***************
// create a name: node map
var dataMap = data.reduce(function(map, node) {
map[node.name] = node;
return map;
// create the tree array
var treeData = [];
data.forEach(function(node) {
// add to parent
var parent = dataMap[node.parent];
if (parent) {
// create child array if it doesn't exist
(parent.children || (parent.children = []))
// add node to child array
.push(node);
} else {
// parent is null or missing
treeData.push(node);
// ************** Generate the tree diagram *****************
var margin = {top: 20, right: 120, bottom: 20, left: 120},
width = 960 - margin.right - margin.left,
height = 500 - margin.top - margin.bottom;
var i = 0;
var tree = d3.layout.tree()
.size([height, width]);
var diagonal = d3.svg.diagonal()
.projection(function(d) { return [d.y, d.x]; });
var svg = d3.select("body").append("svg")
.attr("width", width + margin.right + margin.left)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
root = treeData[0];
update(root);
function update(source) {
// Compute the new tree layout.
var nodes = tree.nodes(root).reverse(),
links = tree.links(nodes);
// Normalize for fixed-depth.
nodes.forEach(function(d) { d.y = d.depth * 180; });
// Declare the nodes…
var node = svg.selectAll("g.node")
.data(nodes, function(d) { return d.id || (d.id = ++i); });
// Enter the nodes.
var nodeEnter = node.enter().append("g")
.attr("class", "node")
.attr("transform", function(d) {
return "translate(" + d.y + "," + d.x + ")"; });
nodeEnter.append("circle")
.attr("r", 10)
.style("fill", "#fff");
nodeEnter.append("text")
.attr("x", function(d) {
return d.children || d._children ? -13 : 13; })
.attr("dy", ".35em")
.attr("text-anchor", function(d) {
return d.children || d._children ? "end" : "start"; })
.text(function(d) { return d.name; })
.style("fill-opacity", 1);
// Declare the links…
var link = svg.selectAll("path.link")
.data(links, function(d) { return d.target.id; });
// Enter the links.
link.enter().insert("path", "g")
.attr("class", "link")
.attr("d", diagonal);
(see the full example here: D3.js tree diagram generated from 'flat' data)
If you haven't done so already, I would highly recommend you go through Matt Lloyd's tutorials for the VizPacker (Part 1, Part 2, Part 3).
What is the d3 example that you are looking at?
Can you confirm that your method works externally in HTML - and that you're not getting your intended output from the Lumira side, please?
//bijan -
ALE error while posting payroll data
Hi all,
We are trying to set up payroll posting via ALE interface. We have done the following settings
1. Distribution model setup with filters on for standard bapi's
2. Partner profile setup
3. RFC destination setup
When we try to post payroll data,it was returned with the following errors
RFC destination is not maintained for object BUS6001 and method PRECHECKPAYROLLACCOUNTASSIGN
The account assignment objects could not be checked
RFC destination is not maintained for object BUS6004 and method CHECK
The G/L account could not be checked
We verified RFC destination and it is working fine. I have searched all possible links in SCN, but unable to get the solution.
Can someone help in this issue?Hi,
Using tcode pc_payresult please check whether the off-cycle payroll is executed again in period 06-2010. If yes then try to post off-cycle payroll separately (PC00_M99_CIPE - Create Posting Run) by entering "Off-Cycle Payroll Run" parameters. May be you will get an error while posting this off-cycle payroll because this payroll is already posted. In this case you will have to reverse the existing off-cycle posting and then post off-cycle payroll again.
Once off-cycle payroll is posted, then you try to post normal monthly payroll.
I hope your problem will be solved by doing the above work out.
Regards,
Waqas Rashid -
Posting huge data on to JSP page using JSTL tags
Hi,
I have one application where I have to post huge data (approximately 2000 rows of data) into JSP page. I am using JSTL tags and running on Tomcat 5.
It is taking almost 20 to 25 seconds to load the entire page.
Is it the optimal time to load or it could be improved?
Please let me know.
Thanks,
--Subbu.Hi Evnafets,
Thank you for the response.
Here are the tasks I am doing to display the data on JSP.
0. We are running on Tomcat 5 and the memory size is 1024MB (1GB).
1. Getting the data - I am not performing any database queries. The data is stored in the static cache memory. So the server side response is so quick - less than a milli second.
2. Using Java beans to pass data to the presentation layer (JSP).
3. 10 'if' conditions and 2 'for' loops and 2 'choose' statements are being used in the JSP page while displaying the data.
4. Along with the above, there are 4 javascript files are being used.
5. The jsp file size after rendering the data, is aprox. 160 kb
Hope this information helps you to understand the problem.
Thanks,
--Subbu. -
Acrobat form with server side submit, posting blank data
Read more
Acrobat form with server side submit, posting blank data,
thanh xả tràn
I have a PDF form which gets submitted to the server using a submit (server-side) button. The data is then received in XML format by a ColdFusion component which does some validation and stores it into the database.
This PDF form is usually filled in by our clients using Adobe Reader 8 or below. While most of the times(and I mean like 96-97% of the times) everything goes well, at times we receive blank data into our database!! This renders couple of other features in our application useless as they try to parse an XML which does not exist.
I do believe that this is not a problem at the ColdFusion side because all it does is trim(ToString(toBinary(GetHttpRequestData().content))).
Does anyone has a clue as to why the data will be lost upon form submission?? I have done a lot of googling around it but in vain!There is an outside chance someone is just playing with you and submitting a blank form. Not uncommon if someone is not too familiar with forms.
-
How to post the data into word file
Dear Forums
I am a user of jDeveloper
and working on jclient\swing.
The problem is that i want to post\Transfer data to a formatted word file. In word file there is a same table containing same contents as jtable. Now after selection of a particular row \column the data of that row\column transferred to word file table.
i have no idea about it.
Help me for the Same
thnkx.hi,
I don't think the Javaworld stuff is needed in any case since ctrl c and ctrl v wor very fine. My problem is diffent. I want to copy paste using a mouse. I am using a Mouse Adapter with my table and using the DefaultEditorKit.copyAction() class as my action. But this does not work.. seems its not copying the data to the clipboard. But this migght be cause it works only with JTextComponent ?!
Can you please tell me how to go about it.
regards,
Sumit. -
Document entry - header fields status?? control of posting/document date.
Hi all,
I have a question regarding document date and posting date fields. I wonder if it is possible to make these fields display only and of course make the field document date obtain a value from the posting date field, which by default is the todays date. I want to do this since I have to somehow limit the users in certain cases to be allowed inputing a future date when posting a document.
Thanks for the help!
D.Hi
The best solution for this is to define validation in OB28.
In prerequisite:
Company Code = 'XXXX' AND Posting Date > Current Date OR
Posting Date < Current Date
In Check:
User Name = 'XXXXXXX'
In Message text:
you cant post in dates other than current date.
Assign points if useful
Regards
Aravind -
Posting Vendor data from MDM to R3
Hi,
We are trying to post vendor data from MDM to ECC via XI using CREMDM -> CREMAS + ADRMAS and using the standard mapping SAP has provided. I have serialized CREMAS + ADRMAS such that ADRMAS posts before CREMAS. ADRMAS works fine but CREMAS fails with error "Fill all required fields SAPMF02K 0111 ADDR1_DATA-NAME1". Standard mapping is mapping the no-data value "/" in CREMAS NAME1 field too as recommended.Still it throws this error.
If anyone has worked on similar scenario...Please help.
Thanks,Hi Swapna,
we had faced the same error.
You will need to enter a value in the name1 field if you want your idoc to post successfully.
even though in the vendor creation transaction name1 is not a mandatory field but for the idoc posting, the name1 field is required.
We solved the error by entering a value in the name 1 field.
Hope this helps.
Jyotika
Pls reward for helpful answers -
Are there any standard Idocs or Bapis for posting the data into transaction
Hi,
Are there any standard Idocs or Bapis for posting the data into transactions ME42N and IK11?
Thank You.Thank you.
Any idea of the other one? -
Wanna learn to implement hierarchical data structure
I want to learn the method of handling hierarchical data in Java
For instance if there is some kind of data which contains 6 main nodes then every node contains 2 sub nodes and there are 4 nodes under the 3rd node where as the 5th one contains two more subnodes one under another.
So how will that be implemented?
Ofcourse it must be possible to implement it but how can I do the same if I do not know the depth and number of nodes and will get it during the runtime?
I had attempted to do create some thing of this kind using Turbo C++ 3.5 but after two weeks of intensive programming I was left utterly confused with innumerable pointers and pointer to pointers and pointer to a pointer to a pointers and more. At last it was me who forgot which pointer was pointing to what.Well, just start by making a Node class. To allow Nodes to have children, make each Node have an array (or arraylist, vector, etc.) of other Nodes.
for example:
class Node{
private ArrayList<Node> children;
}Put whatever else you need in there.
You can then traverse these through methods you write, to return child nodes. If you need the Nodes to have knowledge of their parents, add a Node parent; variable in your Node class.
Essentially, keep things as simple as possible, and this will allow you to write cleaner code and also decide on the depth of the structure at runtime, like you describe. -
What is hierarchical data transfer in functional location
hai,
i want to know indetail about hierarchical data transfer and horizontal data transfer in functional location.
can any one help me in this regard....
plz give information with some example if you dont mind...
thanks in advance
regards
gunnu.Hi
From SAP HELP
Hierarchical Data Transfer
Definition
You can maintain data at a high level within a hierarchical object structure. The system will automatically transfer the data changes to the levels below that are affected.
The maintenance planner group is changed for the clarification plant described in Functional Location. The employee responsible for maintaining the master data makes the change to the master record of the highest functional location C1 and saves the changes. The system automatically makes the same change for all affected functional locations below the functional location C1, and issues a message to inform the employee of these changes.
Horizontal Data Transfer
Definition
With horizontal data transfer you can differentiate between:
Data transfer from reference location to functional location
Data transfer from functional location to installed piece of equipment
The ABC indicator of the functional location C1-B02-1 "Ventilator" is to be changed for several clarification plants.
The employee responsible for maintaining the master data makes the change in the master record of the reference functional location and saves the entries.
The system automatically makes the same change for all affected functional locations that were assigned to this reference location and for the pieces of equipment that are installed at these locations. The system then issues a message informing the employee of the changes.
Regards
thyagarajan -
SEM BCS - Block Posting and Data Entry
Hi Everybody,
I have a scenario to share with you:
I do not want to make any postings other that automatic roll up of P&L into rollup accounts like Retained earnings. What will be the effect If I enable the functionality "Block Posting and Data Entry" for these accounts?
Please share your views.
Thanks
RJAccording to my understanding and experience, this option is useful to refrain the local users from posting on the opening movement type => this opening position should be be calculated by the system during the carry forward only. The exception is the period of the system initialization, i-e the first closing period in BCS, where the opening MT can be impacted by anyone, on all Posting Levels.
This assumption also means that the central users (i-e users who perform the "top" consolidation activities) shall not be impacted by this option : they are thus allowed to modify this MT during cons group change activities (PL02, 12, 22) and top conso adjustements (PL30), whatever the period. -
Hi All
I have a set of 492 records is there any way other than INSERT to post the data on this forum?
ThanksThanks GVR, I have a source table with three fields. Each field is at a different level of heirarchy , there are total of 6 levels and i have to flaten the table. Atotal of 492 records
OWNER_ID PARENT_ID LEVEL_ID
200 7000 4
622 1000 4
623 2000 4
624 3000 4
625 4000 4
626 5000 4
627 6000 4
1000 9000 3
1020 7000 4
1040 7000 4
1051 1070 6
1052 1070 6
1053 1070 6
1054 1070 6
1055 1070 6
1056 1070 6
1060 7000 4
1070 1080 5
1071 1080 5
1080 1000 4
1081 1071 6
1082 1071 6
1083 1071 6
1084 1071 6
1085 1071 6
1086 1071 6
1087 1071 6
1091 1070 6
1092 1070 6
1093 1070 6
1100 1000 4
1101 1100 5
1102 1100 5
1103 1100 5
1104 1100 5
1170 7000 4
1200 1000 4
1201 1200 5
1202 1200 5
1203 1200 5
1204 1200 5
1300 1000 4
1301 1300 5
1302 1300 5
1303 1300 5
1304 1300 5
1317 1
1400 1000 4
1401 1400 5
1402 1400 5
1403 1400 5
1411 1000 4
1412 622 5
1413 622 5
1414 622 5
1415 622 5
1418 622 5
1500 1000 4
1501 1500 5
1502 1500 5
1503 1500 5
1504 1500 5
2000 9000 3
2070 2080 5
2071 2080 5
2080 2000 4
2081 2070 6
2082 2070 6
2083 2070 6
2084 2070 6
2085 2070 6
2086 2070 6
2088 2070 6
2091 2071 6
2092 2071 6
2093 2071 6
2094 2071 6
2095 2071 6
2096 2071 6
2097 2071 6
2100 2000 4
2101 2100 5
2102 2100 5
2103 2100 5
2200 2000 4
2201 2200 5
2202 2200 5
2203 2200 5
2204 2200 5
2220 7000 4
2240 7000 4
2270 7000 4
2280 7000 4
2300 2000 4
2301 2300 5
2302 2300 5
2303 2300 5
2304 2300 5
2360 7000 4
2370 7000 5
2400 2000 4
2401 2400 5
2402 2400 5
2403 2400 5
2404 2400 5
2410 8000 5
2420 8000 5
2421 2000 4
2422 623 5
2423 623 5
2424 623 5
2425 623 5
2428 623 5
2460 8000 5
2500 2000 4
2501 2500 5
2502 2500 5
2503 2500 5
2504 2500 5
2505 2500 5
2590 7000 4
2591 7000 4
2600 2000 4
2601 2600 5
2602 2600 5
2603 2600 5
2604 2600 5
3000 9000 3
3010 7000 4
3040 7000 4
3070 3080 5
3071 3080 5
3080 3000 4
3081 3070 6
3082 3070 6
3083 3070 6
3084 3070 6
3085 3070 6
3086 3070 6
3091 3070 6
3092 3070 6
3093 3070 6
3094 3070 6
3100 3000 4
3101 3100 5
3102 3100 5
3103 3100 5
3104 3100 5
3105 3100 5
3106 3100 5
3200 3000 4
3201 3200 5
3202 3200 5
3203 3200 5
3204 3200 5
3300 3000 4
3301 3300 5
3302 3300 5
3303 3300 5
3304 3300 5
3431 3000 4
3432 624 5
3433 624 5
3434 624 5
3435 624 5
3438 624 5
3500 3000 4
3501 3500 5
3502 3500 5
3503 3500 5
3504 3500 5
3600 3000 4
3601 3600 5
3602 3600 5
3603 3600 5
3604 3600 5
3605 3600 5
4000 9000 3
4070 4080 5
4071 4080 5
4080 4000 4
4081 4070 6
4082 4070 6
4083 4070 6
4084 4070 6
4085 4070 6
4086 4070 6
4087 4070 6
4088 4070 6
4089 4070 6
4090 4070 6
4091 4070 6
4092 4070 6
4093 4070 6
4094 4071 6
4095 4071 6
4096 4071 6
4097 4071 6
4098 4071 6
4099 4071 6
4100 4000 4
4101 4100 5
4102 4100 5
4103 4100 5
4104 4100 5
4105 4100 5
4106 4100 5
4160 622 5
4161 622 5
4200 4000 4
4201 4200 5
4202 4200 5
4203 4200 5
4260 623 5
4261 623 5
4300 4000 4
4301 4300 5
4302 4300 5
4360 624 5
4361 624 5
4400 4000 4
4401 4400 5
4402 4400 5
4403 4400 5
4441 4000 4
4442 625 5
4443 625 5
4444 625 5
4445 625 5
4448 625 5
4460 625 5
4461 625 5
4560 626 5
4561 626 5
4600 4000 4
4601 4600 5
4602 4600 5
4603 4600 5
4660 627 5
4661 627 5
4700 4000 4
4701 4700 5
4702 4700 5
4703 4700 5
4704 4700 5
5000 9000 3
5014 7000 4
5070 5080 5
5071 5080 5
5079 5070 6
5080 5000 4
5081 5070 6
5082 5070 6
5083 5070 6
5084 5070 6
5085 5070 6
5086 5070 6
5087 5070 6
5088 5070 6
5089 5070 6
5090 5071 6
5091 5071 6
5092 5071 6
5093 5071 6
5094 5071 6
5095 5071 6
5096 5071 6
5097 5071 6
5100 5000 4
5101 5100 5
5102 5100 5
5103 5100 5
5104 5100 5
5133 7000 4
5178 7000 4
5200 5000 4
5201 5200 5
5202 5200 5
5203 5200 5
5204 5200 5
5250 8000 5
5251 7000 4
5252 7000 4
5253 7000 4
5300 5000 4
5301 5300 5
5302 5300 5
5303 5300 5
5304 5300 5
5365 7000 4
5366 7000 4
5400 5000 4
5401 5400 5
5402 5400 5
5403 5400 5
5404 5400 5
5451 5000 4
5452 626 5
5453 626 5
5454 626 5
5455 626 5
5458 626 5
5500 5000 4
5501 5500 5
5502 5500 5
5503 5500 5
5504 5500 5
6000 9000 3
6070 6080 5
6071 6080 5
6080 6000 4
6081 6070 6
6082 6070 6
6083 6070 6
6084 6070 6
6085 6070 6
6086 6070 6
6100 6000 4
6101 6100 5
6102 6100 5
6103 6100 5
6300 6000 4
6301 6300 5
6302 6300 5
6303 6300 5
6304 6300 5
6305 6300 5
6400 6000 4
6401 6400 5
6402 6400 5
6403 6400 5
6404 6400 5
6461 6000 4
6462 627 5
6463 627 5
6464 627 5
6465 627 5
6468 627 5
6500 6000 4
6501 6500 5
6502 6500 5
6503 6500 5
6504 6500 5
6505 6500 5
6600 6000 4
6601 6600 5
6602 6600 5
6603 6600 5
6604 6600 5
7000 1317 3
7085 7000 4
7086 7000 4
7087 7000 4
8000 7000 4
8070 7000 4
9000 1317 2
9001 6071 6
9002 6071 6
9003 6071 6
9004 6071 6
9005 6071 6
9006 1071 6
9008 2070 6
9009 2070 6
9010 2070 6
9011 3071 6
9012 3070 6
9013 3071 6
9014 3071 6
9015 3071 6
9016 3071 6
9017 3071 6
9018 3071 6
9019 3071 6
9020 3071 6
9021 9142 5
9022 9142 5
9023 9142 5
9025 7000 4
9026 9142 5
9027 7000 4
9028 7000 4
9031 7000 4
9032 9031 5
9033 9142 5
9034 9142 5
9036 7000 4
9037 9031 5
9038 7000 4
9039 7000 4
9040 7000 4
9041 7000 4
9042 7000 4
9043 9142 5
9044 7000 4
9045 627 5
9048 626 5
9050 625 5
9052 624 5
9053 623 5
9054 623 5
9056 622 5
9057 9142 5
9058 6070 6
9059 6070 6
9060 6070 6
9061 9142 5
9062 9142 5
9063 9142 5
9064 1000 4
9065 2000 4
9066 3000 4
9067 4000 4
9068 5000 4
9069 6000 4
9070 1070 6
9071 7000 4
9072 7000 4
9075 9142 5
9076 9142 5
9077 9142 5
9078 9142 5
9079 9142 4
9080 7000 4
9081 5100 5
9082 5200 5
9084 1317 2
9085 9084 3
9086 9085 4
9087 9085 4
9088 9085 4
9089 9085 4
9090 9085 4
9091 9085 4
9092 7000 4
9093 7000 4
9094 7000 4
9095 7000 4
9096 7000 4
9097 7000 4
9098 7000 4
9099 7000 4
9100 7000 4
9101 7000 4
9102 7000 4
9103 7000 4
9104 7000 4
9105 7000 4
9106 7000 4
9107 7000 4
9108 7000 4
9109 7000 4
9110 7000 4
9111 7000 4
9112 7000 4
9113 7000 4
9114 7000 4
9115 7000 4
9116 7000 4
9117 7000 4
9118 7000 4
9119 7000 4
9120 7000 4
9121 7000 4
9122 7000 4
9123 7000 4
9124 7000 4
9125 7000 4
9126 7000 4
9127 7000 4
9128 7000 4
9129 7000 4
9130 7000 4
9131 7000 4
9132 7000 4
9133 7000 4
9134 9133 4
9135 9133 5
9136 9133 5
9137 9133 5
9138 9133 5
9139 7000 4
9140 5500 5
9141 9142 5
9142 1317 2
9143 9142 3
9144 9142 3
9145 9142 3
9146 9142 3
9147 9142 3
9148 9142 3
9149 9142 3I have a query
SELECT COALESCE (owner_level_6,
owner_level5,
owner_level4,
owner_level3,
owner_level2,
owner_level1
) AS owner_id,
k.*
FROM (SELECT t1.owner_id AS owner_level1, t2.owner_id AS owner_level2,
t3.owner_id AS owner_level3, t4.owner_id AS owner_level4,
t5.owner_id AS owner_level5, t6.owner_id AS owner_level_6
FROM stg_wms_setup_owner t1,
setup_owner t2,
setup_owner t3,
setup_owner t4,
setup_owner t5,
setup_owner t6
WHERE t1.owner_id = t2.parent_id(+)
AND t2.owner_id = t3.parent_id(+)
AND t3.owner_id = t4.parent_id(+)
AND t4.owner_id = t5.parent_id(+)
AND t5.owner_id = t6.parent_id(+)
AND t1.parent_id IS NULL) k
ORDER BY owner_idand its giving me the expected output BUT i'm missing 71 records at level 4
Resultant dataset
OWNER_ID OWNER_LEVEL1 OWNER_LEVEL2 OWNER_LEVEL3 OWNER_LEVEL4 OWNER_LEVEL5 OWNER_LEVEL_6
200 1317 7000 200
1020 1317 7000 1020
1040 1317 7000 1040
1051 1317 9000 1000 1080 1070 1051
1052 1317 9000 1000 1080 1070 1052
1053 1317 9000 1000 1080 1070 1053
1054 1317 9000 1000 1080 1070 1054
1055 1317 9000 1000 1080 1070 1055
1056 1317 9000 1000 1080 1070 1056
1060 1317 7000 1060
1081 1317 9000 1000 1080 1071 1081
1082 1317 9000 1000 1080 1071 1082
1083 1317 9000 1000 1080 1071 1083
1084 1317 9000 1000 1080 1071 1084
1085 1317 9000 1000 1080 1071 1085
1086 1317 9000 1000 1080 1071 1086
1087 1317 9000 1000 1080 1071 1087
1091 1317 9000 1000 1080 1070 1091
1092 1317 9000 1000 1080 1070 1092
1093 1317 9000 1000 1080 1070 1093
1101 1317 9000 1000 1100 1101
1102 1317 9000 1000 1100 1102
1103 1317 9000 1000 1100 1103
1104 1317 9000 1000 1100 1104
1170 1317 7000 1170
1201 1317 9000 1000 1200 1201
1202 1317 9000 1000 1200 1202
1203 1317 9000 1000 1200 1203
1204 1317 9000 1000 1200 1204
1301 1317 9000 1000 1300 1301
1302 1317 9000 1000 1300 1302
1303 1317 9000 1000 1300 1303
1304 1317 9000 1000 1300 1304
1401 1317 9000 1000 1400 1401
1402 1317 9000 1000 1400 1402
1403 1317 9000 1000 1400 1403
1411 1317 9000 1000 1411
1412 1317 9000 1000 622 1412
1413 1317 9000 1000 622 1413
1414 1317 9000 1000 622 1414
1415 1317 9000 1000 622 1415
1418 1317 9000 1000 622 1418
1501 1317 9000 1000 1500 1501
1502 1317 9000 1000 1500 1502
1503 1317 9000 1000 1500 1503
1504 1317 9000 1000 1500 1504
2081 1317 9000 2000 2080 2070 2081
2082 1317 9000 2000 2080 2070 2082
2083 1317 9000 2000 2080 2070 2083
2084 1317 9000 2000 2080 2070 2084
2085 1317 9000 2000 2080 2070 2085
2086 1317 9000 2000 2080 2070 2086
2088 1317 9000 2000 2080 2070 2088
2091 1317 9000 2000 2080 2071 2091
2092 1317 9000 2000 2080 2071 2092
2093 1317 9000 2000 2080 2071 2093
2094 1317 9000 2000 2080 2071 2094
2095 1317 9000 2000 2080 2071 2095
2096 1317 9000 2000 2080 2071 2096
2097 1317 9000 2000 2080 2071 2097
2101 1317 9000 2000 2100 2101
2102 1317 9000 2000 2100 2102
2103 1317 9000 2000 2100 2103
2201 1317 9000 2000 2200 2201
2202 1317 9000 2000 2200 2202
2203 1317 9000 2000 2200 2203
2204 1317 9000 2000 2200 2204
2220 1317 7000 2220
2240 1317 7000 2240
2270 1317 7000 2270
2280 1317 7000 2280
2301 1317 9000 2000 2300 2301
2302 1317 9000 2000 2300 2302
2303 1317 9000 2000 2300 2303
2304 1317 9000 2000 2300 2304
2360 1317 7000 2360
2370 1317 7000 2370
2401 1317 9000 2000 2400 2401
2402 1317 9000 2000 2400 2402
2403 1317 9000 2000 2400 2403
2404 1317 9000 2000 2400 2404
2410 1317 7000 8000 2410
2420 1317 7000 8000 2420
2421 1317 9000 2000 2421
2422 1317 9000 2000 623 2422
2423 1317 9000 2000 623 2423
2424 1317 9000 2000 623 2424
2425 1317 9000 2000 623 2425
2428 1317 9000 2000 623 2428
2460 1317 7000 8000 2460
2501 1317 9000 2000 2500 2501
2502 1317 9000 2000 2500 2502
2503 1317 9000 2000 2500 2503
2504 1317 9000 2000 2500 2504
2505 1317 9000 2000 2500 2505
2590 1317 7000 2590
2591 1317 7000 2591
2601 1317 9000 2000 2600 2601
2602 1317 9000 2000 2600 2602
2603 1317 9000 2000 2600 2603
2604 1317 9000 2000 2600 2604
3010 1317 7000 3010
3040 1317 7000 3040
3081 1317 9000 3000 3080 3070 3081
3082 1317 9000 3000 3080 3070 3082
3083 1317 9000 3000 3080 3070 3083
3084 1317 9000 3000 3080 3070 3084
3085 1317 9000 3000 3080 3070 3085
3086 1317 9000 3000 3080 3070 3086
3091 1317 9000 3000 3080 3070 3091
3092 1317 9000 3000 3080 3070 3092
3093 1317 9000 3000 3080 3070 3093
3094 1317 9000 3000 3080 3070 3094
3101 1317 9000 3000 3100 3101
3102 1317 9000 3000 3100 3102
3103 1317 9000 3000 3100 3103
3104 1317 9000 3000 3100 3104
3105 1317 9000 3000 3100 3105
3106 1317 9000 3000 3100 3106
3201 1317 9000 3000 3200 3201
3202 1317 9000 3000 3200 3202
3203 1317 9000 3000 3200 3203
3204 1317 9000 3000 3200 3204
3301 1317 9000 3000 3300 3301
3302 1317 9000 3000 3300 3302
3303 1317 9000 3000 3300 3303
3304 1317 9000 3000 3300 3304
3431 1317 9000 3000 3431
3432 1317 9000 3000 624 3432
3433 1317 9000 3000 624 3433
3434 1317 9000 3000 624 3434
3435 1317 9000 3000 624 3435
3438 1317 9000 3000 624 3438
3501 1317 9000 3000 3500 3501
3502 1317 9000 3000 3500 3502
3503 1317 9000 3000 3500 3503
3504 1317 9000 3000 3500 3504
3601 1317 9000 3000 3600 3601
3602 1317 9000 3000 3600 3602
3603 1317 9000 3000 3600 3603
3604 1317 9000 3000 3600 3604
3605 1317 9000 3000 3600 3605
4081 1317 9000 4000 4080 4070 4081
4082 1317 9000 4000 4080 4070 4082
4083 1317 9000 4000 4080 4070 4083
4084 1317 9000 4000 4080 4070 4084
4085 1317 9000 4000 4080 4070 4085
4086 1317 9000 4000 4080 4070 4086
4087 1317 9000 4000 4080 4070 4087
4088 1317 9000 4000 4080 4070 4088
4089 1317 9000 4000 4080 4070 4089
4090 1317 9000 4000 4080 4070 4090
4091 1317 9000 4000 4080 4070 4091
4092 1317 9000 4000 4080 4070 4092
4093 1317 9000 4000 4080 4070 4093
4094 1317 9000 4000 4080 4071 4094
4095 1317 9000 4000 4080 4071 4095
4096 1317 9000 4000 4080 4071 4096
4097 1317 9000 4000 4080 4071 4097
4098 1317 9000 4000 4080 4071 4098
4099 1317 9000 4000 4080 4071 4099
4101 1317 9000 4000 4100 4101
4102 1317 9000 4000 4100 4102
4103 1317 9000 4000 4100 4103
4104 1317 9000 4000 4100 4104
4105 1317 9000 4000 4100 4105
4106 1317 9000 4000 4100 4106
4160 1317 9000 1000 622 4160
4161 1317 9000 1000 622 4161
4201 1317 9000 4000 4200 4201
4202 1317 9000 4000 4200 4202
4203 1317 9000 4000 4200 4203
4260 1317 9000 2000 623 4260
4261 1317 9000 2000 623 4261
4301 1317 9000 4000 4300 4301
4302 1317 9000 4000 4300 4302
4360 1317 9000 3000 624 4360
4361 1317 9000 3000 624 4361
4401 1317 9000 4000 4400 4401
4402 1317 9000 4000 4400 4402
4403 1317 9000 4000 4400 4403
4441 1317 9000 4000 4441
4442 1317 9000 4000 625 4442
4443 1317 9000 4000 625 4443
4444 1317 9000 4000 625 4444
4445 1317 9000 4000 625 4445
4448 1317 9000 4000 625 4448
4460 1317 9000 4000 625 4460
4461 1317 9000 4000 625 4461
4560 1317 9000 5000 626 4560
4561 1317 9000 5000 626 4561
4601 1317 9000 4000 4600 4601
4602 1317 9000 4000 4600 4602
4603 1317 9000 4000 4600 4603
4660 1317 9000 6000 627 4660
4661 1317 9000 6000 627 4661
4701 1317 9000 4000 4700 4701
4702 1317 9000 4000 4700 4702
4703 1317 9000 4000 4700 4703
4704 1317 9000 4000 4700 4704
5014 1317 7000 5014
5079 1317 9000 5000 5080 5070 5079
5081 1317 9000 5000 5080 5070 5081
5082 1317 9000 5000 5080 5070 5082
5083 1317 9000 5000 5080 5070 5083
5084 1317 9000 5000 5080 5070 5084
5085 1317 9000 5000 5080 5070 5085
5086 1317 9000 5000 5080 5070 5086
5087 1317 9000 5000 5080 5070 5087
5088 1317 9000 5000 5080 5070 5088
5089 1317 9000 5000 5080 5070 5089
5090 1317 9000 5000 5080 5071 5090
5091 1317 9000 5000 5080 5071 5091
5092 1317 9000 5000 5080 5071 5092
5093 1317 9000 5000 5080 5071 5093
5094 1317 9000 5000 5080 5071 5094
5095 1317 9000 5000 5080 5071 5095
5096 1317 9000 5000 5080 5071 5096
5097 1317 9000 5000 5080 5071 5097
5101 1317 9000 5000 5100 5101
5102 1317 9000 5000 5100 5102
5103 1317 9000 5000 5100 5103
5104 1317 9000 5000 5100 5104
5133 1317 7000 5133
5178 1317 7000 5178
5201 1317 9000 5000 5200 5201
5202 1317 9000 5000 5200 5202
5203 1317 9000 5000 5200 5203
5204 1317 9000 5000 5200 5204
5250 1317 7000 8000 5250
5251 1317 7000 5251
5252 1317 7000 5252
5253 1317 7000 5253
5301 1317 9000 5000 5300 5301
5302 1317 9000 5000 5300 5302
5303 1317 9000 5000 5300 5303
5304 1317 9000 5000 5300 5304
5365 1317 7000 5365
5366 1317 7000 5366
5401 1317 9000 5000 5400 5401
5402 1317 9000 5000 5400 5402
5403 1317 9000 5000 5400 5403
5404 1317 9000 5000 5400 5404
5451 1317 9000 5000 5451
5452 1317 9000 5000 626 5452
5453 1317 9000 5000 626 5453
5454 1317 9000 5000 626 5454
5455 1317 9000 5000 626 5455
5458 1317 9000 5000 626 5458
5501 1317 9000 5000 5500 5501
5502 1317 9000 5000 5500 5502
5503 1317 9000 5000 5500 5503
5504 1317 9000 5000 5500 5504
6081 1317 9000 6000 6080 6070 6081
6082 1317 9000 6000 6080 6070 6082
6083 1317 9000 6000 6080 6070 6083
6084 1317 9000 6000 6080 6070 6084
6085 1317 9000 6000 6080 6070 6085
6086 1317 9000 6000 6080 6070 6086
6101 1317 9000 6000 6100 6101
6102 1317 9000 6000 6100 6102
6103 1317 9000 6000 6100 6103
6301 1317 9000 6000 6300 6301
6302 1317 9000 6000 6300 6302
6303 1317 9000 6000 6300 6303
6304 1317 9000 6000 6300 6304
6305 1317 9000 6000 6300 6305
6401 1317 9000 6000 6400 6401
6402 1317 9000 6000 6400 6402
6403 1317 9000 6000 6400 6403
6404 1317 9000 6000 6400 6404
6461 1317 9000 6000 6461
6462 1317 9000 6000 627 6462
6463 1317 9000 6000 627 6463
6464 1317 9000 6000 627 6464
6465 1317 9000 6000 627 6465
6468 1317 9000 6000 627 6468
6501 1317 9000 6000 6500 6501
6502 1317 9000 6000 6500 6502
6503 1317 9000 6000 6500 6503
6504 1317 9000 6000 6500 6504
6505 1317 9000 6000 6500 6505
6601 1317 9000 6000 6600 6601
6602 1317 9000 6000 6600 6602
6603 1317 9000 6000 6600 6603
6604 1317 9000 6000 6600 6604
7085 1317 7000 7085
7086 1317 7000 7086
7087 1317 7000 7087
8070 1317 7000 8070
9001 1317 9000 6000 6080 6071 9001
9002 1317 9000 6000 6080 6071 9002
9003 1317 9000 6000 6080 6071 9003
9004 1317 9000 6000 6080 6071 9004
9005 1317 9000 6000 6080 6071 9005
9006 1317 9000 1000 1080 1071 9006
9008 1317 9000 2000 2080 2070 9008
9009 1317 9000 2000 2080 2070 9009
9010 1317 9000 2000 2080 2070 9010
9011 1317 9000 3000 3080 3071 9011
9012 1317 9000 3000 3080 3070 9012
9013 1317 9000 3000 3080 3071 9013
9014 1317 9000 3000 3080 3071 9014
9015 1317 9000 3000 3080 3071 9015
9016 1317 9000 3000 3080 3071 9016
9017 1317 9000 3000 3080 3071 9017
9018 1317 9000 3000 3080 3071 9018
9019 1317 9000 3000 3080 3071 9019
9020 1317 9000 3000 3080 3071 9020
9021 1317 9142 9021
9022 1317 9142 9022
9023 1317 9142 9023
9025 1317 7000 9025
9026 1317 9142 9026
9027 1317 7000 9027
9028 1317 7000 9028
9032 1317 7000 9031 9032
9033 1317 9142 9033
9034 1317 9142 9034
9036 1317 7000 9036
9037 1317 7000 9031 9037
9038 1317 7000 9038
9039 1317 7000 9039
9040 1317 7000 9040
9041 1317 7000 9041
9042 1317 7000 9042
9043 1317 9142 9043
9044 1317 7000 9044
9045 1317 9000 6000 627 9045
9048 1317 9000 5000 626 9048
9050 1317 9000 4000 625 9050
9052 1317 9000 3000 624 9052
9053 1317 9000 2000 623 9053
9054 1317 9000 2000 623 9054
9056 1317 9000 1000 622 9056
9057 1317 9142 9057
9058 1317 9000 6000 6080 6070 9058
9059 1317 9000 6000 6080 6070 9059
9060 1317 9000 6000 6080 6070 9060
9061 1317 9142 9061
9062 1317 9142 9062
9063 1317 9142 9063
9064 1317 9000 1000 9064
9065 1317 9000 2000 9065
9066 1317 9000 3000 9066
9067 1317 9000 4000 9067
9068 1317 9000 5000 9068
9069 1317 9000 6000 9069
9070 1317 9000 1000 1080 1070 9070
9071 1317 7000 9071
9072 1317 7000 9072
9075 1317 9142 9075
9076 1317 9142 9076
9077 1317 9142 9077
9078 1317 9142 9078
9079 1317 9142 9079
9080 1317 7000 9080
9081 1317 9000 5000 5100 9081
9082 1317 9000 5000 5200 9082
9086 1317 9084 9085 9086
9087 1317 9084 9085 9087
9088 1317 9084 9085 9088
9089 1317 9084 9085 9089
9090 1317 9084 9085 9090
9091 1317 9084 9085 9091
9092 1317 7000 9092
9093 1317 7000 9093
9094 1317 7000 9094
9095 1317 7000 9095
9096 1317 7000 9096
9097 1317 7000 9097
9098 1317 7000 9098
9099 1317 7000 9099
9100 1317 7000 9100
9101 1317 7000 9101
9102 1317 7000 9102
9103 1317 7000 9103
9104 1317 7000 9104
9105 1317 7000 9105
9106 1317 7000 9106
9107 1317 7000 9107
9108 1317 7000 9108
9109 1317 7000 9109
9110 1317 7000 9110
9111 1317 7000 9111
9112 1317 7000 9112
9113 1317 7000 9113
9114 1317 7000 9114
9115 1317 7000 9115
9116 1317 7000 9116
9117 1317 7000 9117
9118 1317 7000 9118
9119 1317 7000 9119
9120 1317 7000 9120
9121 1317 7000 9121
9122 1317 7000 9122
9123 1317 7000 9123
9124 1317 7000 9124
9125 1317 7000 9125
9126 1317 7000 9126
9127 1317 7000 9127
9128 1317 7000 9128
9129 1317 7000 9129
9130 1317 7000 9130
9131 1317 7000 9131
9132 1317 7000 9132
9134 1317 7000 9133 9134
9135 1317 7000 9133 9135
9136 1317 7000 9133 9136
9137 1317 7000 9133 9137
9138 1317 7000 9133 9138
9139 1317 7000 9139
9140 1317 9000 5000 5500 9140
9141 1317 9142 9141
9143 1317 9142 9143
9144 1317 9142 9144
9145 1317 9142 9145
9146 1317 9142 9146
9147 1317 9142 9147
9148 1317 9142 9148
9149 1317 9142 9149 I think the query was doing fine until i added the 5th table to the JOIN in the query, not sure whats happening and why its not adding the records from the fourth table. -
Mandatory Infotypes to post Timesheet data to Plant Maintenance orders
Hi all
Can somebody tell:
What are theMandatory Infotypes to post Timesheet data to Plant Maintenance orders via CAT2. I tried creating a data entry profile with PM/CS order objects checked,I need to know ,does it need to be assigned to the user id or some role? As of now CAT2 is not showing any personnel numbers though they are assigned in the Work centres.Hi Rohit
I guess you need to maintain IT-0007 & IT-0315 for the pernr.
Edited by: Abap on Jan 11, 2010 12:48 AM
Maybe you are looking for
-
i have a ipad 1 tried to turn it on as normal and got itunes logo with a white plug cable on screen and it will not turn on i have tried to update on itunes but it wont let me so i tried restore and it comes up with a message saying "ipad could not b
-
Somehow created two apple ids on the same email
Hi there, I recently gave my other half my old iPad, however she went to sign into her apple id/ iCloud account and in the process somehow changed my iCloud settings such as my password. I tried signing in today and was prompted to enter the new pass
-
Hi all, I need help in acquiring this I have a table control,in which i have 3 columns out of which 2 are input/outfields and one is output field. say i have fld1 fld2 fld3 i entera value for fld1 and fld2 then it bring value in fld3. but sometimes i
-
How to specify RD USER cal for particular session host server on a licensing server.
Hello, I have 25 user cal license which I want to deploy to my 5 session host servers (5 user cal for each host) I got 1 licensing server, where I have installed these licenses and pointed all other servers to it. but I dont see any option to reserve
-
RouterServer and sdo_router_partition
Hi all, I'm trying to use the Oracle Spatial Routing Engine from here (http://www.oracle.com/technology/software/products/spatial/index.html) in conjunction with some of my data loaded into the Oracle Network Model. Using the Network Model java API w