Skip to Content
0
Former Member
Mar 16, 2007 at 07:04 PM

Message Mapping error

35 Views

Hi Experts,

My Input structure is complex structure. here is the example

Source Structure

ZEmployee

Data

-- Employee first name

-- Employee Last name

-- Employee number

-- Employee Joining date

-- Employee Joining time

-- Lines occureance ( 0 .. unbounded)

-


TDFFORMATE

-


TDLINE (0..1)

Target Structure is

ZEmployee

-- Employee first name

-- Employee Last name

-- Employee number

-- Employee Joining date

-- Employee Joining time

-- Employee Notes

In my scenario i need to concatenate all the TDLINES and pass to Employee Notes in the target for each employee. I Have written the User Defined Funcion to concatenate all TDLINES and pass to Employee notes. I facing the problem here.

In the target XML:

<EmployeeNOTES>Problem Description<b>__cC_</b>16.03.2007 11:38:57 20156600<b>__cC___cC_</b>testing problem description<b>__cC_______________________cC_</b>Escalation Note<b>__cC_</b>16.03.2007 11:38:57 20156600<b>__cC___cC_</b>escalation note</EmployeeNOTES>

I am not able to find why __cC___ is appending at the end of each TDLINE concatenation.

UDF:

String output=new String( );

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

output += a[j];

{

rsult.addValue(output);

}

Can any one help to resolve this issue.

Regards,

Srini