Hello Folks,
I have a following issue:
I want to split an INVOICE Idoc to several XML Messages with the following condition:
If INVOICE belongs to country then the xml message should be created..
It works only if the INVOIC.xml belongs only to one country, but if the INVOIC.xml includes several IDOCs to several countries, then the message split does not work. All needed Information are mapped only to the first message instead to split to message 2 or message 3, which is found. How can I solve this?
For instance salesorg in invoice belongs to UK or Ireland, then the target-xml should be created see the mapping for the first message 1 below.
But if there several IDOCs see Picture 3 which includes IDOCs for GB, Portugal and Italy for instance, it does not work. How should the mapping step should be correct? I also change the context of the ORG field to the IDOC Segment, because it refer to E1EDK14.
Thanks in advance for your help
Kind regards,
Erkan