on 10-17-2009 1:40 PM
Hi Guys,
I was actually looking into the message mapping blog of sravya.Link below:
[http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414800)ID0086183650DB11663053995735659636End?blog=/pub/wlg/2792]
Was just reading the blog and a lot of questions came through my mind.In the end I figured out that first, I have to understand how the parsing works.
So for example,If we have 2 message structures(source & target).At run time the dom or sax parser parses through the source xml document.
If we do a source to target mapping
as in the example
Matgroup --> RemoveContext -->MatGroup.
So my question is what does the parser do in the above example.
Does it read the source xml,change the source XML AND start to build the target xml from scratch by adding nodes.
How does the parsing work & internally what are the steps the parser do to create the target XML.
[2]
In her example,She mapps the item node to the header target node.
what happends then or what does the parser do & what are the elements which will be coming under the target header node.
What are the conditions for mapping 2 fields or nodes(Both should have same level & occurance - Is that so?)
Iam confused.Please Enlighten me...:)
Thanks
P
Edited by: pazzuzu on Oct 17, 2009 2:40 PM
Hi,
Have you gone through the Part1?
before undertanding how does the standard node functions works ,you must clearly understand the concept called CONTEXT.
Refer this
http://help.sap.com/saphelp_nw70/helpdata/en/3d/24e15bf9d79243b45d49b13b03de8f/content.htm
to know more about standard Node functions refer
http://help.sap.com/saphelp_nw70/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
http://wiki.sdn.sap.com/wiki/display/XI/Explainnodefunctions.
Thanks and Regards,
Kubra Fatima.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Kurba & Raja
P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Parsing is the mechanism to trasform the structure in to other format,Nomally PI uses Dom parsing mechanism to process.
Suppose if you working one message mapping source is on XML Structure and you want to map this structure to the Taget structre,most of cases taget structre is not same as Source.
You used some mapping function provided by SAP,every Graphical standard function has some source java code inside it.
the functions also uses parcing mechnism like reading doucmnet and changing structure.If youw ant to know more about parcers google it.
every parcer has some predrefind methodsto read the documents child elemnts too..
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.