cancel
Showing results for 
Search instead for 
Did you mean: 

Node mapping condition

Former Member
0 Kudos

Hello experts

There is a mapping requiremnt and i don't quite know how to achieve it. Hope to get some hints on how to do it.

I have a source file

<line> unbounded

<field1>

<filed2>

<field3>

</Line>

My taget is Idoc

<e1xmbh>

<e1mbxy1>

<Zitem>

<field1>

<field2>

.

.

.

</Zitem>

</e1mbxy1>

<e1mbh>

now i need to creat<Zitem> node based on a condition : if field1 (concat) field 2 combination is same( from the root context) then the Zitem must be in the same <e1mbxy1>

if field1 (concat) field2 combination is different from the previous one from the queue then the Zitem should belong to next existence of node <e1mbxy1>

It is quiet hard to explain but hopefully someone has an answer for it .

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to create 2 UDFs to achieve what You want.

1st: to create <e1mbxy1> nodes

field1 (concat) field 2 >>>>UDF1>>>>>>e1mbxy1

2nd: to put the individual values <field1>,<field2>... in the correct target node.

field1 >>>>UDF2>>>>>>field1

Regards

Ivan

Former Member
0 Kudos

Hi Ivan

I have the e1mbxy1 node mapped correctly . I am having problem with Zitem node. other than that what kind of UDF's should i use . context change UDF's ? if so could you give an example logic please. Thanks a lot .

Answers (0)