cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI/PO genereal question on a mapping

0 Kudos

Hi All,

Just a question on graphical mapping in SAP PI/PO around something.

<Node>

<Field1>

<Field2>

<FIeld3>

<Node/>

Requirement: Add values of Field3 where Field1 Field2 are unique.Just be more clear, here is an exampe data

<Node>

<Field1>Name</Field1>

<Field2>Test</Field2>

<FIeld3>3<FIeld3>

</Node>

<Node>

<Field1>Name</Field1>

<Field2>Test</Field2>

<FIeld3>4<FIeld3>

</Node>

<Node>

<Field1>Name</Field1>

<Field2>Test1</Field2>

<FIeld3>6<FIeld3>

</Node>

Output should be:

<Node>

<Field1>Name</Field1>

<Field2>Test</Field2>

<FIeld3>7<FIeld3>

</Node>

<Node>

<Field1>Name</Field1>

<Field2>Test</Field2>

<FIeld3>6<FIeld3>

</Node>

Any thoughts?

Accepted Solutions (0)

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor

Hi,

There is no need for UDF.

For node:

For field1/field2

For field3

Test:

Regards,

Mark

Harish
Active Contributor
0 Kudos

Hi Shyam,

This can be achieved using udf. try the below mapping

Concat (Field1 and Field2) --> remove context --> split by value (value change) --> input 1 for udf

Input 2

Field3 with remove context

UDF (Context UDF)

loop the input 2 with the occurrence of input 1 and add the input values.

Hope this can help.

regards,

Harish

0 Kudos

Let me try this.