cancel
Showing results for 
Search instead for 
Did you mean: 

My First Java Mapping in PI 7.1

Former Member
0 Kudos

Hi, i'm having a problem with my first Java Mapping in PI 7.1

I was reading examples and i create a class that extends "AbstractTransformation", there's a "transform" method and it request two params with "TransformationInput" type.

I created a main method to test it, but i have a problem converting the InputStream to TransformationInput.

Anybody had this problem?

Regards,

Sebastián.

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Sebastian,

Trasform method is like a main method in JAVA Mapping,the execution starts from the trasform method,TrasformationInput method reads the input from Input stream reader,and TrasformtionOut write out in in output stream.

public class FirstJavaMap extends AbstractTransformation {

public void transform(TransformationInput in,TransformationOutput out)

throws StreamTransformationException {

try{

your logic...

}catch(Exception e)..........

like that

refer below link ,it helps you...

http://help.sap.com/saphelp_nwpi71/helpdata/EN/43/bc2fd4da1e1bbce10000000a1553f7/content.htm

Regards,

Raj

Former Member
0 Kudos

Thank you very much Raja.

Now i understand... i'll test your recomendation.

Thank you again.

Regards,

Sebastian

Answers (0)