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