We have a question regarding mapping complex structure
< Shipment > ( 1 to unbounded )
<Delivery > ( 1 to unbounded )
<Item > (1 to unbounded )
< Item >
Requirement is to create one target file per delivery ( I can have multiple deliveries within shipment ) and within that aggregate the quantity at the material level.
I am using multi-mapping to create instance of each new file based on change of delivery number within the item node, but unable to aggreate the quantity at the item level within the delivery in each file.
How do I aggregate the quantity associated with each item within each delivery and write it to the file ?