I am implementing the exit COOM0001 - EXIT_SAPLKASC_003.
The aim to is to pick up the cost centre assign to the work centre to calculate overhead cost instead of cost centre picked up from costing sheet.
Basically, when Overhead costs are calculated on a production order, it recovers the costs on a cost centre that is defined in a costing sheet (table). However, I would like the cost to recover on the cost centre that is assigned to the work centre where this production order is performed.
I am getting the cost centre through the steps below.
Get AUFPL from AFKO using AUFNR.
Get ARBID from AFVC using AUFPL.
Get KOSTL from CRCO using ARBID comparing with CRCO-OBJID.
Even though I assign the cost centre retrieved based on work centre, still SAP takes the value from costing sheet.
Any idea to solve this issue.
Thank U for Ur time.