on 2008 Jun 26 12:15 PM
Hi Praveen,
Addition to the replies...chk out the Performance comparison of Mapping Programs:
/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
u can also chk out ..
ABAP mapping
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
kanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
If the requirement is complex and Sophisticated we go for the the ABAP Mapping ,JAVA MAPPING and XSLT MAPPING.
ABAP 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
http://help.sap.com/saphelp_nw70/helpdata/EN/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm
ABAP MAPPING:
Start with this...........
/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
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
/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
The How-to-guide
Testing ABAP Mapping
/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
An ad-on
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4482. [original link is broken] [original link is broken] [original link is broken]
JAVA MAPPING:
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.
Advantages:
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
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Implermenting JAVA Mapping in PI
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-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
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
Java Mapping (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
SAP Network Blog: XI Java Mapping Helper (DOM)
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
SAP Network Blog: Testing and Debugging Java Mapping
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
/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/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
/people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5242. [original link is broken] [original link is broken] [original link is broken]
See these:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
/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
cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Cheers.
Sunil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
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
Thanks,
RamuV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.