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: 

BAPI_PO_CREATE1 returns error with no profit center entered

Former Member
0 Kudos

HI,

I run transaction se37 to test BAPI_PO_CREATE1 but keep on getting the error message ME 083 'Please enter Profit center'. Both POACCOUNT-PROFIT_CTR and POACCOUNTX-PROFIT_CTR have been updated but I still have the error.

Any help is highly appreciated.

Philip

3 REPLIES 3

Former Member
0 Kudos

Hi Philip,

This error is caused because from structure POHEADER the field DOC_TYPE is empty.

Please fill it (and also the related POHEADERX field with an 'X').

Regards,

Rob.

0 Kudos

Thanks for the reply. The field doc_type has been filled in both poheader and poheaderx. I think I mess up the value of poitem and poitemx in poitemx table and it is causing the problem. The problem is gone but I got another error message on 'Net price cannot be zero' even though it has been published in poitem and poitemx.

Philip

0 Kudos

Philip,

Most likely, you have forgotten somewhere to fill the POITEMX value for net price value.

This can happen in two ways:

Either by simply not X-mark the field (even when it should be zero or empty) or the number of POITEM lines is different from the number of POITEMX lines.

I cannot think of other causes, but the ..X tables listen very closely to their counter part with the values. They are linked only based on the index of the internal tables.

So if you have structured everything correctly, then i'm puzzled too.

Greetz,

Rob.