Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Multiple Source segment field value add up to generate 1 target for that combination

$
0
0

Hi All,

I need urgent help. I have a new requirement.

Scenario is AS2 to File and it has already been developed correctly but a new mapping needs to be added to the current scenario.

I have a source structure with header and line item details

<ns1:MessageLine>

<ns1:Lineitem>000010</ns1:Lineitem> <ns1:Material>AA100</ns1:Material> <ns1:Qty>150</ns1:Qty> <ns1:Batch>ABC</ns1:Batch>

</ns1:MessageLine>

Now if the source contains more than 1 combination of Lineitem, Material and Batch, target should be generated with only 1 occurrence of this combination of Lineitem, Material and Batch with the Qty added up.

The message can contain more MessageLine segments with different combinations.

For example, if the same combination appears 3 times, the Qty field value has to be added up and instead of generating 3 segments in target, only 1 segment needs to e generated.

Please help.

Regards,

Archana


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>