on 03-22-2007 1:40 AM
Hi All,
How we are writing the JAVA Mapping program in XI? Where we can write the JAVA and how we will use in Interface Mapping?
Regards,
SReddy
Ref: /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reddy,
We can implement mapping programs in Java. To process XML documents, use Java API for XML Processing (JAXP), for example. The JAXP supports the Document Object Model (DOM) and the Simple API for XML (SAX). This gives us great flexibility for mapping definitions with Java.
The message is transferred to a Java program as an inbound stream and can be imported using any parser (for example, SAX or DOM). The modified message is then transferred to an outbound stream.
A Java program can also be a help program that in turn is used in another Java program or self-defined functions of a message mapping.
For more on <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm">JAVA Mapping</a>
Also check these links for more help on JAVA Mapping:
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/c91241c738f423e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/c91241c738f423e10000000a155106/frameset.htm</a>
<a href="http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/package-summary.html">http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/package-summary.html</a>
For Interface Mapping:
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/4f/ef761a5ecfb1418b79896e10fe4c57/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/4f/ef761a5ecfb1418b79896e10fe4c57/frameset.htm</a>
Also check the similar question as yours:
Regards,
Subhasha Ranjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi S reddy,
SAP XI has come with option such way that,you can use java to implement the complex business requirements.
<b> How to Develop:</b>
1) You need to develop java code in Eclipse or Netweaver developer studio.
2) Write java program with out main method.
3) Implenenting java program you need to use any parsing techniques.
4) The parsing technique you can use either SAX or DOM.
5) The above both parsing techniques will support XI.
6) After successfully completed your java program,create a jar file.
IR Part:
When you are using java mapping you no need to implement Mapping Program in IR.you will be using the java program.
1) Open IR and go to the corresponding your SWC and right click on imported objects and enter the name of the Imported objects and select your jar file.
2) go to Interface mapping under class option please select java and select mapping as imported object file name and select remaining things as usual.
Hope i am clear...!
Please let me know if you have any queries...!
Thanks and Regards,
Chandu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
For JAVA mapping you would have to write the javamapping code in Netweaver Developer Studio NWDS,, and make the Jar , and zip /archieve and come back to IR, under imported archieves , import the zip file. Later goto Interface mapping ,select source and target message interfaces and select inthe bottom side select the imported archieve/zip for java mapping.
see the below links
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
i%2Fxi-design_configuration%2FFileValidationsinSAPXI-ACaseStudy.pdf
or
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The java mapping code is written in Netweaver developer studio and u have to import in interface mapping as jar file.
We will use DOM and SAX parsing methods in order to build the xml format.
Do refer to the below 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
Cheers,
Prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.