Solution : https://service.sap.com/sap/support/notes/380282 (SAP Service marketplace login required)
Summary :
To generate CO documents during confirmation in SAP, several preconditions related to logistics and costing must be met. These include the existence of a costing variant in the order CAUFVD-KLVARI, operation relevance to costing (T430-KALKZ set to "X"), a “fully relevant to costing” attribute on operations (AFVGD-SELKZ set to "X"), and the necessity of assigned work centers with valid cost centers. Additionally, for the work center, maintained rates for cost centers and valid service types, and a formula, must be stored. Non-externally processed operations that create services during confirmation are also required. For error handling, refer to Transactions COFC, OPK4, and CO1P for issues related to actual costs determination and attribute misconfigurations that might prevent cost postings.
Key words :
call function 'cm_f_message' exporting arbgb = c_msgid msgnr = '282' msgty = 'e' msgv1 = afrud_tmp-werks msgv2 = rcr01_tmp-arbpl exceptions mesage_type_not_valid = 01 no_sy_message = 02, -baustein zur kostenermittlung aufrufen call function tkomp-function exporting caufvd_imp = caufvd_tmp protocol = space exceptions no_costing = 01, call function 'ck_f_afru_amount_calc' exporting caufvd_imp = caufvd_imp ckcoueb_imp = ckcoueb_hdr ops_settel = vorgangskontierung exceptions no_entry = 01, der arbeitsplatz & hat keine kostenstelle raise no_entry, keine kostenermittlung ohne kalkulationsvariante perform check_klvar, caufvd_imp-auart caufvd_imp-klvari sysub, run schedule header header confirmation cancellation, oder optional und keine eigenbearbeitungsdaten, kalktab-einträge zu rückmeldungen generieren, call form routine det_conf_cost
Related Notes :
857780 | No actual costs with confirmation |
650224 | Composite SAP note: CO11N and process batch |
565370 | FAQ: Reprocessing incorrect actual costs (COFC) |
420307 | TSG: missing actual costs with confirmation |
397239 | INFO:CO-OM Interface/actual postings/commitment/down payment |
301574 | COFC: utility for reprocessing of actual costs |
212705 | Missing CO docs in confirmation: Correction program |
155282 | CO docs for confirmations: Correction programs |
74833 | Wrong actual costs or termination in confirmation |