cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between different mappings

Former Member
0 Kudos

Hey guys...

I have one query regarding different types of mappings available in XI...

when and where these different types of mappins are used ( ex : java mapping...????, ABAP mapping..????, XSLT Mapping...??? Graphical Mapping...???? something like that?)

could pls help me for the same...

Cheers.,

Stallin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Stallin,

I thought i will start of from scratch.Mapping is basically done to convert one form of xml into another form. This can be done using either of them mentioned below.

- Graphical mapping

- XSLT mapping

- JAVA mapping

- ABAP mapping

There is no hard and fast rule for using the mapping techniques. But, I will try to put things in the right perspective for you.

Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.

Java and XSLT mapping are used when graphical mapping cannot help you.

When the choice is between Java And XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perfrom something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for 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.

To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following 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

/people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview

http://www.sapgenie.com/netweaver/xi/mapping1.htm

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

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

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

ABAP mapping

/people/r.eijpe/blog

To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:

http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf

To get an idea as to what value mapping is, please go thru the following links:

http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm

most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.

Hope this clears your doubt fully.

Regards,

Abhy

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Stallin,

usually you would choose XSL or grafical mapping, coz both is "quite easy" to implement. My favourite is XSL, but this my personal affection. Both are extensiable with Java parts for more ambious requirements.

For the grafical mapping you have to build the datatype correctly - so if you have the datatype anyway imported, RFC or IDoc communication - there is an argument for message mapping.

Some kinds of logic are a little bit complex in grafical mapping. In that cases it is easier to use XSL.

I never needed a pure Java mapping in the praxis. I tested them and found a very good stability for big messages if you use the SAX parser. It can be useful even if you want to get data from other applications during the mapping.

ABAP mappings are choosen if you want to get data from SAP tables from XI server. In the praxis i used some ABAP mappings for string operations, like change the XML declaration.

Regards,

Udo

Former Member
0 Kudos

Thank you buddy... for a quick responze..

Cheers.,

Stallin

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

depends on your scenarios

if you mapping is easy you can use

graphical of XSLT

if it's difficult to implement by using

one of the above you can use ABAP mapping or java mapping

(which one you like - more familiar with)

Regards,

michal

Former Member
0 Kudos

Hi michal,

thankz for a quick response....

but still I need a detailed answer for this...

could you please...!!!!!!!!!!1

Cheers.,

Stallin