‎2007 Aug 14 6:28 AM
how to pass multiple line item in bapi
example header data
11 34 raja
line ltem
1 10 qty
2...
3..
3..
‎2007 Aug 14 6:32 AM
‎2007 Aug 14 6:32 AM
‎2007 Aug 14 6:33 AM
Hi,
In the TABLES section you would be having the ITEMS parameter. Create an internal table of tht format & populate it with the Data & pass the same.
Best regards,
Prashant
‎2007 Aug 14 6:39 AM
Hi,
You can use the <b>AT NEW</b> command to process the change in header. As the header remains same for all the line items you can see the start of a new(legacy order) order here.
You can use the <b>AT END OF</b> command to <b>commit the order</b> in SAP. Once this is trigerred the order would be created in SAP.
In between the AT NEW and AT END OF you can use the processing for the line items.
Hope this solves your query.
Reward points if useful.
Thanks,
Tej..