on 01-23-2012 5:59 AM
Hello Everyone,
I want to implement an UDF in PI mapping which is having 8 values as input and 2 values as output.
I need to carry out the calculations on these 8 values using the matrix provided
and need to map the two output values to two target fields of an IDOC.
I am not an expert in JAVA coding. Can you pls help me out with a better approach for an UDF and if possible provide me the sample code for the same.
Regards,
Pranil.
which version of PI u r working on??
If (>) PI 7.1 then u can create a udf with two resultlist...
and then map the output of UDF to 2 target Idoc fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u can search SDN for sample code. In ur case u have to define a UDF with below parameters:
Chosse execution type: all values of a context
under signature variables define 8 input variables of type "Argument" and 2 variables of type "Result"
BTW whats ur UDF logic..u can paste here so that someone can help u
let me give u a simple example:
suppose i have to create a UDF for splitting a string "123-456" and map the output to 2 target fields.
my UDF will be :
execution type: all values of a context
Input will be : var1 as argumnet type
result1 as Result type
result2 as Result type
String delimiter ="-" ;
String[] temp = var1[0].split(delimiter);
result1.addValue(temp[0]);
result2.addValue(temp[1]);
mapping:
/ TargetField1
Input -----UDF-----
\ TargetField2
Hello,
PI mapping which is having 8 values as input and 2 values as output.
I need to carry out the calculations on these 8 values using the matrix provided
and need to map the two output values to two target fields of an IDOC.
If you can give more information about these inputs, maybe we can help you more.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
need to map the two output values to two target fields of an IDOC.
you have to write 2 UDF's for 2 Target fields .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
write 2 user defined function for 2 target fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.