cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping

Former Member
0 Kudos

Can I get a step by Step Procedure on the Java Mapping please, with a very simple example.

Thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

For Java Mappin u need two API jar files:

1. aii_map_api.jar

2. dom4j-1.3.jar

Then mappin code written in java class which implements the stream transformation interface.This class contain execute mehtod in which u hav to write the code(mappin u hav to done). this method contain input and output stream as arguements.

after tat u hav to compile the .java file and zip both .java and .class file.

then u hav import tis zip file as imported archive.

In interface mappin choose mappin class option and browse usin browsin button to get the zip file class.

Hope this helps u out.

Regards

Victoria.

MichalKrawczyk
Active Contributor
0 Kudos

Hi Mohan,

have a look at this example :

https://www.sdn.sap.com/irj/sdn/elearning?class=/sdntv/main.asp?mediaId=109

Regards,

michal

Former Member
0 Kudos

Thanks Michal & Raj for your help.

Michal : How to or where to see the SAP Tutor Files Please?

Thanks.

Note : I couldnt assign points, because that option is not even appearing.

Former Member
0 Kudos

Mohan,

To assign points you need to create your thread as question, which you select using a checkbox.

In the link I sent , it contains all the tutor files. You need to download tutor software which you can find it on the same page.

Thanks,

Raj.

Former Member
0 Kudos

Sorry Mohan,

I am not sure, whether there is exactly Tutor files for Java Mapping.

/Raj.

Message was edited by: Raj

Former Member
0 Kudos

Thanks Raj. I went into more Demo Tutorials, but I dont see anything.

former_member91687
Active Contributor
0 Kudos

Hi Mohan,

In Java Mapping, you parse the source XML structure using DOM parser or SAX parser.You would find all the classes methods etc to go about learning and implementing the java mapping using either of the parsers at sun.java.com, one such exhaustive resource can be found here:

http://java.sun.com/webservices/docs/1.1/tutorial/doc/

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

To give you a brief idea about how to go about java mapping, these are the steps you would be doing:

You need to have NWDS installed on your system. Once this is done these are the steps you need to follow to write the program and to be able to use it in the directory:

1. Write your java program.You need the libraries aii_map_api.jar and inqmyxml.jar.You can use SAX or DOM for navigating through the source XML and creating the target XML.

2. Create Jar file. After compiling your program, you have to create a jar file. The content of the jar file have to be all classes and libraries you need for the mapping program to run.

3.Load the JAR file into the IR.Go to the Integration Repository. Under your Software Component and Namespace you create a new Mapping Object ‘Imported Archive’. Inside this object you upload the jar file.

4.Attach Java mapping to an interface mapping.

Create a new Mapping Object ‘Interface Mapping’, chose the interfaces you want to map. To attach the Mapping to the request or response, use ‘value help’ and chose ‘Java Class’. Chose the Java Class with the corresponding mapping. After saving and activating the change list, you will be able to use the Mapping in the Integration Directory.

<b>SAX PARSER:</b>

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

<b>DOM PARSER</b>

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

Regards,

Chandra

Former Member
0 Kudos

Hi,

Please find this document, may be useful.

http://help.sap.com/bp_bpmv130/index.htm

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

/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi

/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners

//Raj.

Former Member
0 Kudos

Ram,

Also if you want SAP Tutor Files, Please follow this link.

http://help.sap.com/bp_bpmv130/index.htm

Former Member
0 Kudos

Thanks a lot Raj. I need more help on the Tutor files.

1) http://help.sap.com/bp_bpmv130/index.htm

2) Selected Business Information

3) Demo Offering

But I didnot see anything relevant to Java Mapping.

4) Selected More Demo Tutorials ( Right Side)

5) Logged into Service.sap.com, but I could not find more Demo Files.

Could you please help me Raj. Thanks.