Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC for multiple line item in PO creation

Former Member
0 Kudos

Hi,

I need help in here. I need to create a PO by using the FM BAPI_PO_CREATE1. My output should be 2 POs. 1 with multiple line item, and the other one with single item. When any of these PO creation fails, I need to transfer all the data and post an IDOC. I should be using the basic type PORDCR1 in my IDOC. My problem is, when I have multiple line items, I cannot post an IDOC. It shouldn't be a successful IDOC because there were errors on my data, but the main goal is for us to know where in the data we encountered the error. Is there any way where I can post an IDOC with multiple items, schedule, account, delivery, etc.. Thanks.

1 REPLY 1

Former Member
0 Kudos

Hi,

Make the required settings to trigger an idoc during the creation of a PO in Me21N with multiple line items, check how the idoc is being created, This should be starting point to know how to create idoc with multiple line items.

Hope this works for you.

Rajeev