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: 

Problem with BAPI_PO_CREATE1

Former Member
0 Kudos

Hi All,

When I am trying to create PO using BAPI_PO_CREATE1, I am getting the following erros:

1. No instance of object type PurchaseOrder has been created.

2. Purchase order item 00010 still contains faulty account assignments

3. Asset 1000017 0 not in company code NO01

But when I am manually trying to pass the data to the BAPI though SE37, PO is being created.

Can anyone please let me know where the problem is?

Reward Points if useful

Regards,

Harish Kalla

4 REPLIES 4

Former Member
0 Kudos

Hi,

First try to remove the errors.Make sure that Asset 1000017 0 is present in company code NO01 nad account assignments should be proper.

You are passing incorrect data.Please rectify it and then try!

See this blog

/people/sap.user72/blog/2005/03/22/sample-code-to-create-purchase-order-using-bapi-in-r3

Former Member
0 Kudos

Hi,

Its due to wrong data that you are trying to pass to the BAPI in your program. The last two errors are self justifiable, which says that the data you are trying to pass is incorrect.

Thanks

Nayan

Former Member
0 Kudos

Hi Harish,

See this blog

/people/sap.user72/blog/2005/03/22/sample-code-to-create-purchase-order-using-bapi-in-r3

If useful award points

Former Member
0 Kudos

hi harish,

try finding out proper combinations for the fields you are trying to input data into.

you can do this by looking in some standard tables.

as in you can look for plant and material combinations.

and then you can try with these entries.

hope this helps.

regards,

srishti.