06-05-2008 10:04 AM
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
06-05-2008 10:07 AM
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
06-05-2008 10:08 AM
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
06-05-2008 10:10 AM
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
06-05-2008 11:10 AM
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.