Comprehensive Analysis and Execution
Protocols: CKR1 Reorganization of Cost
Estimates in SAP S/4HANA and ECC
Executive Summary
The administration of product cost estimates within the SAP ecosystem is a foundational
element of financial integrity, governing inventory valuation, profitability analysis, and
manufacturing variance control. Transaction CKR1 (Reorganization of Cost Estimates)
serves as a critical utility within the Product Cost Controlling (CO-PC) module, designed to
permanently delete cost estimate data from the central database tables. While ostensibly a
maintenance tool for removing obsolete or erroneous data, CKR1 possesses the capability to
inflict severe operational disruption if executed without a rigorous understanding of its
architectural implications.
This report provides an exhaustive technical analysis of the CKR1 transaction, specifically
tailored for SAP S/4HANA and ECC production environments. It dissects the intricate data
structures underpinning product costing, elucidates the catastrophic risks associated with
improper deletion—particularly regarding the Material Ledger and open production orders—
and establishes a "Best Practice" methodology. The analysis prioritizes data integrity and
audit compliance, strongly advocating for alternatives such as the "REDO" function or
standard Archiving (CO_COPC) over physical deletion, while providing a zero-defect
execution protocol for scenarios where CKR1 usage is unavoidable.
1. Foundations of SAP Product Costing Architecture
To fully grasp the implications of executing CKR1, it is imperative to first deconstruct the
architectural framework of SAP Product Costing. A cost estimate in SAP is not merely a static
calculation; it is a dynamic, relational database object that serves as an "anchor" linking
logistics execution (Production Planning/Materials Management) to financial accounting
(FI/CO). The destruction of this anchor via CKR1 severs these vital links, leading to the
"inconsistencies" frequently warned about in SAP technical documentation.
1.1 The Database Cluster: KEKO, KEPH, and CKIS
When a Standard Cost Estimate is created (typically via transaction CK11N) and saved, the
system writes data to a specific cluster of tables. CKR1 operates primarily by issuing delete
statements against these tables. Understanding the specific data held here reveals precisely
what is lost during reorganization.
Table 1: The Core Product Costing Database Schema
Table Name
KEKO
Functional
Description
Key Fields &
Relevance
Product Costing Header Data
KALNR (Cost
Estimate Number):
The unique primary
key.
This table acts as
the master record
for the cost
estimate. It defines
what was costed
and when.
MATNR (Material):
The item costed.
BWVAR (Costing
Variant): The
ruleset used.
Impact of CKR1
Deletion
Deletion removes
the header
completely. Any
external object (like
a Production Order
or Material Master)
referencing this
KALNR is left
pointing to a nonexistent record (an
"orphan" pointer).
FEH_STA (Costing
Status): E.g., FR
(Released), KA
(Costed).
KADKY (Costing
Date): The validity
date. 1
KEPH
Cost Components
for COGM
This table stores
the cost
component split,
breaking down the
total cost into
buckets (e.g.,
Material, Labor,
Overhead).
KST001-KST040:
Value fields
corresponding to
the cost
component
structure.
KALNR: Link to
KEKO. 2
The granular detail
required for
variance analysis is
lost. The system
can no longer
distinguish
between a material
price variance and
a labor efficiency
variance for the
period covered by
this estimate.
CKIS
Items/Unit
Costing
POSNR: Item
number.
Contains the lineby-line itemization
of the cost
estimate.
TYPPS: Item
category (M for
Material, E for
Activity).
GPREIS: Price used
for valuation. 3
CKHS
Header for Unit
Costing
Managed alongside
CKIS for cost
estimates without
quantity structure
or additive costs.
KALNR: Link to
KEKO. 5
The "audit trail" of
the cost is
destroyed. It
becomes
impossible to prove
why the cost was
calculated at a
specific value (e.g.,
which BOM
components or
activity rates were
active at that
moment).
Loss of manual
cost entries or
additive costs that
may have been
used to adjust the
standard price
(e.g., for freight or
surcharges).
The relationship between these tables is hierarchical. KEKO is the parent; KEPH and CKIS are
the children. CKR1 ensures that when the header (KEKO) is deleted, the dependent records in
KEPH and CKIS are also removed to prevent database orphans within the costing cluster
itself. However, CKR1 does not automatically clean up references to these records that exist
outside the costing module, such as in the Material Master (MBEW) or Production Orders
(AUFK), which is the primary source of risk.6
1.2 The Concept of the "Anchor"
In SAP architecture, a released cost estimate acts as a stabilizing "Anchor" for valuation. This
concept is critical when discussing the "Current Standard Cost Estimate."
●
●
Material Master Anchor: The Accounting 1 and Costing 2 views of the material master
do not just store a price; they store a reference to the specific cost estimate number
(KALNR) in KEKO that justified that price. This link ensures that the price is auditable.
Material Ledger Anchor: If the Material Ledger (ML) is active, the system tracks the
"Period Unit Price" and maintains a "Price Determination" history. The standard cost
estimate provides the baseline (the standard) against which actual costs are compared
to determine variances. The "Anchor" in ML terms refers to the linkage between the
CKML* tables and the KEKO table.
When CKR1 is executed, it physically removes the KEKO/KEPH records.
●
●
Scenario A (Future/Previous): If the estimate is in the future or past, the "Anchor" is
loose. The system can often tolerate the deletion because the active valuation is not
dependent on it.
Scenario B (Current): If the estimate is "Current" (Status FR and currently valid), the
Anchor is under tension. It is actively supporting the Standard Price in MBEW. Deleting
the KEKO record snaps this anchor. The MBEW record may still show a price, but the
supporting justification is gone. In many cases, SAP logic forces the MBEW standard
price fields to reset to zero upon deletion to enforce consistency, leading to "Zero Price"
operational failures.6
1.3 Integration with Logistics and Manufacturing
The reach of a cost estimate extends deep into the logistics chain.
●
●
Production Orders (AUFK): When a production order is created, it calculates "Planned
Costs." When it is completed, it calculates "Target Costs" based on the Standard Cost
Estimate. The order master table (AUFK) and its cost lines (COEP) rely on the validity of
the cost estimate to perform these calculations. Specifically, the variance calculation
process (transaction KKS2) compares the Actual Costs on the order against the Target
Costs derived from the Standard Cost Estimate.4
Sales Orders (VBAP/EBEW): In Make-to-Order (MTO) scenarios, the sales order cost
estimate serves a similar function. CKR1 can also reorganize these estimates, potentially
disrupting revenue recognition and profitability analysis. 10
2. Transaction CKR1: Functional Decomposition
Transaction CKR1 is the primary interface for the reorganization (deletion) of cost estimates.
It is a powerful, irreversible tool. Unlike many SAP "deletion" flags which simply mark a record
as inactive (soft delete), CKR1 performs a hard delete from the database.8
2.1 The Selection Screen: Control Parameters
The CKR1 selection screen is divided into criteria that filter which estimates are targeted.
Misunderstanding these parameters is the leading cause of accidental data loss.
Table 2: CKR1 Control Parameters and their Strategic Implications
Parameter
Checkbox
Definition &
Scope
Operational Risk
Profile
Future Standard
Cost Estimates
Targets estimates
that have been
Marked (Status VO)
or Released (Status
FR) but have a
"Valid From" date
in the future.
Low / Routine
Best Practice
Usage
Safe. Use this
when a cost run for
the next fiscal year
contains errors and
needs to be re-run
before the year
begins. Deleting a
future estimate
creates no
immediate
valuation impact. 6
Current Standard
Cost Estimates
Targets the
estimate that is
currently active
and valid for the
current posting
period (Status FR).
Critical /
Dangerous
Avoid. Deleting
this removes the
valuation basis for
the current
inventory. It
triggers "Zero
Price" resets and
breaks Material
Ledger
consistency. Only
use in dire
emergencies (e.g.,
massive pricing
error) and only if no
inventory
movements have
occurred. 6
Previous
Standard Cost
Estimates
Targets estimates
from past periods
that have expired.
Medium /
Compliance
Avoid (Use
Archiving). While
operationally safe
(valuation won't
change), deleting
history destroys
the audit trail. Use
Archiving
(CO_COPC)
instead to move
data to cold
storage while
retaining access. 6
Cost Ests w/o
Mat. Master Ref.
Targets estimates
that were saved
(Status KA) but
never Marked or
Released. These
are effectively
"drafts" or
"simulations."
Negligible
Safe. These
records are
database clutter.
They have no
impact on financial
valuation and can
be deleted freely to
reclaim space. 7
2.2 Quantity Structure Options
CKR1 provides checkboxes to further refine the selection based on the type of cost estimate.
●
With Quantity Structure: This selects estimates created via the standard BOM and
Routing explosion (transactions CK11N, CK40N). This is the most common type for
manufactured goods (FERT/HALB). It implies the cost was derived from a structured
●
production process.15
Without Quantity Structure: This selects estimates created via Unit Costing (KKPAN) or
manual entry. These are often used for new materials where master data (BOM/Routing)
●
is not yet ready, or for "Reference Materials".1
Additive Costs: This targets only the additive cost components (e.g., manually added
surcharges) without deleting the underlying automatic cost estimate.
Insight: When performing a cleanup, it is crucial to know how your estimates were created. If
you check "With Quantity Structure" but your material was costed via Unit Costing (KKPAN),
CKR1 will find nothing to delete.
2.3 The "Test Run" and "List Output"
●
●
Test Run: The default setting. It simulates the deletion and provides a log of what would
be deleted. Mandatory Protocol: Never execute an update run without first analyzing
the Test Run output.6
With List Output: Displays the detailed log of materials. Without this, the system only
gives a summary count ("50 records deleted"). For audit purposes, the List Output is
essential to prove exactly which KALNR IDs were targeted. 14
3. Critical Risk Analysis: The Production Environment
Executing CKR1 in a production environment is fraught with peril. The system ecosystem is
tightly integrated, and pulling the "costing thread" can unravel processes in inventory
management and manufacturing.
3.1 The Material Ledger Nexus
The interaction between CKR1 and the Material Ledger (ML) is the single most significant
source of risk. SAP Best Practices explicitly advise against deleting current standard cost
estimates when ML is active.6
3.1.1 The Inconsistency Mechanism (CK 669)
When a user attempts to delete a Current Standard Cost Estimate in an ML-active system,
they often encounter message CK 669: "Deleting current standard cost estimates can cause
inconsistencies.".18
●
●
●
Why? The Material Ledger tracks the "Actual Cost" by accumulating variances against
the "Standard Cost" throughout the period.
○ Formula: $\text{Actual Cost} = \text{Standard Cost} + \text{Variances
(Price/Exchange Rate)}$
If the Standard Cost (the baseline) is deleted, the equation fails. The system loses the
reference point for all variances collected so far.
Consequence: The system may detect this and block the deletion. If the deletion is
forced (e.g., by ignoring warnings or using custom programs), the linkage between KEKO
and the ML tables (CKMLHD, CKMLCR) breaks. This results in "Inconsistency" errors in
transaction CKMC.20
3.1.2 The "Zero Price" Trap
If a current standard cost estimate is successfully deleted via CKR1, the Material Master fields
for standard price (MBEW-STPRS) are typically reset to zero to reflect the absence of a
supporting estimate.6
●
●
●
Scenario: A material has a standard price of $100. CKR1 is run. The price becomes $0.
Impact: A Goods Receipt (GR) from production occurs five minutes later. The system
values the receipt at $0. The inventory account is debited $0. The P&L is distorted.
Recovery: Recovering from this requires immediate re-costing (CK11N/CK24) or a
manual price change (MR21), but the interim transactions at $0 price require complex
manual journal entries to correct.21
3.2 The Manufacturing Nexus: Cost Object Controlling
For manufacturing companies, CKR1 can cripple period-end closing activities for Production
Orders.
3.2.1 Variance Calculation Failure
The calculation of production variances (Transaction KKS2) is dependent on Target Costs.
●
●
●
●
Target Cost Logic: The system looks at the Quantity Confirmed (Actual) and multiplies it
by the Standard Cost of the finished good (Plan).
$$\text{Target Cost} = \text{Confirmed Qty} \times \text{Std Cost from Released
Estimate}$$
The Break: If CKR1 deletes the Released Estimate, the "Std Cost" variable becomes
undefined or zero.
Result: Target Costs = 0.
Variance: Total Variance = Actual Cost - 0 = Huge Artificial Variance.
Or, commonly, the system issues error KV011 or similar, stating that no valid cost
estimate could be found.9 This prevents the order from being settled.
3.2.2 The "Orphaned" Order Problem
Even if a new cost estimate is created immediately after deletion, a disconnect remains.
●
●
●
The Link: A Production Order is often stamped with the KALNR of the cost estimate that
was valid at the time the order was created/released.
The Mismatch: If CKR1 deletes that KALNR and replaces it with a new one, the order is
still pointing to the old, deleted ID. The system cannot calculate variances because the
specific cost component split (KEPH) for that old ID is gone. 10
Impact: Valid variances cannot be calculated for any order that was open (WIP) during
the deletion. The "Work in Process" value may also be corrupted. 24
3.3 Compliance and Audit Risks
Legal retention periods for financial data pose a non-technical but equally severe risk.
●
●
●
Traceability: Tax auditors often require evidence of how inventory valuation was derived
3-7 years in the past. If CKR1 was used to delete previous estimates, this evidence (the
BOM and Routing snapshot used for the cost) is destroyed.8
Retention Regulations: Standard cost estimates are often classified as "Financial and
Tax Audit relevant" documents. Deleting them violates data retention policies in
jurisdictions that require 7+ years of history.26
Irretrievability: Unlike Archiving, which moves data to a secure file system, CKR1 wipes
the data. There is no "Undo" button.12
4. Strategic Alternatives to Deletion
Given the high risks of CKR1, SAP best practices dictate that it should essentially never be
used for "Current" or "Previous" estimates in a live system. Two robust alternatives exist.
4.1 The "REDO" Function (SAP Note 410619)
When a user releases a cost estimate with errors and needs to re-cost the same period, the
instinct is often to "Delete and Re-run." This is dangerous. SAP provides a safer "Repair"
mechanism known as the REDO function.
●
●
●
The Mechanism: Instead of deleting the database record, the REDO command simply
changes the Status of the cost estimate.
○ Current Status: FR (Released - Locked).
○ New Status: KA (Costed) or VO (Marked).
The Benefit: By reverting the status, the system allows a new cost estimate to be
marked and released for the same period. The "Anchor" is updated gracefully rather
than being snapped. The Material Ledger and Production Orders tolerate this status
change far better than a physical deletion.7
How to Use:
1. Enter transaction CKR1.
2. In the Command Field (where you type T-Codes), type REDO and press Enter. (Note:
In some versions, this enables a hidden mode; in others, it acts as an OK-Code).
3. Select "Current Standard Cost Estimates."
4. Execute.
Note: This functionality is delivered via SAP Note 410619. Ensure this note is
implemented. This should strictly be done by IT support, not end-users.
4.2 Archiving (Object CO_COPC)
For the management of historical data (e.g., removing cost estimates from 5 years ago to
save space), Archiving is the mandatory best practice.
●
●
●
●
Archiving Object: CO_COPC (Material Cost Estimate). 29
Transaction: SARA.
The Process:
1. Write Phase: The system reads data from KEKO/KEPH and writes it to a secure
Archive File on the server.
2. Verification: The system checks the file for integrity.
3. Delete Phase: Only after the file is secured does the system delete the records
from the database.
The Advantage: Archived data is not lost. It can be viewed later via standard reports
(like CK13N reading from archive) or reloaded if necessary for a tax audit. This satisfies
●
legal retention requirements while CKR1 does not.31
SARA Execution Steps:
1. Go to SARA. Enter Object CO_COPC.
2. Select Write. Create a Variant (e.g., "COST_2020") selecting the Company Code and
Year.
3. Schedule the Job (Start Immediately).
4. Once finished, select Delete. Select the Archive File generated in the previous step.
5. Schedule the Delete Job.
5. Comprehensive Execution Guide (The "Safe" Way)
If business requirements (e.g., a severe pricing error in the current period requiring
immediate correction) mandate the use of CKR1 and the "REDO" function is not applicable,
the following "Zero Defect" protocol must be observed.
Phase 1: Pre-Execution Validation Protocols
Before launching CKR1, the following conditions must be verified. Failure to do so constitutes
professional negligence.
Table 3: The Pre-Reorganization Checklist
Validation Item
Check
Transaction/Table
Required
Condition
Material Ledger
Status
CKM9 / OMX1
Verify if active.
Rationale
If ML is active,
acknowledge the
risk of
inconsistency.
Check for SAP Note
1530596
availability. 17
Open Production
Orders
COOIS / Table
AUFK
Critical: No orders
with status REL,
PREL, or PCNF
should exist for the
material.
Open orders rely
on the current
estimate. If
deleted, they
cannot be settled.
Orders must be
TECO'd or Closed if
possible. 9
Inventory
Movements
MB51
Check for
movements in the
current period.
If goods have
already moved at
the "wrong" price,
deleting the cost
estimate will not fix
the past. It will only
zero out the future.
Reversing
movements may be
required. 7
Data Backup
SE16N (Export)
Export KEKO and
KEPH entries to
Excel.
CKR1 has no undo.
Having a dump of
the cost
component split
allows for manual
reconstruction if
disaster strikes. 12
Phase 2: Step-by-Step Execution Scenarios
Scenario: Deleting a Current Standard Cost Estimate (High Risk)
1. Access Transaction: Enter CKR1.
2. Define Scope:
○ Company Code: Enter specific code (e.g., 1000).
○ Plant: Enter specific plant (e.g., 1000).
○ Material: Enter the specific material number(s). NEVER run for * or ranges unless
absolutely certain.
3. Control Parameters:
○ Select "Current Standard Cost Estimates".
○ Select "With Quantity Structure" (assuming standard manufacturing part).
4. Safety settings:
○ Test Run: CHECKED. (This is non-negotiable).
○ With List Output: CHECKED.
5. Execute Test Run:
○ Review the output. Verify the KALNR matches the one seen in MM03 Costing View 2.
○ Check for warning messages (Yellow triangles) regarding Material Ledger.
6. Execute Update Run:
○
○
○
Uncheck "Test Run."
Execute.
Confirm Warning: The system will issue the warning "Deleting current standard cost
estimates can cause inconsistencies" (CK 669). Press Enter to acknowledge.18
Phase 3: Post-Execution Remediation
The moment CKR1 finishes, the material is in a dangerous "Zero Price" state. Remediation
must be immediate.
1. Immediate Recosting:
○ Execute CK11N (Unit Costing) or CK40N (Costing Run) immediately to create the
new, correct cost estimate.
2. Mark and Release:
○ Execute CK24. Mark the new estimate. Release it.
○ Note: If the period is the current one, you must ensure the "Redo" logic or deletion
was successful, otherwise the Release will be blocked because "A released cost
estimate already exists."
3. Consistency Check:
○ Run transaction CKMC (Consistency Check for Material Ledger) to verify that the
KEKO table and MBEW/CKML tables are now aligned with the new cost estimate.
○ Verify in MM03 Costing View 2 that the "Current" field now shows the new price and
the status is FR.20
6. Troubleshooting and Error Management
6.1 Message CK 669: "Deleting current standard cost estimates can
cause inconsistencies"
Symptom: CKR1 halts or issues a hard warning.
Root Cause: The system detects ML is active or references exist.
Resolution: This is a warning, not an error. In foreground mode, pressing Enter usually
bypasses it. In Batch Input (BDC) or background jobs, this warning can cause the job to fail or
stall. You must program the batch input to expect and acknowledge this message ID CK
Number 669.19
6.2 Error CKCC031/CKCC032: "No future standard cost estimate
exists"
Symptom: After running CKR1 to delete a future estimate, users viewing MM03 receive this
error when clicking the "Future" tab.
Root Cause: A "Ghost Pointer." The Material Master (MBEW) still has a flag saying a future
price exists, but CKR1 deleted the record from KEKO. The pointer points to nothing.
Resolution:
● Use the correction program CHECK_ANCHOR (often provided via SAP Note 1530596).
● Run in "Update Mode" with "Resolve Inconsistencies" checked. This clears the ghost flag
in MBEW.36
6.3 "Target Cost Missing" on Production Orders
Symptom: Orders settled after CKR1 execution show errors or zero target costs.
Resolution:
● If the order was TECO before deletion, revoke TECO and try to re-read master data
(though often the link is permanently broken).
● For "Orphaned" orders, variance calculation is often impossible. The variance must be
written off manually in FI, as the CO-PC logic cannot function without the original KEPH
split.9
7. Conclusion
Transaction CKR1 is a utility of last resort for the deletion of "Current" cost estimates. While it
functions technically to clear database tables KEKO and KEPH, its use in a live production
environment—particularly one running Material Ledger or active Production Orders—
contradicts SAP Best Practices due to the severe risk of data inconsistency, valuation loss,
and audit trail destruction.
The hierarchy of recommended actions is:
1. For Errors in Current Period: Use the REDO function (Note 410619) to revoke status
rather than delete.
2. For Historical Data: Use Archiving (SARA: CO_COPC) to move data to cold storage
for audit compliance.
3. For "Draft" Data: CKR1 is safe to use for "Cost Estimates w/o Material Master
Reference."
4. For Emergency Deletion: If CKR1 must be used for a current estimate, strictly follow the
Pre-Execution Checklist (Section 5.1), ensure no open orders or movements exist, and
immediately recost the material to restore the valuation anchor. Failure to adhere to
these protocols will result in financial reporting errors and significant reconciliation
efforts.
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )