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

Problem with BAPI_PO_Create1

Former Member
0 Likes
2,336

Hi,

I met a problem when i using fm:bapi_po_create1 to upload a open po for Asset. the error data like this:

T ID NUM MESSAGE

E BAPI 001 No instance of object type PurchaseOrder has been created. External reference:

E MEPO 046 Purchase order item 00010 still contains faulty account assignments

W ME 330 Contract exists for this material group

E ME 083 Enter Asset

I search the related thread in SDN. Ii have enter a value for field 'asset_no" of "poaccount" table and the message told me to enter asset? and the message record two and three, i dont know how to solve it? Can anybody help about this?

Best Regards

Steven

5 REPLIES 5
Read only

Former Member
0 Likes
1,141

Hi,

The message number 2 is either a configuration problem or you are passing the incorrect Account number to the BAPI and in both of the case the account number conflicts with the other configurations so it is showing the faulty account assignment.

The message number 3 is just the warning so it is not going to create any problem for you and take care of the message 2.

Read only

nirajgadre
Active Contributor
0 Likes
1,141

Hi,

Try to pass the poitem , quantity, costcenter, item number, tax code, asset no, sub asset number and internal order values in the account assignment table and also make the poaccountx table for all those fields with the item number.

Read only

Former Member
0 Likes
1,141

The second message that you get in the BAPI is because there is some inconsistency in your account assignment table.

Since you know that you have to enter asset number. Once you do this your second message would be gone.

This kind of message generally appears for inconsistent data in any of your tables and this is succeded by the relevant error message below.

don't worry about the warning messages they won't hinder the process..

About first message it is generally to indicate if the PO was created or no.....

Simple check for all error messages and don't bother about messages like first and second one.....

Try fixing the fourth error and see if you find anything else....

Regards,

Lalit Mohan Gupta

Read only

Former Member
0 Likes
1,141

Hi Steve,

Check if you have passed 'X' to POACCOUNTX-ASSET_NO?

Hope it helps

Sujay

Read only

Former Member
0 Likes
1,141

Thanks buddy above which reply me. The problem is solved. It caused by the input without the prefix-zero.

maintain it met the length requirement and OK.

Best Regards

Steven