cancel
Showing results for 
Search instead for 
Did you mean: 

Scenario using Java Mapping....

Former Member
0 Kudos

Hello All,

I have a scenario:

I have a Java code in which we first check the Payload and then put that Payload in

file system. Then we load a a file and we match the criteria in the file according to which we do transformation. From file we takes out the following information:

1) To

2) From

3) Message Type

4) Number of Tranformation

Suppose there are 3 transformation

Then this java code find which Stylesheet to apply for which transformation and call the stlysheet and do the transformation. And after every transformation we call a code that writes a output of the transformation on the file system and give this output to other stylesheet also.

Now i want to use this code in PI using Java Mapping So can anyone explain how to do this using Java Mapping.

Thanks and Regards

Hemant

Edited by: hemant gupta on Apr 15, 2009 12:05 PM

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

CLose

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Hemant,

Your requirement not generic requirement,its very specific to you only,

how to develop java mapping depends on your java programming skills,

create project in Eclipse or NDWS and add aii.map.api.jar file to your project.

write below method in your class and write your logic according to your requirement

public void execute(InputStream in, OutputStream out)

throws StreamTransformationException {

you need some prgramming skils in JAVA and Parcers.

Regards,

Raja Sekhar

Former Member
0 Kudos

Hi Hemant,

Please have a look on the following blog

[http://www.riyaz.net/blog/xipi-java-mapping-demystified/]

Also go through the sap help document for Java Mapping

[http://help.sap.com/saphelp_nwpi71/helpdata/en/43/a6ec37a9151bbce10000000a1553f7/content.htm]

Hope this should help you.

Regards,

Jitender

Former Member
0 Kudos

please help