cancel
Showing results for 
Search instead for 
Did you mean: 

MAPPING BASICS

Former Member
0 Kudos

Dear experts

I am very new to XI....Kindly let me know in detail...

1)About different mapping technincs available

2)Whether multiple mapping possible in Interface Mapping..??

3)Is there any concept of nested mapping here in XI...??

Regards

Arnab

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Arnab,

The following link may be of help to you.

/people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping

Regards,

Shweta.

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi,

There are three types of default mapping available:

1.Graphical Mapping

2.Java Mapping

3.XSLT Mapping

Also we have

1.Abap mapping

2. XSLT mapping with Abap extensions

Multiple mapping is possible in Interface Mapping e.g. a combination of java mapping and graphical mapping.

There is no concept of nested mapping as such.

For more detilas u can go through below links:

1./people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

2.https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd

Thanks

Former Member
0 Kudos

Hi

There is one more mapping that I forgot to mention

Value mapping...when u give a particular value while maaping then its called Value mapping....

Regards

Paul

Former Member
0 Kudos

XI provides 3 standard ways of interface mapping between source and target.

 Graphical mapping

 Java mapping

 XSLT mapping

Two more additional mapping types can be activated in XI by making changes to the exchange profile. Those two mappings are

 ABAP mapping

 XSLT mapping with ABAP Extensions

yes multiple mapping possible in Interface Mapping

Former Member
0 Kudos

Hi,

The term Mapping means:

1. The transformation process, and/or

2. The transformation rules.

Independently from XI, you can distinguish two different mappings

• Structure mappings transform entire message structures.

• Value mappings transform values within messages.

Mapping Programs to Map Messages :

Message Mapping

Designed by using the graphical mapping editor of Integration Builder

Result: Generated Java Code.

Imported Archives

Import externally defined mapping programs into repository

Java mapping:

Implemented by using a specific interface

XSLT mapping:

Runtime supports XSLT processor

Java methods can be called from within a Style Sheet

ABAP Mapping

You can execute mapping programs in a sequence

The exchange infrastructure supports three types of mappings:

Message mappings that can be designed using a graphical mapping editor in the Integration Builder. As a result, Java code is generated from the graphical representation that is compiled before it can be executed on the integration server.

You can implement your own Java mapping by implementing a specific interface of the mapping API.

You can implement an XSLT mapping

For the latter two, there is no tool support in XI. It is expected that they are developed using external development tools. To make them available for the integration server, they have to be imported into the integration repository as JAR

files before (JAR: Java Archives).

Developers can even decide to combine the different mapping technologies:

Message mappings, XSLT mappings and Java mappings can be combined in a sequence by means of an interface mapping.

XSLT mappings can use java functions

Message mappings support user-defined functions that can use imported java packages of the same namespace.

Hope this will help you.

Regards

Paul

Former Member
0 Kudos

1)About different mapping technincs available

-->

1. Graphical Mapping

2. Java Mapping (SAX /DOM parser)

3. XSLT Mapping

4. ABAP mapping

Refer

/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

2)Whether multiple mapping possible in Interface Mapping..??

-->Yes you could use multiple mappings in the Interface Mapping.

ie.e combination of Java Mapping and graphical mapping etc.

3)Is there any concept of nested mapping here in XI...??

---> No there is no such nested mapping available in XI.

But you could have use the combination of types of mapping etc

Thanks

Swarup

Former Member
0 Kudos

Hi,

Three different default mapping supported in XI.

1) Graphical

2) Java

3) XSLT

4) ABAP.

Refer the below weblog for more info on Mapping

Message Mapping Simplified (good examples of mapping function)

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Mapping functionality in XI

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a...

SAP Exchange Infrastructure - Graphical_Mapping

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6658bd90-0201-0010-fbb6-afe25fb3...

SAP Exchange Infrastructure - Graphical Mapping Exercise

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fd5ebd90-0201-0010-d697-91374d5b...

SAP Exchange Infrastructure - Graphical Mapping - Advanced

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f95...

SAP Exchange Infrastructure: Mapping Patterns - Understand Context Handling in Message Mapping - Webinar Powerpoint

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f...

SAP NetWeaver Exchange Infrastructure Mapping Troubleshooting - Webinar Powerpoint

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e01e9400-9e81-2910-20a5-a862945a...

Mapping Lookups a RFC API

XI 3.0 New Mapping Features

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1...

JAVA Mapping

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee5...

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

Java mapping using SAX parser

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

more @ https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingSample+Code&

