cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping error

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Srini,

cC is the constant ResultList.CC (Context Change). Before passing the TDLINE to the user defined function, use 'removeContexts' or right click on the TDLINE and set an appropriate higher context.

Regards,

Eshwar

Former Member
0 Kudos

Thanks Eshwar. issue is solved.

Former Member
0 Kudos

If the answer was useful, then please award points.