Hi All,
Please help on the below mapping logic.
Target IDoc Structure:
<IDOC>
<E1MBXYH>
</F1>
</F2>
<E1MBXYI>
</F1>
</F2>
<ZXYZSEG>
</F1>
</F2>
Mapping 1 - E1MBXYI generation:
Here my requirement is that I need to generate the item segment <E1MBXYI> based on the “Delivery item number” and “SAP delivery number” fields which are coming from file.
I need to generate 3 IDocs based on “SAP delivery number” field and in 1st Idoc the E1MBXYI needs to be generated only once and in the 2nd IDoc two E1MBXYI needs to be generated ( for all unique delivery item numbers in the context will have to be generated one item segment – for two 000010 delivery item numbers, one item segment and for 000020 one more item segment) and in the third Idoc again two E1MBXYI segments have to be generated (in third context - one E1MBXYI for two 000010 and another one E1MBXYI for two 000020)
Mapping 2 – ZXYZSEG generation:
As per the above test data, in first Idoc only one Z segment needs to be generated under the item segment(E1MBXYI) and in the second Idoc there are two 000010(second context - delivery item number) so two times the Z segment needs to be generated under the first item segment and in the same idoc one more Z segment to be created under the second item segment, and finally in the third Idoc, two Z segments (two 000010) to be generated under the first item segment and again two Z segments(for two 000020) needs to be created under the second item segment.
Please help me how can I achieve the above requirement.
Thanks in Advance!