Function to change cost center of sales order

hi guys.
  I would like to know if there is a standard function that change the cost center of a sales order. Could you help me?.
Thanks in advance.

Use this FM
<b>BAPI_SALESORDER_CHANGE</b>
In the Importing structure <b>ORDER_HEADER_IN</b> you have  the field <b>COSTCENTER</b>.
Regards
Kathirvel

Similar Messages

  • Cost center in Sales Order/Credit memo request

    Hi SAP Gurus,
    There is a requirement from our client. They are processing Credit Memo from SD VF01 via Credit memo request. The want to assign Cost center in the line items which is greyed out at the time of processing in VF01.
    I also verified in the Credit memo request in VA02 even there is no field available for to maintain  Cost center in line item so that at the time of billing it can  derive.
    Please advice whether can we assign the Cost centers in Sales order/Credit memo request line items?.
    Regards
    NTH

    Hi NTH,
    In the standard system, the field cost center is only ready for input
    if the sales document category is VBAK-VBTYP= I (that is, order without
    charge). For all other order types, you can make it visible by entering
    an order reason provided that the combination of the sales area and the
    order reason has a cost center assigned in OVF3. To change this standard
    behaviour, USEREXIT_COBL_SEND_HEADER can be used. There you can find a
    short example on how to make a field visible and modificable in the
    account assignment screen.
    Moreover, please take into account that the account assignment to a cost
    center is possible only at header level. So it is not possible to
    insert the cost center at item level, you can only insert it at header
    level.
    The cost center determination takes place in
    FV45KF0V_VBAK-KOSTL_ERMITTELN and is reading from table TVAUK.
    This table can be maintained in transaction OVF3.
    If you wants to be able to enter the cost center manually in the
    account assignment screen (header level), you can use  the user exit
    FV45PF0C_COBL_SEND_PBO_VBAK (SAPMV45A) - there you can find a short ex
    ample on how to make a field visible and modifiable in the account
    assignment
    I hope that this information is of assistance to you. Thanks!
    Regards,
    Alex

  • Cost center dirstribution - sales order as receiver

    hi  dear,can i have sales order and item as receiver of cost center distribution? currently i ONLY saw receiver is cost center or order or WBS
    Edited by: renhua liu on Aug 23, 2011 5:19 PM

    Hi NTH,
    In the standard system, the field cost center is only ready for input
    if the sales document category is VBAK-VBTYP= I (that is, order without
    charge). For all other order types, you can make it visible by entering
    an order reason provided that the combination of the sales area and the
    order reason has a cost center assigned in OVF3. To change this standard
    behaviour, USEREXIT_COBL_SEND_HEADER can be used. There you can find a
    short example on how to make a field visible and modificable in the
    account assignment screen.
    Moreover, please take into account that the account assignment to a cost
    center is possible only at header level. So it is not possible to
    insert the cost center at item level, you can only insert it at header
    level.
    The cost center determination takes place in
    FV45KF0V_VBAK-KOSTL_ERMITTELN and is reading from table TVAUK.
    This table can be maintained in transaction OVF3.
    If you wants to be able to enter the cost center manually in the
    account assignment screen (header level), you can use  the user exit
    FV45PF0C_COBL_SEND_PBO_VBAK (SAPMV45A) - there you can find a short ex
    ample on how to make a field visible and modifiable in the account
    assignment
    I hope that this information is of assistance to you. Thanks!
    Regards,
    Alex

  • Changing Profit center in Sales Order after Shipment Document

    Hi All,
    We have situation here, The thing is at the time of creating Sales order I don't know the profit center which has to be assigned for example, I have created a sales order for goods transport, when I create the sales order I don't know which vehicle is going to transport this order and the goods can be transported by multiple vehicles.
    For my business each vehicle is a cost and profit center since I wanna know the profitability of each vehicle.
    So I will come to know the vehicle ( Profit center) after creating the shipment document, now I want to have the profit center of this vehicle to be updated back in the sales order so that the Billing (revenue) is recorded in this profit center.
    Please let me know how to do this. I know the PC field is greyed out after shipment and PGI is done. So how to handle this.
    Your suggestions will be highly appreciable
    Regards,
    Satan

    Hi,
    Thanks
    If I went with internal order every where I gotta enter the internal order since it doesn't get automatically derived like a profit center. I would have to define substitutions everywhere !
    I am trying to capture all the costs and revenue for each transport vehicle since this is transport business. It's not like my business is something else and vehicles are a part of it.
    Almost all transactions will have to be posted with Internal order which is very difficult to configure.
    Can you please elaborate on the work around you have mentioned since I am neither technical nor SD consultant.
    Thanks in advance

  • Change cost center in trans.ko02 by function

    Hi  experts,
    i Need to change cost center in transaction ko02.
    Is anyone know wich function/Bapi do i need to use?
    thanks,
    Michal.

    thanks for reply so quikly.
    i need to change cost center for internal order, i dont see where do i fill in the function
    the internal order.
    do you know if it possible?

  • How to change the Profit Center in Sales Order

    Hi Gurus,
    Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
    So, could you guide me how to change the profit center in sales order.
    Thank you for your replies.....
    Thanks & Regards,
    Chandrababu.B
    Edited by: Chandrababu Naidu on May 25, 2011 12:44 PM

    Hi
    If this SO is processed partially - i.e. transactions happened - You cant change it
    You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
    br, Ajay M
    Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • How to change Functional area in cost center master

    Dear Guru,
    As required, i have to change the Functional area in cost center master data.
    SAP Warning Message :
    Transaction data exists; note long text
    Note
    A change of the functional area can lead to inconsistencies when reversing documents.
    If documents are reversed after the functional area has been changed, in some cases,
    the reversal document may be posted with the new functional area.
    My question is how to change the new functional area to the old one after reversing documents.
    We aren't using Special Purpose Ledger . Please Help me, thanks.

    Hi
    For the transactions already posted you will not be able to change the Functional Area. Also if those documents are getting reversed now after the change, the reversal document will get posted to the new Functional Area only.
    For all those documents which gets reversed after the change, you need to pass FI journal entry by changing the Functional area in the journal entry and not in the Cost Center Master
    Regards,
    Lakshmanan Krishnan

  • Functional areas vs. cost center groups for cost of goods sales

    What are the benefits of using functional areas over cost center groups when building your p&l for cost absorbtion or visa versa?  Which of the two is recommended?

    Hi,
    1: a P&L statement does not only contain cost-center related postings, you can have different CO-objects (Internal order, WBS-Element,...)but all of them contain the functional area in its master record.
    The P&L reporting structure (created via report painter) can use account groups but restricted to one functional area for porper P&L structure creation.
    Best regards, Christian

  • Sales order costing after changes on configuration or sales order BOM

    Hi all
    Our sales order items requruire an sales order costing. This is done automatically, when saving the sales order item:
    Settings in requirement class:
    - costing: X (costing required)
    - costing-ID: B (automatic costing and marking)
    This works perfect, means the sales order receives a caluculation that is marked.
    Now, something is changed on the sales order BOM with transaction CU51
    It seems, that each time you change the BOM you have to ensure yourself, that the costing of the sales order items (via VA02 -> extras -> costing) has to be performed manually.
    There is no SAP standard process, that does this automatically.
    Thanks for your feedback.
    Pius

    Dear Pius,
    System cannot take the changes from the BOM and execute the cost estimate automatically.
    Need to refresh system when the changes are happened i..e need to execute the Cost Estimate once again.
    Kind Regards
    Umapathi G

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • Cost Analysis by Sale Order

    Hello,
    I'm seeking to enable in BI a Cost Analysis Scenario with repect to the <b>Sales Orders</b>. That is, something similar to the analysis you can easily perform in the R/3 area <i>Accounting -> Controlling -> Product Cost Controlling -> <b>Product Cost by Sales Order</b></i>.
    For instance in standard report KKBC_KUN, you can choose a sales order number and get all the <b>cost elements</b> related to that sales order, with the corresponding costs.
    I have examined the following objects provided by the BW's Business Content:
    - <u>InfoCube 0PC_C01</u>: it contains only the costs related to <b>production orders</b>, and not the costs associated with sales orders.
    - <u>InfoSource 0CO_OM_CCA_9</u>: it seems interesting, in fact it delivers some header and line item data of the <u>Controlling Object Document</u>. Unfortunately it doesn't deliver the crucial characteristics <i><u>Controlling Object</u></i> and <i><u>Controlling Object Type</u></i>, which I definitly need for enabling my analysis scenario!!
    (By the way, are these 2 characteristics delivered by the BC? There exists a 0COSTOBJ characteristic, but it's not used by any object in the flow afterwards. Moreover, I can't find a standard DataSource in R/3 which I can use to load either its attributes or its texts, and see what data enter it..)
    Business Content for Product Cost by Sales Order), but none could help me.
    It seems really weird that it's not possible to carry out a <b>Cost Analysis by Sales Order</b> in BW, so if anyone has some suggestion it'll be very appreciated indeed.
    Thanks & Regards, Davide

    I eventually found the following SAP Note. No BCT for this analysis scenario....
    <b>Note 584791 - BW-BCT-CO: Costs not extracted on sales orders</b>
    <b>Symptom</b>
    In R/3, costs are posted directly to sales orders. The costs have to be analyzed in the BW system. In the standard system, however, this data is not extracted into the BW system.
    <b>Other terms</b>
    0CO_OM_OPA_1; 0CO_OM_OPA_6
    <b>Solution</b>
    1. There are currently no DataSources for costs on sales orders in the standard BW Business Content. Unfortunately, there are currently no resources scheduled for a new development in this area either.
    2. Therefore, the DataSources and the Business Content must be created in the customer project within the framework of consulting as a customer solution concerning the generic extraction options of the BW Service APIs or function modules you have programmed yourself for extracting data.
    3. Technical background information about costs on sales orders:
    The transaction data is available in the following R/3 tables
    COSS and COSP - Totals records or COEP - Line items.
    This concerns records for the VB* object numbers.
    The master data of the sales orders is contained in the VBAK and VBAP tables.
    The 0CO_OM_OPA_1 and 0CO_OM_OPA_6 DataSources only extract costs for orders with master data in the AUFK table. These types of requests always have OR* object numbers. Therefore, these DataSources cannot be used for sales orders.
    However, you may be able to assign requests from the AUFK table (for example, maintenance orders or production orders) to a sales order through the AUFK-KDAUF table field.

  • How to transfer cost from old sales order (cancelled) to new sales order

    Hi Gurus
    I want to know, how to move cost from one sales order to another sales order.
    SD created sales order before 1 month and there was production order behind this. Production was completed and all the cost was moved to sales order and also SD has raised invoice on customer. This transaction was completed.
    The above order was rejected by customer due to some changes in the order. SD raised another sales order and production order was created to to additional work. Production transfered above stock (produce before on old production order) to new production order.
    My problem is stock is now transfered to new production order but cost is still sitting on old sales order. How do I transfer cost from old sales order to new sales order. SD cancelled old invoice and raised new one with full value (old + new work) on new sales order. Now cost is on old sales order and revenue is on new sales order.
    Please help.
    Thanks

    Hi
    I have reverse the sales order settlement, PP order settlement to sales order and I have also done KB11N for transfering the cost to the new production order.
    The only problem is I was unable to transfer labour hour confirmation as cost element used for this are not for transfering cost. If I will reverse the confirmation in PP order system will reverse material movement also which I don't want any more. Can you please tell me how to I reverse the Labour hours with out affecting goods movement?
    Many thanks

  • How to prevent change payment term in sales order?

    Hi,
    My client not allow sales admin. to change payment term in sales order. How to do this? (by standard SAP functions or authorization)
    Thanks & Regards,
    Jr.SD

    Either you can run T.Code shd0 or apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP to achieve this.
    thanks
    G. Lakshmipathi

  • Change cost center in migo

    Hi all!
    I would like to know if it is possible to chage the cost center that was set in the purchase order in the migo transaction. Becuase the view I get from the cost center field is the not changeable view.
    Thanks

    Dear Pablo
    you can change the GL code and cost center through GR but see what the effect is
    1. if the MIRO done throgh GR no. then it will get the effect in your changed Cost center
    2. if MIRO done with PO refecence then the account department didnt get the changed cost center.
    it is good practice not to change the cost and gl account to the existing one because it effect in the account department
    if user mistaken entered the cost center then ask the same to the user to change.
    regds
    dev...!

Maybe you are looking for