Showing results for 
Search instead for 
Did you mean: 

Cost center not populated in BAPI_PO_CREATE1

Former Member
0 Kudos


     I am trying to convert my old IDoc type PORDCR to newer IDoc type PORDCR1. PORDCR uses BAPI_PO_CREATE whereas PORDCR1 uses BAPI_PO_CREATE1.

In BAPI_PO_CREATE,  I pass the following values:

PO_ITEMS-PO_ITEM = '00010'



My G/L account as well as Cost center gets determined and populates in the PO successfully.

In BAPI_PO_CREATE1, I am passing the following values:






The G/L account gets determined, but cost center does not get determined. Hence throws an error in the BAPI - ME 083 : Enter cost center

My observation:

The cost center determination happens via OKB9 transaction. BAPI_PO_CREATE seems to pick up the configuration values from here whereas BAPI_PO_CREATE1 does not.

My question:

Is BAPI_PO_CREATE1 designed NOT to pick up values from OKB9? Or Am I missing some other parameter to pass in the BAPI?

Any clue/hint is much appreciated. (I am in IS-Retail solution EhP 5)

- Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found the answer myself. It's a config. setting in account assignment.

MM —> Purchasing —> Account Assignment —> Maintain Account Assignment Categories

There is a flag by name 'Derive account assignment'.

If you select that flag, automatic cost center determination will happen (OKB9 entries will be picked up)

Answers (0)