Solution : https://service.sap.com/sap/support/notes/536666 (SAP Service marketplace login required)
Key words : 
actual costs error record, function module ck_f_actual_cost_calc, find double documents, pdc confirmationcats confirmation, terms production order, actual costs, cip4mass confirmation, cip2maintenance order, cip3process order, performed incorrectly
Related Notes : 
       
| 542590 | Confirmation with actual costs: Double CO documents | 
| 155282 | CO docs for confirmations: Correction programs |