cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA Mapping

Former Member
0 Kudos

Hi,

I have worked on Graphical mapping and XSLT Mapping. I want to do some scenarios using Java mapping. Can anyone give the detailed steps to work on Java Mapping. What are the softwares needed and their configurations. Also I want to know whether NWDS is compulsory to work on Java Mapping. Thanks.

Regards

Suresh

Accepted Solutions (1)

Accepted Solutions (1)

agasthuri_doss
Active Contributor
0 Kudos

Hi,

>>Java mapping you can use it for Validation....

>>NWDS with this you can compile your java code and Import. and NWDS is not compulsory..

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi Agasturi,

Thanks for the details. Insead of NWDS can we use java software to compile the code. So just by installing Java software (Iam having java_app_platform_sdk-5_02-windows) we can compile the code and create the jar file. Is this correct?. Thanks.

Regards

Suresh

Former Member
0 Kudos

Kasu,

Yes, using normal J2SDK you can compile and create Java mappings. But you need to have the following jar files in your classpath since Java mapping class requires this jar file.

j2ee\cluster\server0\apps\sap.com\com.sap.xi.services

Inside com.sap.xi.services folder you'll find the jar file.

--Archana

Former Member
0 Kudos

Kasu,

Yes you can. Take the simple example given in this weblog (java code given in the last):

/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

Hope this helps...

---Satish

agasthuri_doss
Active Contributor
0 Kudos

Dear Suresh,

Sure you can do it.

Regards

Agasthuri Doss

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Kasu,

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.

If you have any doubts please let me know I can very welcome to receive your queries.

Thanks and Regards,

Sekhar

prasanthi_chavala
Active Contributor
0 Kudos

Hello Kasu,

A tutorial for the methods of SAX and DOM you will find here:

<a href="http://java.sun.com/webservices/docs/1.1/tutorial/doc/">http://java.sun.com/webservices/docs/1.1/tutorial/doc/</a>

Hope it will helpful to you.

cheers,

Prasanthi.

Former Member
0 Kudos

Hi,

Its not necessary that NWDS is compulsory to work with Java mapping.

for java mappings you need jar file.

Just have a look at these links for mapping:

<a href="/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i:///people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

<a href="://

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm</a>

Regards,

Gunasree

Former Member
0 Kudos

<i>I want to do some scenarios using Java mapping. Can anyone give the detailed steps to work on Java

Mapping.</i>

Check this Weblog

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

<i>What are the softwares needed and their

configurations. .</i>

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

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

Bipin

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

1. for java mappings you need jar file for those mappings

(can be found in XI FAQ page)

2. there are many examples of java mappings in SDN blogs

just type on google.com java mapping site:sdn.sap.com

(some with code included)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>