Technical Guide

Deleting a Company Code in SAP: The Technical Guide

This guide explains how to remove a company code and its data from an SAP system: four technical paths, the transactions behind them, and the retention controls that decide when deletion is legal. 

SAP Company-Technical Guide

A company code is the smallest organizational unit in SAP for which a complete set of accounts can be drawn up for external reporting. Once it has posted across FI, CO, MM, SD, PP, QM and WM, it cannot simply be deleted. SAP has no supported transaction that removes it cleanly, and the quick fix most teams reach for, OBR1, can wipe controlling data for every other company code sharing the same controlling area.

What This Guide Covers

  • Why a company code resists deletion: the BUKRS footprint, controlling area coupling, cross-company documents and statutory retention
  • Procedures for Path A (block and freeze), Path B (archive and delete), Path C (OBR1 and EC01) and Path D (SAP LT / DMLT deletion)
  • Statutory retention periods and legal holds
  • The preserve-then-destroy architecture
  • A pre-deletion runbook and reconciliation evidence
  • Common errors and fixes

Who This Guide is For

  • SAP finance and controlling leads planning a divestiture, merger, liquidation or system cleanup
  • SAP Basis and technical architects responsible for archiving and data volume management
  • S/4HANA program leads deciding which history to migrate, archive or retire
  • Compliance, tax and audit teams who must sign off before any data is destroyed

What This Guide Matters

  • Shows why company code deletion is a retention decision first and a technical task second
  • Separates the paths that are production-safe from those that belong only in a test client
  • Sets out the order of operations that keeps the ledger consistent through archiving and deletion – Defines the evidence needed to prove a company code was removed lawfully and completely

Planning to retire a company code, or a whole SAP system?

Get the transactions, sequence, and checklist in one guide. Download the Company Code Deletion Technical Guide

Archon © 2026, All rights reserved.