Application Development and Automation 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: 
Read only

Error in BAPI for ME21N

Former Member
0 Likes
825

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
Read only

Former Member
0 Likes
734

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

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
Read only

Former Member
0 Likes
734

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

regards

Prabhu

Read only

surajarafath
Contributor
0 Likes
734

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 ?

Read only

Former Member
0 Likes
735

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

Read only

0 Likes
734

Hi Ravi,

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

Regards

Mahabub