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: 

ME21N BAPI

Former Member
0 Kudos
377

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

Edited by: amahabub on Dec 15, 2011 9:55 AM

Edited by: amahabub on Dec 15, 2011 9:57 AM

2 REPLIES 2

brunobex
Active Participant
0 Kudos
114

Hi Mahabub,

Make sure you are filling the tables POITEM and POITEMX. Also if the field PO_ITEM is filled.

For more information please see SAP Notes:

[Note 582221 - FAQ: BAPIs for purchase orders|https://service.sap.com/sap/support/notes/582221]

[Note 375886 - BAPI: Error analysis for BAPIs in purchasing|https://service.sap.com/sap/support/notes/375886]

Regards

Bruno Xavier.

madhu_vadlamani
Active Contributor
0 Kudos
114

Hi Mehabub,

Just check the documentation and pass all the mandatory fields.Check if there is any leading zeros.

Regards,

Madhu.