cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping - need Enlightening

former_member457420
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

former_member457420
Participant
0 Kudos

Thanks Kurba & Raja

P

rajasekhar_reddy14
Active Contributor
0 Kudos

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