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: 

Error in BAPI for ME21N

Former Member
0 Kudos

Hi,

I have developed a Z program for ME21N by using BAPI( BAPI_PO_CREATE1). When I executive it always shows

"Please enter items first. No instance of object type PurchaseOrder has been created. External reference: Document contains no items".

Would you suggest how can I solve this problem

Best Regards

Mahabub

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi mahaboob,

Before creating Z program , first execute Function module itself in se37 by passing required parameters with help of functional consultant and if any errors occurs , functional consultant can easily idetifies and resolves it. After successfully execution, develop the Zprogram.

Place the parameters what you are passing , so that i can help you if you need.

Regards,

Ravi

4 REPLIES 4

Former Member
0 Kudos

i think you are creating POs without items or you havent mapped item table to BAPI...

regards

Prabhu

surajarafath
Contributor
0 Kudos

It means that you are creating PO without specifiying the Items, PO must contain atleast one items. You Check your POITEM table. whether contains data or not ?

Former Member
0 Kudos

Hi mahaboob,

Before creating Z program , first execute Function module itself in se37 by passing required parameters with help of functional consultant and if any errors occurs , functional consultant can easily idetifies and resolves it. After successfully execution, develop the Zprogram.

Place the parameters what you are passing , so that i can help you if you need.

Regards,

Ravi

0 Kudos

Hi Ravi,

Thanks for your valuable suggestion. I have overcome this problem.

Regards

Mahabub