cancel
Showing results for 
Search instead for 
Did you mean: 

Cost center in Slaes order bapi

Former Member
0 Kudos

Hi

We are creating sales order with BAPI_SALESORDER_CREATEFROMDAT2 .

We have to pass cost center field to header doc. thorugh BAPI

As cost center filed is mandatory to complete S.O.

but we dont find Cost Center field in this BAPI, then how we have to pass this field to make S.O success

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Any solution now?

I tried to use "BAPI_SALESORDER_CHANGE" to update the cost center because the input parameter "ORDER_HEADER_IN" of this bapi has a field named "COSTCENTER". But it is quite strange inside the FM, ORDER_HEADER_IN will be assigned to a variable with structure = BAPISDHD1, and then cost center becomes meaningless totally inside change bapi, so till now, there is no way to update cost center both in create bapi and change bapi.

Any ideas, thanks!