Complex hierarchy chain.
Hi All,
This is reference to the thread Hierarchy order number. I am using Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production. Frank helped to obtain the hierrachy relationship between the parts.
During QA testing they found the below scenario and it is called 'Complex hierrarchy order'.
Here is the sample data creation.
CREATE TABLE BL_SAMPLE_SS_DATA
AS
SELECT 'A' AS OLD_PART_NO,
'2' AS NEW_PART_NO
FROM DUAL
UNION
SELECT 'B' AS OLD_PART_NO,
'1' AS NEW_PART_NO
FROM DUAL
UNION
SELECT 'B' AS OLD_PART_NO,
'2' AS NEW_PART_NO
FROM DUAL
UNION
SELECT 'C' AS OLD_PART_NO,
'2' AS NEW_PART_NO
FROM DUAL
UNION
SELECT '2' AS OLD_PART_NO,
'D' AS NEW_PART_NO
FROM DUAL
UNION
SELECT '2' AS OLD_PART_NO,
'E' AS NEW_PART_NO
FROM DUAL
UNION
SELECT 'D' AS OLD_PART_NO,
'3' AS NEW_PART_NO
FROM DUAL
UNION
SELECT 'E' AS OLD_PART_NO,
'4' AS NEW_PART_NO
FROM DUAL
UNION
SELECT '4' AS OLD_PART_NO,
'5' AS NEW_PART_NO
FROM DUAL
UNION
SELECT '5' AS OLD_PART_NO,
'6' AS NEW_PART_NO
FROM DUAL
UNION
SELECT '5' AS OLD_PART_NO,
'7' AS NEW_PART_NO
FROM DUAL;
Explanation about the above sample data:
1. The part 'A' was first manufactured later the part A is replaced by part number 2.
2. The part B is replaced by two part number 1 and 2. ( The customer can pick either 1 or 2)
it means Part B is replaced by two parts 1 and 2. for example if Part B is a car front mirror passenger wiper with 14 inch size, after sometime Ford released the same car front mirror passnger wiper in 2 sizes one is part 1 (8 inch) and next one is part 2 (14 inch). we will show this description of part in part details page. so we should show both like part B is replaced with 1 and 2 in chain. Based on customer need, they will pick one.
3. Part C is replaced by 2.
4. Part number 2 is replaced by two parts D and E (same as #2).
5. Part D is replaced by 3 and Part E is replaced by 4.
6. part 4 is replaced by 5 and Part 5 is replaced by 6 and 7.
so the hierrachy would be like below
A -> 2
B -> 1 and 2
C -> 2
2 -> D and E
D -> 3
E -> 4
4 -> 5
5 -> 6 and 7
so the output should contain data like below for each present in the chain. Below output table contain chain for random two parts like this i need to show for all the parts present in that chain.
PARTNO
OLD PART NO
NEW PART NO
B
A
2
B
B
1
B
B
2
B
C
2
B
2
D
B
2
E
B
D
3
B
E
4
B
4
5
B
5
6
B
5
7
5
A
2
5
B
1
5
B
2
5
C
2
5
2
D
5
2
E
5
D
3
5
E
4
5
4
5
5
5
6
5
5
7
Thanks All
Anyone please guide me to do this. Thanks All
Really sorry about not mention in initial post. The SEQ_NO should be assigned based on hierarchy order of the parts. For example, the hierarchy of above sample data like below.
OLD PART
NO
NEW PART NO
A
2
B
1
B
2
C
2
2
D
2
E
D
3
E
4
4
5
5
6
5
7
So regardless of the PART_NO we should show in the table in above order. The SEQ_NO will be used when application render the data from table like order by seq number. so that the hierarchy wont change.
for an example and keep it short i will take 2 part numbers B and 5. The data in target table (PARTS) will be like below
PARTNO
OLD PART NO
NEW PART NO
SEQ_NO
B
A
2
1
B
B
1
2
B
B
2
3
B
C
2
4
B
2
D
5
B
2
E
6
B
D
3
7
B
E
4
8
B
4
5
9
B
5
6
10
B
5
7
11
5
A
2
51
5
B
1
52
5
B
2
53
5
C
2
54
5
2
D
55
5
2
E
56
5
D
3
57
5
E
4
58
5
4
5
59
5
5
6
60
5
5
7
61
WHen application does "SELECT * FROM PARTS WHERE PART_NO = 5 ORDER BY SEQ_NO" .The result will show as per the order in case if the order in the target table is wrong. Hope this helps.
Similar Messages
-
Hi All,
We are trying to build a complex item hierarchy that
spans multiple intersection tables.
Example: A -> AB <- B -> BD <- D... The intersection
tables contain no items per se but only id codes. We
want to get the items at A, B and D but there are no
direct joins to these tables. Do we need to build a
custom folder to make these joins for us and bring
in the hierarchy from one folder? Is there another
or easier way?
Thanks,
-GusHi Gus
Complex folders would work as would SQL Views. Personally I would use a SQL view as you have the ability to a) use it in other applications, and b) have the ability to use SQL tools to optimize the code.
Hope this helps
Regards
Michael -
Getting a more complex recording chain into a macbook pro?
Hey guys,
I have been writing and producing tracks for myself and others for a few years on some pretty modest gear. First I had a little Tascam US-122. Moved on the a Firepod after that. Currently I am using the Apogee Duet which has been by far the nicest of all of these interfaces. All of these devices connected to my MBP via USB 2.0 of FW400. I have a really simple practice of hooking a mic into the interface, hooking the interfaces into the MBP and hitting record and then mixing tracks. After a year of using the Duet I am ready to try out a new signal chain. Something a little more fancy.
I am going to try and go the more traditional (expensive) route. I am looking at getting these componets:
A 2-channel preamp - Chandler Limited TG-2.
A 2-channel limiter/compressor - UA 2-1176
A/D converter - not sure which one yet but not going to use my Duet as I want something with at least 8 channels of high quality ADC so I can expand later.
Here's my problem... I don't know how to get a signal from any of this gear into a MBP. I know this much about the chain:
live instrument > microphone > preamp > comp/limiter (optional) > A/D converter > ??? > Logic Pro
What is the missing link? A mixing board or something? With the chain I am wanting what are my options? Would this chain be more sound running into a mac pro?Cool thread! I hope you don't mind if I jump in. I too am looking to upgrade my chain, and am thinking of doing almost the exact same thing as you. I am currently using the Apogee Duet and am ordering a Chandler TG-2 and UA 2-1176. I really like the Duet and never really use more than two mics. I was wondering if it was possible to use the 2-1176 for final mix limiting. Tell me if this is crazy, but instead of using a limiter plugin to give me that final mix boost, could I run the outputs of the Duet (which I normally send to the monitors) into the 2-1176 as the input and then run out of the 2-1176 into the inputs of the Duet? Would this cause some kind of glitch in the matrix or would it work? I would love to stick with the Duet if possible. Any advice would be greatly apprecaited!
-
Hi,
I need to create a process chain based on a event.
From ECC i got a program that sends same event multiple times a day.
The conditions are given below,
1. Process chain must be scheduled to wait for the event.
2. If the event is received between time '020000' and '050000.
then the proces chain must proceedfurther
else
it must not proceed and wait.
can this be achieved via process type ABAP program or any other best possibility?Hey Again.
Ok, I think you probably won't be able to do this with the decision between multiple alternatives. Well, actually you could but it would take some extra work. I've implemented custom formulas where I am and have created some for checking if a chain is active, a process is active, a chain has completed, etc... To get there though you have to first implement custom formulas. it isn't difficult and can be extremely helpful (at least I have found them to be). In case you are interested, here is a link to get you started on that effort (I think it's worth it even if not for this project):
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f095592f-42f7-2a10-6ab1-c836a559b48f
So, while the solution could very well be done using a mix of custom formulas and the decision element it is probably best to simplify and use a custom abap program. You have two choices, do this on the ECC side or on BW side.
If done in ECC:
1) Create log table, or utilize existing one
2) Check table... if event has been raised today, then do not raise event again.
If done in BW:
1) Create a chain where starter uses the even and parameter that will be raised from ECC
2) Create a custom ABAP program that checks if the chain has run yet today. If not, it would raise another event to trigger the chain doing the actual processing. If the chain has run today, the event is not raised.
While ECC side may seem simpler, you would be completely reliant on them not accidentally triggering the chain twice in one day. So i would go with doing it on the BW side. You can definitely check if a chain has run today and also if it has finished successfully. Here is a list of some process chain related tables that you may find useful:
RSEVENTCHAIN - Event Chain Processing Event Table
RSEVENTHEAD - Header for the event chain
RSEVENTHEADT - Header for the event chain
RSPCCHAIN - Process chain details
RSPCCHAINATTR - Attributes for a Process Chain
RSPCCHAINEVENTS - Multiple Events with Process Chains
RSPCCHAINT - Texts for Chain
RSPCCOMMANDLOG - System Command Execution Logs (Process Chains)
RSPCLOGCHAIN - Cross-Table Log ID / Chain ID
RSPCLOGS - Application Logs for the Process Chains
RSPCPROCESSLOG - Logs forthe Chain Runs
RSPCRUNVARIABLES - Variables for Process Chains for Runtime
RSPC_MONITOR - Monitorindividual process chains -
suppose i've the table as follows
emp
manager empno empname
1 1 david
1 2 brown
2 3 bruce
3 4 tommy
2 5 jimmy
2 6 bruno
5 7 grave
8 8 black
8 9 jones
9 10 nick
if i want the hierarchy for 1 i need the output as follows.
2
3
4
5
6
7
if i want the hierarchy for 2 i need the output as follows.
3
4
5
6
7
can u please tell me how to achieve this using connect byIf you really want hierarchy, you can't get
2
3
4
5
6
7
because employee ID = 7 is a child of employee ID = 5.
Hierarchy output can be:
SQL> with t as (
2 select 1 manager, 1 empno, 'david' empname from dual
3 union all select 1, 2, 'brown' from dual
4 union all select 2, 3 ,'bruce' from dual
5 union all select 3, 4 ,'tommy' from dual
6 union all select 2, 5 ,'jimmy' from dual
7 union all select 2, 6 ,'bruno' from dual
8 union all select 5, 7 ,'grave' from dual
9 union all select 8, 8 ,'black' from dual
10 union all select 8, 9 ,'jones' from dual
11 union all select 9, 10, 'nick' from dual
12 )
13 select empno, empname, level from t
14 start with manager = 1 and empno != 1
15 connect by prior empno = manager
16 /
EMPNO EMPNA LEVEL
2 brown 1
3 bruce 2
4 tommy 3
5 jimmy 2
7 grave 3
6 bruno 2
6 rows selected. -
Query 4 joined tables with internal joins to represent a complex hierarchy!
I've got to refine/replace a query (Oracle 9i) that
currently joins rows from four tables in a hierarchical
fashion that I use to produce a listing like this:
agency abc 1
....division def 1.1
........service ghi 1.1.1
........service jkl 1.1.2
............faq mno 1.1.2.1
............faq pqr 1.1.2.2
........service stu 1.1.3
....division vwx 1.2
........service yyy 1.2.1
............faq zzz 1.2.1.1
The change involves allowing for unlimited levels of
nested child divisions to produce a listing like this:
agency abc 1
....division def 1.1
........service ghi 1.1.1
........service jkl 1.1.2
............faq mno 1.1.2.1
............faq pqr 1.1.2.2
........service stu 1.1.3
....division vwx 1.2
........division xxx 1.2.1
............division aaa 1.2.1.1
............division bbb 1.2.1.2
................service aaa 1.2.1.2.1
....................faq fff 1.2.1.2.1.1
....................faq ggg 1.2.1.2.1.2
........service yyy 1.2.1
............faq zzz 1.2.1.1
Notice the insertion of three nested divisions under
division 1.2 with services and faqs under those. The
order of names throughout is alphabetic within a nesting
level.
Here's the SQL I currently use, without nested divisions
(it contains extra info that I use to control what and
how names are displayed):
SELECT
agency.agency_id AGENCY_ID,
agency.agency_type_id AGENCY_TYPE_ID,
agency.name AGENCY_NAME,
agency.acronym AGENCY_ACRONYM,
agency.expiration_date AGENCY_EXP,
agency.post_count AGENCY_POST,
agency.stat AGENCY_STAT,
agency_type.agency_type AGENCY_TYPE,
division.division_id DIV_ID,
division.name DIV_NAME,
division.transfer_number DIV_TRANS_NUM,
division.expiration_date DIV_EXP,
division.post_count DIV_POST,
division.stat DIV_STAT,
service.service_id SVC_ID,
service.name SVC_NAME,
service.taxonomy SVC_TAX,
service.keywords SVC_KEYWORDS,
service.action_type SVC_ACTION_TYPE,
service.sr_form_name SVC_SR_FORM,
service.expiration_date SVC_EXP,
service.post_count SVC_POST,
service.stat SVC_STAT,
faq.faq_id FAQ_ID,
faq.name FAQ_NAME,
faq.expiration_date FAQ_EXP,
faq.post_count FAQ_POST,
faq.stat FAQ_STAT
FROM
agency,
agency_type,
division left join service on
division.division_id=service.division_id left join
faq on service.service_id=faq.service_id
WHERE (
(agency_type.agency_type_id = agency.agency_type_id)
AND (agency.agency_id = division.agency_id)
AND (agency.agency_id = :agency_id )
It's very fast -- I can retrieve and display 5,000 rows
in seconds using Perl DBI and CGI -- and very easy to use
to produce the hierarchical listing of items from the
four tables. It is also very straightforward since I was
able to generate the SQL using the SQL modeler in TOAD
(I'm not the strongest SQL developer so I resort to
tools).
I need to get jump-started in the right direction to
determine what I need to add to my division table
(div_parent_id?), if I need a div_parent_child table to
define the relationships (rows with parent_id & child_id
pairs), and how to change or rewrite the SQL query. The
CGI form that will be used to define the relationships
will ask users to define children of a given division. I
envision presenting a list of divisions with null
parent_division_id columns for users to select from then
updating selected rows for selected divsions.
Thanks in advance for any help/guidance!
-GeneINLINE VIEWS!
select whatever_you_want
from (
SELECT FOLDER_ID, PARENT_FOLDER_ID, FOLDER_NAME
FROM FOLDERS
START WITH PARENT_FOLDER_ID = 0 CONNECT BY PARENT_FOLDER_ID = PRIOR FOLDER_ID
) tree, FILES
where tree.folder_id = files.folder_id -- or something like that
always try to keep the CONNECT BY limited to ONE AND ONLY table. then use that query in a subquery, a WITH clause, an inline view or something. do not try to JOIN or UNION with a CONNECT BY. it won't work the way you think it will, and even it returns the expected results, it will perform terribly.
* your mileage may vary
Message was edited by:
shoblock
added exclamation marks to show my excitement!!!! -
How to see Process Chain Hierarchy
Dears sirs,
I would like to know all the hierarchy chain from a cube or an ODS. Can someone explain how to list all the Process Chain Hierarchy to the top (start)
Reagards,
Santos,very Thanks.
This is what I am looking for.
Regards,
Santos -
Unable to create position hierarchy in organization model
I was unable to create position hierarchy in organizational hierarchy. I want to maintain position hierarchy within an organization. But SAP CRM is not allowing that. I was able to create organizational hierarchy. Please let me know, how can I maintain the position hierarchy within the same organization?
--hariHi hari,
it is only possible to have a hierarchy with two levels on position level. Therefore you create two positions below your organization (tx ppoma_crm). At one of these positions you set the flag "Head of own organizational unit" at the Basic data tab of the position (To see this, you need to display the Details of the positions at the bottom of the screen). Now you can assign a business partner (or more) to this position which is (are) the Head of this unit.
If you need a more complex hierarchy you have to use organizations to show this.
Hope it helps!
Kind regards
Christian -
How to convert org hierarchy XML to CSV/Excel format using PI/XI
Hi All,
I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
Here is the example of how my input XML would look like:
<?xml version="1.0" encoding="UTF-8"?>
<PartyMaster type="OrgHierarchy" name="Compass Group Owned">
<PartyMasterHierarchy>
<Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">
<Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" >
<Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
<Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
</Hierarchy>
</Hierarchy>
</Hierarchy>
</Hierarchy>
<Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000".
<Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000">
<Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000">
<Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901"> </Hierarchy>
</Hierarchy>
</Hierarchy>
</Hierarchy>
</PartyMasterHierarchy>
</PartyMaster>
I would like to get CSV output in the format below
DISPLAY_NAME, DOCUMENT_DESCRIPTION, PARENT, EXTERNAL_ID, ORG_UNIT_TYPE
Bon Appetit Sector, Bon Appetit Sector,constant value, A00000, constant value
Levy Sector, Levy Sector, constant value, K00000, constant value
BA Division, BA Division, A00000, AB0000, constant value
Levy Sector Division, Levy Sector Division, K00000, K90000, constant value
BA East Coast Region, BA East Coast Region, AB0000, ABE000, constant value
Levy Sector Region, Levy Sector Region, K90000, K99000, constant value
Engstrom John RVP, Engstrom John RVP, ABE000, ABE01, constant value
TBA Total ,TBA Total ,K99000, K9901, constant value
1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
Any help will be greatly appreciated.
Thanks.
--Mithun>>> 1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
Use File adapter at the sender side to pick up the xml and use file adapter at the receiver side (message protocol file content conversion) to convert xml format to csv.
Basically you have to configure in the file adapter (FCC) on the receiver side to get desired csv structure from XML.
>>> 2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
Configure sender file adapter to pick up the file from the specified directory. Configure receiver file (fcc adapter) to drop the csv file after conversion.
For sender adapter
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
For receiver adapter in our case FCC (FILE content Conversion) follow the link
http://help.sap.com/saphelp_NW04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Hope answered your question.
Mapping area: simple suggestion. Keep input and output message same structure and do one to one mapping. In the receiver fcc adapter configure for csv structure following instruction given in the above second link
Note: FCC adapter does not support nested structure more than 2. So in your case you can achieve using conversion agent tool. Otherwise you might have to achieve through some graphical mapping. -
How to convert hierarchy XML to CSV/Excel format using PI/XI
posted in PI forum but not many replies, please bear with me as I am in crunch time*
Hi All,
I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
Here is the example of how my input XML would look like:
<?xml version="1.0" encoding="UTF-8"?>
<PartyMaster type="OrgHierarchy" name="Compass Group Owned">
<PartyMasterHierarchy>
<Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">
<Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" >
<Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
<Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
</Hierarchy>
</Hierarchy>
</Hierarchy>
</Hierarchy>
<Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000".
<Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000">
<Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000">
<Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901"> </Hierarchy>
</Hierarchy>
</Hierarchy>
</Hierarchy>
</PartyMasterHierarchy>
</PartyMaster>
I would like to get CSV output in the format below
DISPLAY_NAME, DOCUMENT_DESCRIPTION, PARENT, EXTERNAL_ID, ORG_UNIT_TYPE
Bon Appetit Sector, Bon Appetit Sector,constant value, A00000, constant value
Levy Sector, Levy Sector, constant value, K00000, constant value
BA Division, BA Division, A00000, AB0000, constant value
Levy Sector Division, Levy Sector Division, K00000, K90000, constant value
BA East Coast Region, BA East Coast Region, AB0000, ABE000, constant value
Levy Sector Region, Levy Sector Region, K90000, K99000, constant value
Engstrom John RVP, Engstrom John RVP, ABE000, ABE01, constant value
TBA Total ,TBA Total ,K99000, K9901, constant value
1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
Any help will be greatly appreciated.
Thanks.
--MithunHi Mithun,
You might try this step below :
1. As for xsd schema fo the xml or create xsd schema base on the sample xml file using tools like xmlspy or others free tools.
2. import you xsd schema as outbound Data type
3. apply mapping from source to target (csv).
Configuration
Sender file adapter (without content conversion)
Receiver file adapter (with content conversion).
so the sender adapter will be monitoring inbound directory and write the result to another directory.
Thank You and Best Regards
Fernand. -
Upload/ download Work Center Hierarchy
Hello All,
I need your help with this one. Therefore thanks in Advace:
Is there a way to download and upload work center hierarchies?
The idea ist to download a complex hierarchy to a file and then upload it to another system/ client.
Thanx
RafHi Daniele,
I just tried the way you suggested:
- RCRAPDX1 downloaded a txt to presentation server with data.
- changed only the plant in file.
- run RCRAPDX2
unfortunately result is that ths system try to maintain the work centers within the file,
(which are already maintained).
The hierarchy structure won't be maintained.
So what I look for is a manner to transport the complete hierarchy structure...
regards
raf -
Serialization of complex hierarchies using PortableObject or PofSerializer
Hi, I am starting with Coherence and I am having a hard time trying to introduce POF serialization in a complex hierarchy of classes... classes containing another classes that extend abstract classes that extend another abstract classes... All of them add up to 500 classes... I tried using PortableObject and Cohclipse to generate automatically the readExternal and writeExternal methods but I noticed that I missed that data of the attributes contained in the abstract classes. I thought that it might be because I repeated in the subclass the indexes for the attributes of the abstract class but I changed it and it is still not working. Besides I have problems with Enums...
I just wanted to know which would be the best approach to this kind of task because I am trying to look for posible solutions in google but all I can find are just very simple examples... If you could give me any advise I would really appretiate it. ThanksIn Coherence 3.7 you can use annotations for por serialization, Coherence introduced two annotation: Portable and PortableProperty, that could make it for you easy to add por serialization without writing read/write external methods. Also it can automatically set the indexes so you avoid messing witht hem.
Thanks a lot,
Carlos Curotto. -
How to convert hierarchy XML to CSV format using PI/XI
Hi All,
I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
Here is the example of how my input XML would look like:
<?xml version="1.0" encoding="UTF-8"?>
<PartyMaster type="OrgHierarchy" name="Compass Group Owned">
<PartyMasterHierarchy>
<Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">
<Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" > <Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
<Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
</Hierarchy>
</Hierarchy>
</Hierarchy>
</Hierarchy>
<Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000". <Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000"> <Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000"> <Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901"> </Hierarchy>
</Hierarchy>
</Hierarchy>
</Hierarchy>
</PartyMasterHierarchy>
</PartyMaster>
I would like to get CSV output in the format below
*DISPLAY_NAME DOCUMENT_DESCRIPTION PARENT EXTERNAL_ID ORG_UNIT_TYPE*
Bon Appetit Sector Bon Appetit Sector constant value A00000 constant value
Levy Sector Levy Sector constant value K00000 constant value
BA Division BA Division A00000 AB0000 constant value
Levy Sector Division Levy Sector Division K00000 K90000 constant value
BA East Coast Region BA East Coast Region AB0000 ABE000 constant value
Levy Sector Region Levy Sector Region K90000 K99000 constant value
Engstrom, John RVP Engstrom, John RVP ABE000 ABE01 constant value
TBA Total TBA Total K99000 K9901 constant value
1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
Any help will be greatly appreciated.
Thanks.
--MithunMithun,
you would get lot of answers if you looking in the PI (process integration forum)... There is something calles File content coversion in XI file adapter (which can convert the xml to csv and viceversa) -
Java Mapping, XSLT Mapping, ABAP Mapping
Hi Experts,
Could any one explain what is the main features of the following Mapping. How to pick the mapping?
Java Mapping - When to use and what is the advantage.
ABAP Mapping - When to use and what is the advantage.
XSLT Mapping - When to use and what is the advantage.
Graphical Mapping - When to use and what is the advantage.
cheers,
SuneeThere are 4 types of mapping in XI
1. Graphical Mapping
2. XSLT Mapping
3. JAVA Mapping
4. ABAP Mapping
When to use Message mapping
1 When the logic for your mapping is simple and straight forward, you can use
Advantages of message mapping
1)Easy to use.
2) has GUI drag and drop.
3) used for simple mapping cases
4) it does not involve any complex logic
Disadvantages of message mapping
1)has limitation in terms of complex hierarchy
When to use Java mapping
1) Java mapping are used when graphical mapping cannot help you.
Advantages of Java Mapping
1)you can use Java APIs and Classes in it.
2) file look up or a DB lookup is possible
3) DOM is easier to use with lots of classes to help you create nodes and elements.
Disadvantages of Java mapping
1)SAX parser is not easy to develop
2)DOM parser is intensive
3) Java knowledge is required
4) bit complexer
XSLT Mapping - When to use
1)When the required output is other than XML like Text, Html or XHTML (html displayed as XML )
2)When default namespace coming from graphical mapping is not required or is to be changed as per requirements.
3)When data is to be filtered based on certain fields (considering File as source)
4)When data is to be sorted based on certain field (considering File as source)
5)When data is to be grouped based on certain field (considering File as source)
Advantages of using XSLT mapping
1)XSLT program itself defines its own target structure.
2)XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.
3)XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.
4)File content conversion at receiver side can be avoided in case of text or html output.
5)Multiple occurrences of node within tree (source XML) can be handled easily.
6)XSLT can be used in combination with graphical mapping.
7)Multi-mapping is also possible using xslt.
8)XSLT can be used with ABAP and JAVA Extensions
Disadvantages of using XSLT mapping
1)Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).
2)Interface mapping testing does not show proper error description. So errors in XSLT programs are difficult to trace in XI but can be easily identified outside XI using browser.
3)XSLT mapping requires more memory than mapping classes generated in Java.
4)XSLT program become lengthier as source structure fields grows in numbers.
5)XSLT program sometimes become complex to meet desired functionality.
6)Some XSL functions are dependent on version of browser.
Advantages of Abap Mapping
1) A person comfortable with OOABAP can go for ABAP mapping instead.
Disadvantages of Abap Mapping
1) Abap knowledge is required
2) bit compexer
For further info on each of the mapping, refer to these links,
Graphical Mapping,
http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
XSLT Mapping
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
http://www.w3.org/TR/xslt20/
Java Mapping
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
DOM parser API
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
Check this blog on Mapping:
/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
Also, check this thread for more info,
Different types of Mapping in XI -
OWB11gR2: Mapping execution in a process flow not visible in OWB Browser
When a mapping is executed inside a process flow, execution details are not visible in OWB Repository Browser (Control Center reports) - rows processed, errors etc. Mapping row is missing in a log, like it never happened (but it did).
This auditing information is very important for monitoring reasons (to our customers also) and I just don't get it how this functionality is lost with this version. Another serious bug?Hi David,
I was rather tired and frustrated last evening, so today I noticed some things I didn't yesterday. Your reply gave me a new motivation.
The conclusion is - a mapping execution in a process flow is logged, but the way activities are displayed in OWB Browser are now different than in previous versions. If I click on 'Execution Job Report' on a process flow, I see all the activities listed except mappings (transformations, assign, file exists, subprocess etc.). If I want to see mapping execution row, I must click on a plus (expand) sign.
This kind of behavior will make processes with a complex hierarchy (usually we have more than 5 levels of subprocesses) rather vast to monitor. In 10gR2, a drilling down was accomplished by opening a new browser tab (Execution Job Report link) for each subprocess/mapping activity. Now it shall remain on one huge screen (list) that keeps expanding.
But, if that is the new feature, we shall live with that. If our customers won't like it, they will have to get used to it.
Thank you for your reply!
Maybe you are looking for
-
Good evening everyone... First off I wanted to say that I'm ****** off and even more frustrated by my MacBook Air, god dammit this machine was expensive and now all I get are problems. But enough of that, let me get to the point already. So I made a
-
Custom selection field using Logical database
Hi All, I have to create a program that would print out employee contracts from infotype 16. I am using logical database PNPCE. Is there a way to add "contract type" as a selection parameter in the screen that is generated by PNPCE? Thanks, ~Mark
-
CRIO: Unflatten from string into lvclass not working in deployment
Hello, I am working on a problem for some hours now and I need some help. I am using a cRIO-9022. I need to do some tasks, and I created a couple of classes which contain the parameters and the methods. They contain using dynamic dispatch VIs. I have
-
Adobe Photohop for Mac, iDraw, or... for a MackBook Air 10.7.5? It doesn't have to have all of the bells and whistles. I have Corel on my reg desktop, not a Mac.. But am not familiar with what works best with this.
-
Any ideas why the sound only works on about half of my apps?
Any ideas why the sound on my ipad only works on about half of my apps?