cancel
Showing results for 
Search instead for 
Did you mean: 

Mappings in XI

Former Member
0 Kudos

We have diffrent mapping types in XI like message mapping, java mapping, ABAP mapping and XSLT mapping. Can anybody explain me why these many types of mappings are required?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Adding to my above answer

which mapping would be better in performance

Actually the four mappings are equally used for same.

But when u consider the graphical mapping,when the source structure is large then it becomes complex.But Graphical mapping and java mapping have the same performance.

Just go through this link.

Thanks

Vikranth

Former Member
0 Kudos

Thanks for your quick reply.

Former Member
0 Kudos

Hi,

Thanks, Hope you understood. Please reward points and close the thread if it helps.

Thanks

Vikranth

Former Member
0 Kudos

Ok.. so based on performance we can decide which mapping we can go for. Or based on the expertise you have i.e., whether the ABAP/Java you select any of the mapping.

Otherthan these two, is there any technical difference.. that in these cases this mapping should be used and in other cases other maping should be used?

Former Member
0 Kudos

Hi,

Based on expertise you can select the mapping. But XI has given you the standard option ie graphical mapping. Suppose if your graphical mapping is too complex then go for ABAP/JAVA/XSLT mappings.

Thanks

Vikranth

Former Member
0 Kudos

Hi Radha,

For simple scenarios we will go for graphical mapping.

In some complex scenarios it may not be possible if we go with graphical mapping. In those scenarios we will check for that particular scenario which mapping will be useful......

For some situations if we go with XSLT mapping that may be easy rather than going for ABAP or JAVA mapping.

For some scenarios going with JAVA mapping is easy than going for ABAP or XSLT mapping.

That exactly depends on the requirement.

venkatanarayana_vagu
Active Participant
0 Kudos

HI

Usually Java mapping is preferred when the target structure is relatively complex and the transformation cannot be accomplished by simple graphical mapping.

When to use Java mapping

1) Java mapping are used when graphical mapping cannot help you.

Advantages of Java Mapping.

1)you can use Java APIs and Classes in it.

2) file look up or a DB lookup is possible

3) DOM is easier to use with lots of classes to help you create nodes and elements.

Java mapping can be used when you have complex mapping structures.

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...

https://

Check these for JAVA Mapping

Testing and debugging

Implermenting JAVA Mapping in PI

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/400ee77e-f9d6-2a10-2b8c-99281a4d...

XSLT mappings can be imported into the Integration Repository; java methods can be called from within the XSLT style sheet. Advantages of this mapping are: open standard, portable, extensible via Java user-defined functions

XSLT Mapping

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb9...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae...

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rn...

XSLT MAPPING:

Generic XSLT Mapping for SAP XI,Part I

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2e...

Generic XSLT Mapping for SAP XI,Part II

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923...

XSLT: Recursive Templates

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...

Step u2013 By u2013 Step Simple Approach for XSLT Mapping

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 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.

Former Member
0 Kudos

Thank you for your information.

Radha.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

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. A person comfortable with Object Oriented ABAP can go for ABAP mapping instead. 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.

Thanks

Virkanth