I am working on a file to idoc scenario, where the source file structure contains matnr, quantity, movement type and batch status.
The requirement is if matnr, quantity are same and batch status is 'A' and directions are opposite (say one is having inbound
and other is having outbound), then they need to be mapped to a single record in target side (target is an idoc).
The file structure is as below.
I thought of doing it by XSLT mapping- first group the records through xslt mapping in the same structure and then map the structure to target idoc i.e. through two mappings, but seems will have to go for java mapping. Please suggest.