cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi ,

I need one help .

I want to contcat the one of the IDOC fields occurance in a single string. Please let me know how to user.

For Ex. I am mapping one field of Idoc ex TDLINE --> Extrinsic (0.. Unbounded)in the output side.

In the Input side the TDLINE fields appears multiple time. in the current mapping I have one to one mapping between TDLINE and Extrinsic fields. So it creates the same number of Extrinsic fields as I have TDLINE fields at input side.

What I want to do , I want to create a single Extrinisc fields at output side for all the TDLINE fields.

For Ex. At particaular segment I have 10 fields for TDLine then all should come as Single string at out put side.

Note . No of Occurance of TD line is 0.. unbounded).

Please give ur suggestions for the same.

0 Likes
View Entire Topic
former_member267355
Active Participant
0 Likes

Hi,

Try using standard function

Text -> concat

or create an user define function.

Regards,

Sakthi

Former Member
0 Likes

Thanks , can you please give us what Udf , I need to write for the same. I am not able to understand how to write this logic. ur efforts will be appreciable. thanks

Former Member
0 Likes

your required string = input string1 + string 2 + string 3.....

you can implement in Java ...using User defined option , best to go is graphical mapping where you have CONCAT function add other imput by dragging then in graphical area

kindly rewards point

Regards,

Pranshu

Former Member
0 Likes

TDLINE--> removeContext->UDF---> target ..either use remove context or change the context of source to uppermost element...

here is the code

UDF: [ Queue]

StringBuffer sb= new StringBuffer();

for(int j=0;j<input.length;j++)

{

sb.append(input[j]);

sb.append(" ");

}

result.addValue(sb.toString());