cancel
Showing results for 
Search instead for 
Did you mean: 

What is Java Mapping

Former Member
0 Kudos

Hi,

I am new to XI. What is JAVA mapping and how can i do that.

Thanks,

anil

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Java Mapping is used when the mapping is complex

Few links:

/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

we develop java code in any IDE..mostly we can use SAP netweaver developer stuido..

1) we can develop the java mapping using SAX or DOM parsign techniques.

2) Create java code with out main method.

3) Create the jar file in the commond promot.

4) we will be using the jar file in to IR.

5) Open Ir and go to your software component and select the Imported objects and select new and give the name and select the your jar file which you created and save it.

6) Go to interface mapping and select the class as java and select the mapping program of java.

Regards

Former Member
0 Kudos

Hi,

It is mapping technique,

Actually we have two mappings , one is Value mapping second is structure mapping , In structure mapping we have 4 types of mapping techniqes

Message mapping,Java mapping,ABAP mapping, XSLT mapping .

When we have complex rules and more no of coulmns , then we choose Java mapping technique,

To develop Java mapping we wll use NWDS(netweaver Developer studio) or Eclipse and mke the jar and import it in IR under Imported Archieves and we will use it in Interface mapping .

In java mapping we have two general parsers like DOM and SAX, we have another parsing techinques like Stax.....

On how to create XML docs with SAX and DOM go thruugh these links:

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

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

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

Also please see the below links

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs - SAX - DOM 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/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=...ValidationsinSAPXI-ACaseStudy.pdf

or

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dc...

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

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

Check these blogs for reference..

/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs

/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

Regards

Chilla

former_member335553
Active Contributor
0 Kudos

Take the simple example given in this weblog (java code given in the last):

Hi

Java Mapping is one of the mapping techinuqe which xi supports,

There are few steps which you need to follow while doing java mapping.

Steps:

1)you need to use any parsing Technique either DOM Or SAX.

2)Develop your java class with out main method in Netweaver Developer stdio.

3)Need to create a jar file in the Cmd(commond line promot.

Commond for creation of jar cf name.jar filename.class

4)import your jar file in to IR.you can see Imported Objects under software component.Right click on the Imported Object and select New and enter the name and browse your jar file and select the corresponding jar file which you created and click save and activate.

5)when you are doing Interface Mapping you need to select as Java calass and select the Mapping program and after the process is same as normal.

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

So create an ear file and deploy it in XI server. Here you can use NWDS or any other tool to create a ear file.

Some examples of java mapping are given here:

/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