Skip to Content
0

​Simple UDF for Concatenate multiple input fields

Mar 06, 2017 at 10:14 AM

293

avatar image
Former Member

I have a requirement to Concatenate More then 20 fields in message mapping .

Difficult to use standard Concatenate function in such scenario .

Can you please suggest me how to write simple Concatenate function in PI (Grahical mapping)

I tried by creating UDF with Execution Type as Single Values ( for example var1 ,var2, var3)

// Java Code

String JainOutput ;

JainOutput = Var1 + Var2 + Var3

But It is throwing error. Can any one provide me exact logic how to write for concatenate multiple values

Jain

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Iñaki Vila Mar 06, 2017 at 03:07 PM
0
example.jpg

Hi Jain,

Your code seems to be ok, you would only need to return the output, check my attachment.

You should consider if the values are in the same context.

Regards.


example.jpg (76.3 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

ThankQ ..

0
Raghuraman S Oct 18, 2017 at 12:46 PM
0

What is the error thrown?

Share
10 |10000 characters needed characters left characters exceeded