Hi All,
We have a requirement where the target quantify field needs to be populated based on the below logic.
i.e; Target structure is based how many times source carton segment exists.Now coming to target Qty field logic is based on order on CartonSegment InvoiceNo.
Need to consider first two columns pair i;e; of Invoice segment InvoiceNo and Qty and pass to the target based on order of InvoiceNo of CartonSegment
We have tried hashmap it worked for single invoice structure but not working for multiple Invoices because of duplicate values.
Any Idea on how to achive this.
Source-InvoiceSegment | Source-InvoiceSegment | Source-CartonSegment | Target | |||||
InvoiceNo | Qty | InvoiceNo | Qty | |||||
10 | 700 | 20 | 800 | |||||
20 | 800 | 10 | 700 | |||||
30 | 500 | 20 | 800 | |||||
30 | 500 | |||||||
InvoiceNo | Qty | InvoiceNo | Qty | |||||
20 | 700 | 20 | 700 | |||||
10 | 800 | 10 | 800 | |||||
30 | 500 | 20 | 700 | |||||
30 | 500 | |||||||
20 | 700 |
Regards,
Prasad K