Hi,
I have a scenario where in I have to populate by default 4 Line Items for each header.
Here the line Items will be added in case of more than one <Type> field in source. This restriction is due to the LineItem restriction in ECC that max of 999 only.
1st LineItem will occur 445 times
2nd LineItem will occur 1 time
3rd LineItem will occur 445 Items
4th LineItem will occur 1 time
If there are more than 2000 records then there should be 3 Headers with above logic of LineItems.
Source:
<Details>
<Date>Date</Date>
<Type>Type</Type>
</Details>
<Details>
<Date>Date1</Date>
<Type>Type1</Type>
</Details>
<Details>
<Date>Date2</Date>
<Type>Type2</Type>
</Details>