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 BAPI_PO_CREATE1

Former Member
0 Likes
2,341

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

Abinathsiva
Active Contributor
0 Likes
1,671

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.

Read only

JJosh
Active Participant
0 Likes
1,671

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

Read only

former_member1716
Active Contributor
0 Likes
1,671

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!