Академический Документы
Профессиональный Документы
Культура Документы
MessageMappingSimplifiedPartI|SCN
GettingStarted Newsletters
Hi,Guest
LogOn
JoinUs
Store
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
Activity
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Browse
Communications
Actions
sravya.talanki2
MessageMappingSimplifiedPartI
PostedbySravyaTalankiinsravya.talanki2onAug16,20052:03:39AM
Share
Tweet
0 Like
ItwasinitiallyveryhardformetounderstandthemessagemappingwhenwearetrainedonSAPXI.Ibrowsed
help.sap.comandendedupgettingmoreconfused.AfterworkingwithSAPXIforsometimehowevertheintuitionis
changed.Iwilltrytosimplifythemessagemappingbyelucidatingtheconceptsinthenutshell.Blogdoesnotcoverthe
messagemappingindetailbutjustgivesthebasicunderstandingforanynewXIdevelopers.Part1oftheblog
providesabaseforconceptualunderstandingofmessagemappingwithsuitableexamples.
AsweknowXIproducestheXMLdocumentsattheinbound/outboundoftheintegrationpipeline,thereisaneedfor
ustomapthesourceXMLdoctothetargetXMLdoc.MessageMappingeditorisabuiltinfeature,whichhelpstomap
thesourceandtargetXMLmessagesgraphically.
Inthisblogwediscussvarioustermsrelatedtoit.
Definition:MessageMapping
Firstly,letmedefinethemessagemappinginthewayIlookatit:
"MessageMappingisnothingbutasetofrulesforproducingtargetXMLfromthesourceXML.Theserulesare
nothingbutrelationsbetweenthesourceXMLtagsandtargetXMLtags".
TheseruleskeepvaryingaccordingtothebusinessrequirementsonthesourceandtargetXMLdocuments.
SampleRule:
IllustrationofMappingError:
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
1/7
7/15/2015
MessageMappingSimplifiedPartI|SCN
Definition:Representation:
Beforeweproceedfurtheritisbetterifwehaveaclearunderstandingofthe3terms:
1.
Element
:SimpleXMLtag.
2.
Attribute
:PropertyofXMLtag.
3.
Node
:LogicalgroupingofsetofXMLtags.
InXIitisrepresentedasshownbelow:
XMLrepresentationinXI:
AdditionallythereiscolorindicatorforthetargetXMLmessages:
1.
RedColor
indicatesthattargetnodes/elements/attributesaremandatoryandhastobedefinetlymapped.
2.
GreenColorwitharedcircle
atthebottomindicatesthatthereisaminimumoccurrencespecifiedforthetagwhichhastobemetinthemapping.
3.
Greencolor
indicatesthatwecanmapthenodes/elements/attributesaccordingtotherequirements.
ColorIndicationintheMappingEditor:
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
2/7
7/15/2015
MessageMappingSimplifiedPartI|SCN
ContextsinMessageMapping:
OncetheaboveconceptsareclearwecanproceedtothemostconfusingpartofmessagemappingcalledContext
Handling.
InitiallywhenIwasbrowsingthroughthetrainingmaterialsandmappingpatternsitwasreallyhardformetoexactly
figureoutwhatthetermContextmeans.(Forgetaboutcontexthandlingandcontextchanging).
Definition:Context
AfterworkingoutfewexamplesIfiguredoutthat:"Contextofanelementisnothingbutjustthelevel(withreference
toitsparentnode)wheretheXMLtagappearsinthegivenXMLdocument".
Levelofanyelementissettotheimmediateparentnodebydefault.
Definition:ContextChanging
Oncethedefinitionofcontextisverycleartherestofthetermsareautomaticallyclarified."ContextChangingisjust
changingthelevelofXMLtag(elementlevelintheXSD)intheXMLdocumentorItisjusttheflexibilityprovided
byXIforchangingtheXSDoftheXMLdocumentattheruntime".Examplegivenbelowmightmakeyouto
understanditbetter.Iaddeda
Qualifications
nodeand
Description
elementinthesourcedatatypeandone
Qual_Desc
elementinthetargetdatatype.
Thecontextofthe
Description
tagisautomaticallysettothe
Qualification
bydefaultinXIwhichmeansthatalways
Description
XMLtagoccursunder
Qualification
XMLtagasshownbelow.
SourceXMLmessageinterpretationbytheMappingruntimebeforecontextchange:
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
3/7
7/15/2015
MessageMappingSimplifiedPartI|SCN
Ichangedthecontextofthe
Description
tagtotheroot
MT_SRC
XMLtagasshownbelow.
SourceXMLmessageinterpretationbytheMappingruntimeaftercontextchange:
Definition:ContextHandling
ContextsinXIcanbehandledbyvariouswayslike
nodefunctions,advancedfunctions
,whichwillbe,illustratedmoreindetailinthenextblog.Wealsohavequeuingmechanismsforhandlingcomplex
ContextChanginginadvanceduserfunctions.
Oncetheaboveconceptsareclear,workingwiththemessagemappingandtroubleshootinganyerrorsthatoccurred
becamerelativelyveryeasyforme.PartIIwillprovidesomemoregoodexamplesforplayingaroundwithmessage
mappingfeature
providedbyXI.
14506Views
AverageUserRating
MyRating:
(37ratings)
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
4/7
7/15/2015
Share
MessageMappingSimplifiedPartI|SCN
2
Tweet
0 Like
26Comments
rajbalakrishnanAug18,200511:36AM
Excellentwork,Sravya.Iameagerlyawaitingyournextblog.IamjustaboutgettingstartedonXIand
amstrugglingwithunderstandingthecoreconcepts.
Like(0)
SravyaTalankiAug19,20054:03AM(inresponsetorajbalakrishnan)
ThanksRaj..Youwilldefinetlyseesomemore..:)
Like(0)
SEBINTHOMASJan3,20074:59AM(inresponsetoSravyaTalanki)
Duringthemigrationprocessproblemshavebeenreportedforthisblog.The
blogcontentmaylookcorruptduetonotsupportedHTMLcodeonthis
platform.Pleaseadjusttheblogcontentmanuallybeforemovingittoanofficial
community.
Like(0)
SravyaTalankiJan3,20075:40AM(inresponsetoSEBINTHOMAS)
ThanksThomas!
Like(0)
rajbApr16,20078:31AM(inresponsetoSEBINTHOMAS)
ExcellentBlog...
Like(0)
PawanDandawateSep15,200511:30AM(inresponsetorajbalakrishnan)
HiSravya
YouhaveveryneatlyelucidatedXImappingbasicsinthisblog.Theterminologyusedin
mappingworldisdifficulttounderstandforabeginner.Iamsurethisarticlewhichuses
simpleplainvanilaEnglishwillbeagreathelp.
Greatjob.
Cheers
Pawan
Like(0)
ShivPatilNov21,20059:06AM
Thanksfortheinputs.Greatlyappreciated.
Like(0)
VenkateshamNeelaDec19,20052:58PM
Excellentwork,Sravya
Regards,
VenkatNeela
Like(0)
ameerbabaJun13,200612:02AM
khodossravya,
Expectingmoreblogsfromyou.
Regards,
Ameer.
Like(0)
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
5/7
7/15/2015
MessageMappingSimplifiedPartI|SCN
VishalKohliJun18,20068:55PM
GoodJob..!!!
Verywellexplained...!!!!
Expectingmoresuchfeaturesfromyou.
Allthebest..!!!
VishalKohli
vishal_kohli@keane.com
Keane
Like(0)
AnaLimaJun28,20061:48PM
Congratulationsforthegreatjob.
Easy,practicalandwithaverysenseofhumor!
Like(0)
YounusMohdAug12,20076:26PM
HiSravya,
Itwashighlyhelpfulforbegineerslikeus.
Hopetoseesomemorefromyou..
Thanks,
Younus
Like(0)
kaipureddyMay21,20103:27AM(inresponsetoYounusMohd)
HiSravya,
thisisveryimportanttopicforstartingsapxiemployers...
Thanks
sreenivasulukaipu
09247500079
srinu.ababxi@gmail.com
Like(0)
IyengarKarthikAug13,20079:16AM
Itjustkeepsgettingbetterandbetter!
Thankyouandbestregards
KartikIyengar~
Like(0)
BirlaNatesanAug15,200711:49AM
HiSravya,
Greatwork!Itdoeshelpbeginnerslikemetounderstandtheconceptbetter.
Thanks,
Birla.
Like(0)
RavMandalNov3,20075:22PM
ExcellentSravya...greatwork...thankyou...
Like(0)
MidhunMadhavOct31,200811:53PM
Itsaverybeautifulblog.Ithelpedmetogetthecontextofcontext:)
Like(0)
miritamistryNov23,20081:57PM
HiSravya,
It'sareallygreatjob!!
Thanksforyourhelp!!!
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
6/7
7/15/2015
MessageMappingSimplifiedPartI|SCN
Best
MiritaMistry
Like(0)
ParthasarathiSubramaniyamSep2,200910:33PM
SheexplainedtheMessagemappinginsimplewords.
Like(0)
PullanaikSugaliJun30,201011:53PM
Hi,
IamnewtoPItechnology.IwanttolearnNodefunctionsinmapping.Sohelpmeonthis.
Regards,
Naik,Pune,Infosys.
Like(0)
saratpasupureddyJul13,201010:27PM
HiThisissarat,IamworkingasGISConsultantinCapgeminithisismyfirsthourinXIandItwas
prettyclear.
Iwouldbeexpectingthesamestufffurtherinnextstageofblog.
Like(0)
ErnestoCruzMar18,20117:12AM
Mostclear,imposible!!!!Thankssss.AgreetfromArgentina
Like(0)
RajuALLUApr23,20128:14AM
HiSravya,
GoodBlog..
Canyouclarifymeregardingthefollowing
SourceXMLmessageinterpretationbytheMappingruntimebeforecontextchange:
SourceXMLmessageinterpretationbytheMappingruntimeaftercontextchange:
whenyouarechangingthecontextforDescriptionsyoucandirectlychangeittoMT_SRCwhydo
youchangecontextforthefirsttoQualificaitonsandthenchangedtocontexttoMT_SRC
KindlyExplainitbriefly
Like(0)
ChristineTalaueJul26,201211:16AM
HiSravya,
ThisisagreatmaterialformewhoisjuststartingtolearnPI...
I'llbefollowingyourblogtobemorefamiliarwithit.
Like(0)
RamanjaneyaReddyDec13,20127:40AM
HiSravya,
Thisveryusefultoforme.
Thanks,
Raman
Like(0)
SravyaTalankiDec18,201210:56PM(inresponsetoRamanjaneyaReddy)
Thanks.
Like(0)
SiteIndex
Privacy
ContactUs
TermsofUse
SAPHelpPortal
LegalDisclosure
Copyright
http://scn.sap.com/people/sravya.talanki2/blog/2005/08/16/messagemappingsimplifiedparti
FollowSCN
7/7