on 08-24-2007 12:43 PM
Hi everybody!
I have to concatenate log texts supplied via IDoc segments into one string. There can be zero or more segments, each with one line of the long text. The result should be one single string field filled with all the lines concatenated.
What's the easiest way to achieve this result? Do I need a user-defined function or can I code this using standard built-in funtions (this solution would be preferred)?
Regards,
Joerg
Use the UDF with the following logic.
Take the input type as Queue of the Segments
Concatenate the temp = temp + a<i> in the loop
return the temp.
<b>UDF as follows:</b>
String temp = " ";
for(int i=0; i< a.lenght; i++)
{
temp = temp + a<i>
}
return temp;
Your probelm will solve with the above UDF.
Warm Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use of User Defined Functions is always preffered over UDF.
Use Standard Node Functions like Concat to append string.
It would be better if you could set contexts appropriately to segement level for all line elements.
Regards,
AKshay.
Dont forget to give points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.