Map default values in Header based on multiple values in the line item
I have a scenario in which the Header field of an IDOC should be populated with some default values based on some mixed mvt types in the line items.
> Delivery type -
> needs to be mapped to A (for X of line item 1)or B (for Y of line item 2) or C (for Z of line item 3 )
based on line items field
-> mvt type---> X
line item 2--
line item 3 -
> mvt type -
mvt types doesnt necessarily have to come in that order and even the same mvt type can repeat in multiple line items.
Can we achieve this logic in XI ?