cancel
Showing results for 
Search instead for 
Did you mean: 

Want to learn Java Mapping

Former Member
0 Kudos

Hi All,

I want to learn java mapping for this, whic topics in i have to cover.Is there any thread which can guide me towards my goal?However I am good in core java,but even though not sure how to proceed towards java mapping.Plz guide me with whatever information u have in this regard.

Regards,

Neha

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

thanks all for ur replies ........... i think now with ur guidence i can go ahead towards java mapping specially thanks to kalyan for his step-by-step detail description

Regards

Neha

Former Member
0 Kudos

Hi Neha,

Plz go through these links,

refer these Blogs for Step-via step for java mapping

/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom

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

Java Mapping (Part I)

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/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

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingusingDOMParser&

/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava...

JAVA Mapping :If you have complex mapping in your scenarios and also some times if you have more than 100 field to map then better to choose the 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 exactly easy to develop either.

DOM and SAX are APIs

In NWDS we have to develop the mapping and create jar and archieve and import it under Iported archieved in IR. this can be used in Interface mapping.

See the below links so that you can have screen shots,...

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

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingSample+Code&

Testing and Debugging Java Mapping -/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

/people/swaroopa.vishwanath/blog/2005/06/29/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-ii

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

/people/amjad-ali.khoja/blog/2006/02/07/using-dom4j-in-xi--a-more-sophisticated-option-for-xml-processing-than-sap-xml-toolkit

/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file

thanks,

kalyan

Former Member
0 Kudos

hi neha,

<b> Java mapping!!</b>

It always help if you are good in core Java.

Prerequisites

Good Understanding of XML and XML Parsers (DOM and SAX) always helps

http://www.cafeconleche.org/books/xmljava/chapters/ch09.html

http://www.cafeconleche.org/books/xmljava/chapters/ch06.html

Steps for Java mapping

1. Design the code according to your requirement

2. Compile the Java file

3. Make the jar/zip file of the class file

4. Import the jar/zip file in the <b>imported archives</b>

5. While mapping you can use these Java mapping

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

http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/content.htm

/people/venkataramanan.parameswaran/blog/2006/12/12/java-mapping-to-handle-flat-files-in-sap-xi

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

/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

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/2.0/mapping%20w...

http://help.sap.com/saphelp_nw70/helpdata/en/26/5ccd3bb4560f01e10000000a11402f/frameset.htm

regards,

Ramesh P

Former Member
0 Kudos

Hi neha roy ,

These websites wil gain u confidence on Java Mapping :

Java Mapping

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

Runtime Environment (Java Mappings)

http://help.sap.com/saphelp_nw04/helpdata/en/bd/c91241c738f423e10000000a155106/content.htm

Java Mapping of Adapter-Specific Message Attributes

http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/content.htm

A Step by Step Image file to Image file Mapping and Conversion Using Java mapping

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

cheers!

gyanaraj

****Pls reward points if u find this helpful

former_member335553
Active Contributor
0 Kudos

Hi

when we have complex mapping structures in which graphical mapping might not be in handy we use java mapping

/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file

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

https://www.sdn.sap.com/irj/sdn/weblogs?

blog=/pub/wlg/1921

/people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping

sample code for java mapping

DOM PARSER API -


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

DOM ---

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/

SAX AND dom PARSER ( BY thorsten) -


example /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs java mapping example ( testing and debugging) /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio