Passing cost center in BAPI_SALESDOCU_CREATEFROMDATA1
One of our interfaces is using BAPI_SALESDOCU_CREATEFROMDATA1 to create sales orders.
There is a requirement where in we have to pass the cost center (present in the Account Assignment tab of header of the sales order).
But I couldnt find any field in the import parameters of the BAPI to pass this.
I found in the BAPI that the following line is commented out.
<i>move order_header_in-costcenter to e_vbakkom-kostl.</i>
What is the reason for this? Is there any way by which I can pass the cost center to the order. Please advice.