on 12-28-2009 6:14 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.