check this blog for SAX parsing

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

Processing Large XML Documents Using SAX 2.0

http://www.oreillynet.com/pub/a/oreilly/xml/news/xmlnut4_0501.html

SAX programming examples

http://xerces.apache.org/xerces2-j/samples-sax.html

Programming the SAX interface

http://www.ibm.com/developerworks/xml/library/x-wxxm11.html

DOM mapping using SAX parser

have a look - https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/java%2bmapping%2busing%2bdom%2bparser

for DOM Parsing

http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/

The following websites give details regarding Java Mapping using DOM parser :

Excellent website showing how 2 use Document Object Model (DOM)

http://www.w3.org/DOM/

Document Object Model (DOM) Parsing

http://www.xml.com/lpt/a/1597

Overview of DOM, DOM Level 3 core,DOM Level 3 Load & Save

http://www.softwaresummit.com/2004/speakers/GrahamJAXP1.pdf

Sample java program using DOM

http://mail-archives.apache.org/mod_mbox/cocoon-cvs/200305.mbox/%3C20030520115923.60039.qmail@icarus...

Easy RFC lookup from XSLT mappings using a Java helper class

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc...

XML Transformation Using the TrAX APIs in JAXP

http://www.xml.com/pub/a/2005/07/06/jaxp.html?page=last

If u need to send the data to two different mapping then it can be possible in Xi.

Multi mapping:

A multi-mapping is a mapping program that is not restricted to the transformation of one source message to one target message. You have the following options:

You can use a multi-mapping in a transformation step in a integration process. In this case, the mapping runtime supports 1:n-, n:1, and n:m transformations. You can map any number of source messages to any number of target messages.

You can use a multi-mapping to map a message to multiple different (and generally smaller) messages during logical routing. Only a 1:n transformation is possible in this case.

http://help.sap.com/saphelp_nw04s/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/frameset.htm

Thnx

Chirag

Former Member
0 Kudos

Hi Prem

XI provides 3 standard ways of interface mapping between source and target.

Graphical mapping

Java Mapping

XSLT Mapping

Two more additional mapping types can be activated in XI by making changes to the exchange profile. Those two mappings are

ABAP mapping

XSLT mapping with ABAP Extensions

Graphical Mapping

Graphical mapping is a common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It hardly involves coding. (Exception - User defined functions). But sometimes with graphical mapping it is difficult to produce required output. For example ... text/html output, namespace change, sorting or grouping of records etc.

ABAP Mapping

A person comfortable with Object Oriented ABAP can go for ABAP mapping instead.

Java Mapping

Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.

SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.

XSLT Mapping

One can also think of Java mapping as another option but it is a bit complex and required knowledge of Java. In such cases, XSLT mapping can be the best approach to meet the requirements.

A few example cases in which an XSLT mapping can be used:-

When the required output is other than XML like Text, Html or XHTML (html displayed as XML)

When default namespace coming from graphical mapping is not required or is to be changed as per requirements.

When data is to be filtered based on certain fields (considering File as source)

When data is to be sorted based on certain field (considering File as source)

When data is to be grouped based on certain field (considering File as source)\

Advantages of using XSLT mapping

XSLT program itself defines its own target structure.

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.

XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.

File content conversion at receiver side can be avoided in case of text or html output.

Multiple occurrences of node within tree (source XML) can be handled easily.

XSLT can be used in combination with graphical mapping.

Multi-mapping is also possible using xslt.

XSLT can be used with ABAP and JAVA Extensions.

Disadvantages of using XSLT mapping

Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).

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.

XSLT mapping requires more memory than mapping classes generated in Java.

XSLT program become lengthier as source structure fields grows in numbers.

XSLT program sometimes become complex to meet desired functionality.

Some XSL functions are dependent on version of browser.

nested mapping is possible.

Former Member
0 Kudos

Hi,

Have a Look at the SAP Help document. It has all information on mapping.

[http://help.sap.com/saphelp_nw04/helpdata/en/2b/a48f3c685bc358e10000000a11405a/frameset.htm]

you can also check out basic blogs on Graphical mapping

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2792] [original link is broken] [original link is broken] [original link is broken];

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2171] [original link is broken] [original link is broken] [original link is broken];

Multimapping in interface mapping:

Do you mean using multiple mapping techniques in Int. mapping.

Yes it is possible, any mapping tpye can be used in sequence, but remember they should be from the same or underlying software component versions.

Reward points if useful.

Regards,

Abhishek

Edited by: Abhishek Vinayaka on Mar 7, 2008 5:30 AM