Showing results for 
Search instead for 
Did you mean: 


Former Member
0 Kudos

In which case we go for ABAP-MAPPING&JAVA MAPPING?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Praveen,

Addition to the replies...chk out the Performance comparison of Mapping Programs:


u can also chk out ..

ABAP mapping

Java Mapping





Active Contributor
0 Kudos

ABAP mapping makes more sense if you have a requirement wherein you need to perfrom multiple RFC classes for RFC Lookup's etc as you can do this very easliy using your ABAP code.

Java Mapping provides a easier means to use Java API's and it uses SAX parser which provides better perfromance while ABAP Mapping uses DOM Parser which can cause a perfromance bottleneck.

Java Mapping advantages

1)It support Parsing Techniques.

2)It is very easy to use and execute through developing by code.

3)Easy to implement Interfaces.

4)In java Mapping we can achieve even the Interface(outbound and Inbound)

structure are too difficult.

ABAP Mapping provides advantages

1.SXI_MAPPING_TEST is a very good transaction for debugging and testing mapping environment of XI.Iam not sure wether java mapping can be tested after deploying it on XI.

2.ABAP Mapping is well integrated with the XI and also version control becomes very easy as it is provided by the SAP transport system.

3.ABAP also provides user rich/simple API's as java.

4.Support of XI in ABAP would make sustanenace easy as it is going to be a more SAP product and ABAPers are more available in ERP background.


Former Member
0 Kudos


If the requirement is complex and Sophisticated we go for the the ABAP Mapping ,JAVA MAPPING and XSLT MAPPING.


ABAP mappings are mapping programs in ABAP objects that customers can implement using the ABAP Workbench.

An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING. The interface has a method EXECUTE with the some signature.

Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly rather than using ABAP mappings.

In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings, although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE


Start with this...........


This document will help you to create ABAP Mapping .

See the below links related to ABAP mapping.

abap mapping - /people/alessandro.guarneri/blog/2006/03/05/managing-bulky-flat-messages-with-sap-xi-tunneling-once-again--updated

/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping - Using ABAP XSLT Extensions for XI Mapping

The mapping comparisons


The How-to-guide

Testing ABAP Mapping


An ad-on [original link is broken] [original link is broken] [original link is broken]


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

For e.g. consider a simple File->IDoc scenarion where the source file is a simple XML file, whereas the target file is an IDoc with more than one hierarchy level e.g FINSTA01. Content conversion in XI can only create a single level hierarchy, so in this scenario a Java mapping would come in handy.


you can use Java APIs and Classes in it.

file look up or a DB lookup is possible.

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.

Check these for JAVA Mapping

Testing and debugging


Implermenting JAVA Mapping in PI


Java Mapping

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

We can do most of the times for our requirements through Graphical mapping.

When the structures are very complex to build you can go for SAX (Simple API for XML) or DOM (Document Object Model) parsers.

Message mapping internally generates DOM parser.

Java Mapping in XI

SAP Network Blog: Implementing a Java Mapping in SAP PI


Java Mapping (SAP Library - Partner Connectivity Kit)

SAP Network Blog: XI Java Mapping Helper (DOM)


SAP Network Blog: Testing and Debugging Java Mapping


Binary Conversion in XI - Java Mapping - Code Gallery - Wiki

SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file






/people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings [original link is broken] [original link is broken] [original link is broken]

See these:




Former Member
0 Kudos

Hi Praveen,

If you want to reduce your mapping /transformation time

its better to do the mapping in ABAP/ABAP XSLT.

When we handle a large message transformations using Java mapping inside SAP XI it will take more time than the counterpart.



Former Member
0 Kudos


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.

Disadvantages of Java mapping


1)SAX parser is not easy to develop

2)DOM parser is intensive

3) Java knowledge is required

4) bit complexer

Advantages of Abap Mapping


1) A person comfortable with OOABAP can go for ABAP mapping instead.

Disadvantages of Abap Mapping


1) Abap knowledge is required

2) bit compexer