‎2020 Jan 03 4:28 AM
Hai,
i get this error when i create function bapi_po_create1
No instance of object type PurchaseOrder has been created. External reference:
PO header data still faulty
Purchasing group 004 not defined (please check your input)
Can delivery date be met?
Please enter material number or account assignment category
Please tell me what means and what I need to do to claer this error..Thanks:)Regards,Putri Mulia‎2020 Jan 03 5:10 AM
Hi Putri,
As mentioned in your Question only generic answer can be given check the purchase group 004 availability and pass delivery date as today's date or future date.
‎2020 Jan 03 5:11 AM
Hello,
Your BAPI is correctly telling why it cannot create a PO.
Its due to the missing Mandatory entries. Check your PO Header data.
BR/ Josh
‎2020 Jan 03 6:19 AM
putri.mulia,
Most of the errors are self explanatory, You have to do the following. The values that are fed into header cannot create the PO due the follow reasons:
1) Purchasing group 004 not defined (please check your input) --> You have to define this purchase group for the Key field combination.
2) Can delivery date be met? --> I Suppose this should be a warning message, However the reason is the delivery date you have entered should be unrealistic. hence you get this error, analyze and give a realistic Date for delivery.
3) Please enter material number or account assignment category --> This is self explanatory, you have missed entering this value in the header component.
Due to the above errors system is indicating about the faulty error and it could not create the PO for you.
I would recommend you to first test the inputs in SE37 and create a success case post which you can convert it to a code.
Regards!