Sub topic 11
Deciding how much historical data to bring
This chapter covers how to decide which historical data moves to SAP S/4HANA and which stays behind. It assumes you know the ECC module structure, the difference between master and transactional data, and the basic idea of a system landscape (development, quality, production). Earlier chapters introduced the three transition paths and the migration tooling. This chapter focuses on the data scope question that shapes the choice between them.
Why history is a decision, not a default
Every ECC system holds years of documents: financial postings, sales orders, material movements, purchase orders, and change logs. Not all of this data has the same value in the new system.
Bringing history has real costs:
- Database size. SAP S/4HANA runs in memory on SAP HANA. Memory is more expensive than disk, so each extra gigabyte of old data adds to the license and hardware bill.
- Conversion runtime. In a brownfield conversion, the downtime window grows with the volume of data that must be converted, such as the finance documents moved into the new universal journal.
- Migration effort. In a greenfield, every historical document needs mapping, transformation, and validation. Old data often fails checks that the new system enforces.
- Quality risk. Old documents can carry obsolete organizational units, closed plants, or retired accounts.
Dropping history has costs too:
- Legal retention. Tax, audit, and commercial law require you to keep many records for several years. The exact period depends on the country and the document type.
- Operational need. Users may need old sales orders to handle warranty claims, returns, or price history.
- Reporting. Year-over-year comparisons need prior-year figures.
The goal is to bring what the business needs in the new system, and to keep everything else reachable at a lower cost.
Types of data and their usual treatment
Different data classes call for different defaults.
| Data class | Examples | Usual treatment |
|---|---|---|
| Master data | Customers, vendors, materials, GL accounts | Bring active records. Cleanse and merge duplicates. |
| Open items | Open invoices, open purchase orders, open sales orders | Always bring. The business cannot run without them. |
| Balances | GL balances, asset values, stock quantities | Always bring, with reconciliation to the legacy system. |
| Closed transactions, recent | Last one to three fiscal years of postings | Often bring, depending on reporting needs. |
| Closed transactions, old | Documents older than the retention need of the business | Archive or leave in the legacy system. |
| Technical logs | Change documents, spool, job logs | Usually leave behind or delete. |
Open items and balances are the fixed minimum. The decision lies in the closed transactions.
How the path sets the limits
The three paths differ in how much of this choice you actually control.
- Brownfield (system conversion). The default is that all data comes along, because the existing database is converted in place. You can still reduce volume before the conversion by archiving and deleting data. You cannot easily split off a time slice during the conversion itself.
- Greenfield (new implementation). You decide object by object. Most greenfield projects load master data, open items, and balances, with little or no history. History stays in the old system or an archive.
- Selective data transition. This path exists mainly to give fine control. You can, for example, convert the last two years of data for one company code, and leave the rest behind. Other scenarios include moving only some company codes, or carving out a business unit.
The consequence is that data scope is often a driver of the path, not only a result of it. A company that must keep five years of detailed history online, but wants to redesign its processes, will find neither a pure greenfield nor a pure brownfield a good fit.
This flowchart is a simplification. Real decisions also involve cost, downtime, and custom code, which later chapters cover.
Reducing volume before you move
Whatever the path, reduce data first. This is cheaper in ECC than in S/4HANA, and it shortens the migration.
- Analyze table sizes. Find the largest tables in the ECC database. Typical heavy tables include change documents, application logs, IDoc tables, and financial line items.
- Delete technical data. Application logs, old IDocs, and spool requests have no legal value. Standard housekeeping jobs remove them.
- Archive business data. SAP data archiving moves closed documents into archive files. After archiving, the documents can still be displayed, but they are no longer in the main database.
- Clean master data. Mark unused customers, vendors, and materials for deletion, if they have no open items or recent activity.
In a brownfield conversion, archiving before the conversion directly shortens downtime. Archiving after the conversion still saves memory but gives no help to the cutover.
Options for keeping old data accessible
You do not need history in the productive S/4HANA system to keep it available. The common options are:
- Archive files with an archive viewer. The data is stored in compressed files and shown on demand. This is cheap but gives limited search and reporting.
- Read-only legacy system. You keep the old ECC system running with minimal support, only for lookups. This gives full detail but costs license, hardware, and maintenance. It also leaves a security surface that needs patches.
- Dedicated retention solution. A separate product holds the old data in a neutral format, so you can switch off ECC. This is usually the best long-term choice for large volumes.
- Data in a data warehouse. Reporting history goes to an analytics platform. This supports year-over-year analysis, but it is not a legal archive on its own.
Keep a clear rule about which system answers which question. For example, "orders older than three years: look in the archive viewer." Users should not guess.
Setting the cut-off: a practical method
A cut-off is the date before which closed data is not brought over. A workable way to set it:
- List the legal minimums per country and document type, with help from finance and legal teams.
- List the operational needs. Ask each business area how far back users really look. Ask for actual usage, not for what is "nice to have." Transaction usage statistics from ECC give hard evidence.
- List the reporting needs. Most reports need the current and one or two prior years.
- Take the strictest need that must be online, and treat everything older as archive.
- Price the alternatives. Compare the memory and migration cost of each extra year against the cost of an archive solution.
- Document the decision with an owner, so the scope does not creep back during the project.
Stakeholders tend to ask for "everything" at the start. Usage data and a cost per year usually settles this.
Consistency and reconciliation
Partial history creates its own problems.
- Open items that refer to closed documents. An open invoice may point to an old purchase order. If you left the order behind, the link breaks. Check document flows before you set the cut-off.
- Fiscal year boundaries. Cut at a fiscal year end, not mid-year. Mid-year cuts complicate balances, depreciation, and closing.
- Balances without line items. If you load only balances for old years, you cannot drill down. This is acceptable only if the business agrees.
- Reconciliation. For each year of data you bring, reconcile totals between source and target. For years you do not bring, store the final balance report as proof.
Common errors
- Choosing the scope from habit ("we always keep ten years") instead of from evidence.
- Archiving after the conversion instead of before it, which gives no benefit for downtime.
- Switching off ECC without a plan for reading archived data.
- Setting a mid-year cut-off, which leads to reconciliation problems.
- Treating the decision as purely technical. Finance, legal, and the business owners must sign it off.
Exercise
A company plans a brownfield conversion. The ECC database contains ten years of data, and the cutover window allows only a 48-hour downtime. A test conversion takes 90 hours. Legal requires seven years of financial records, and users say they only look at the last two years of sales orders. What would you do before the next test, and why?
Show answer
Reduce the data volume in ECC before converting, because brownfield converts the whole database and the runtime grows with its size. Delete technical data such as old logs and IDocs. Archive sales orders older than two years (keeping any needed for document flows of open items). For finance, the seven-year requirement concerns retention, not online access, so archive older closed financial documents in a way that keeps them readable, and keep the documents that reporting needs. Then repeat the test conversion to measure the new runtime. If it is still above 48 hours, consider other downtime-reducing techniques or a selective data transition that moves only a recent time slice.
Exercise
Why should the history cut-off be set at a fiscal year end, and what check should you run before fixing it?
Show answer
A cut at a fiscal year end gives clean closing balances, depreciation, and carry-forward values, so reconciliation is simple. A mid-year cut makes balances and period totals hard to reconcile. Before fixing the cut-off, check document flows in a trial migration to see whether open items refer to closed documents that would be left behind.