Hi Mouli,
COKA is the control record table. COKA entry is generated when the first CO document is generated .For the same year, all follow on posting with the same object number will reference to the same COKA entry.
For primary cost elements, the system keeps a control record in Table COKA for each object, cost element, fiscal year, and origin, which defines for all postings in a fiscal year whether and in which unit of measure quantities are transferred to the totals record. Basically, the posted quantity (COEP-MBGBTR) is updated in the posted unit of measure (COEP-MEINB) in the line item. Whether the quantity is transferred to the totals record depends on the control record valid for the object. If the quantity is transferred to the totals record, the total quantity field (COEP-MEGBTR) is also filled in the line item.
The control (COKA) record is created with the first posting in the fiscal year an cannot be changed during the year. In the cost element master record, you can store a default value for the unit of measure and set the "Manage quantity" indicator. If the indicator is set, the system sends a warning, if an actual posting is made without an entry for the unit of measure. If the unit of measure is changed subsequently in the cost element master, this does not affect quantity update, if there had already been postings in the fiscal year concerned.
If another posting is made to the same cost element at a later time, the system checks whether the posted quantity can be converted to the unit defined in the COKA record. If this is the case, the quantity is converted accordingly (e.g. kg to t) and transferred to the totals record. Otherwise, it is not transferred. To indicate that there had been such a posting (which is not contained in the total quantity) in period xxx, the "Quantity incomplete" indicator (COSP-MUVxxx) is set in the totals record.
Before you delete any cost object all the entries in COKA referring to that cost object need to be deleted first.
regards
Waman