cancel
Showing results for 
Search instead for 
Did you mean: 

Different types of Mapping in XI

Former Member
0 Kudos

Hi All,

I am new to XI, I know different types of Mapping in XI.

when we are using this mapping?

1. Graphical Mapping

2. Java Mapping

3. XSLT Mapping and

4. ABAP Mapping

Please give detail.. it's helpful to me...

Thanks & Regards

SReddy,

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member91687
Active Contributor
0 Kudos

Hi,

Just to add to all the info on mappings,the grphical and the java mappings are the mappings by default in xi. The abap and xslt mappings have to be activated which can be done by setting a few parameters in the exchange profile, you can check with your support team if this had been done.

you can search sdn to get some good docs on each of these mappings. You can also go through this link:

http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm

Cheers,

Chandra

0 Kudos

Hi,

Just a small correction: graphical, java <i>and XSLT</i> are enabled by default. ABAP and <i>XSLT in the ABAP stack</i> must be explicitly enabled in the Exchange Profile before they can be used.

BTW, if anyone can come up with a good reason to use XSLT in the ABAP stack, I'd really like to see it.

Regards,

Thorsten

Former Member
0 Kudos

Hi Reddy,

We have to choose the technique for mapping after analysing the volume and frequency of messages and the complexity.

Take XSL:

. If performance is NOT the bottleneck: less or small messages, asynchr messages, no problems with queueing

. If the mapping logic is complex

. If the mapping has to be good maintainable (a lot changes of mapping logic)

. Take graphical mapping if performance is a bottleneck

. Take ABAP 4 access to ABAP stack (for example database tables)

. Take Java 4 special requirements where u cant solve problems with graphical or XSLT mappings

Regards,

Mani

Former Member
0 Kudos

Hi Mani,

>>>>>>Take ABAP 4 access to ABAP stack (for example database tables)

Can you please let me know in detail in what situation we use ABAP mapping (real scenario , with little bit coding is helpful)

Thanks in advance

Andy

Former Member
0 Kudos

Hi Reddy,

Check this link which gives info of various mappings:

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

http://help.sap.com/search/highlightContent.jsp

XSLT Mapping : http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm

Java Mapping:

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm

Regards,

Mani

former_member185846
Active Participant
0 Kudos

Hi,

Check out the following thread

Rgds,

Jothivel.

Former Member
0 Kudos

Hi Reddy,

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

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

/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

JAVA mapping

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

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

PS: AWARD POINTS FOR HELPUL ANSWERS.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi reddy,

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.

For further info on each of the mapping, refer to these 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

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

DOM parser API

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

Hope this info helps,

Do let me know if you have any clarifications,

Regards,

Bhavesh

PS do award points for useful answers

Former Member
0 Kudos

Hi Bhavesh,

Thanks for response....

i need clearly with Scenario and which situation we are using 4 types of mappings...

When we are using Graphical Mapping ?

When we are using JAVA Mapping ?

When we are using XSLT Mapping ?

When we are using ABAP Mapping ?

Thanks and Regards

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Reddy,

Graphical Mapping. Consider this scenario,

In this case, in the src, multiple details can occur and multiple names can occur in a single detail.but, in the destination, for every occurence of name in the source I want a detail tag to be generated. This can be done using COLLAPSE CONTEXTS. refer to this link for the same,

http://help.sap.com/saphelp_nw04/helpdata/en/4b/d11e3e1c3b120ae10000000a114084/content.htm

<src>

<details> 0 to UB

<name> 0 to UB

</name>

</details>

</src>

<tgt>

<details> 0 to ub

<name> 1..1

</name>

</details>

</tgt>

XSLT Mapping

The same scenario, say you need to count the number of entries of name or you need to sort the enrties on the basis of the names, so on and so forth.

Java Mapping,

The same scenario, say you want to replace the name with the register number by doing a database look up. Also, you want to validate the entries of name, by giving the output to only details where the name is available in the database, etc.

The scenarios in which you use these mappings will vary, but once u understand the functionalities provided by each of these mapping thechniques, you will easily make the choice.

Regards,

Bhavesh

PS do award points for useful answers