2011 Dec 15 8:54 AM
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
2012 Jan 07 1:14 AM
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.
2012 Jan 07 3:47 AM
Hi Mehabub,
Just check the documentation and pass all the mandatory fields.Check if there is any leading zeros.
Regards,
Madhu.