Hey! Javier
The above logic worked for Header to IDOC Node - 1 IDOC / Header.
However, I was not able to manage the line Item to be limited to 998 - plesse detail requirement below.
Please, find below the source structure.
<Header>
<Carton_Number></Carton_Number>
<Ship_Date></Ship_Date>
<LineItem>
<Quanity></Quanity>
<Prepack></Prepack>
<Order_No></Order_No>
</LineItem>
</Header>
<Header> will be mapped to <IDOC>
<LineItem> will be mapped to <E1EDP01> (IDOC Line Item)
Requirement:-
- Header will be mapped to IDOC - Whenever a particular Header crosses 998 LineItems - There should be a second IDOC created.
- The 2nd IDOC need to have the remaining LineItems.
- Example: A message has 1200 Line Items - 1st IDOC has 998 LineItems & 2nd IDOC has the remaining 202 LineItems.
Thank you so much for all the help!!
Regards,
Ritu