Most S/4HANA conversation in banks starts with data and licences. The part that quietly decides cost and risk is the custom code: years of Z and Y objects that nobody designed for the new stack. This note sets out a practical way to sort it, and says what we mean by “carve-out” on this site, because the word has two meanings.
The dates that frame the decision
SAP has stated that mainstream maintenance for the core applications of SAP Business Suite 7 (which includes SAP ERP 6.0, the system most people call ECC) runs until the end of 2027. Optional extended maintenance is then available from 2028 until the end of 2030, at a premium of two percentage points on the maintenance basis. After that comes customer-specific maintenance. Check your own contract and release, because these terms depend on the enhancement package and the agreement (SAP’s maintenance statement).
That makes the custom-code decision a schedule question as well as a technical one: whatever you decide to bring along has to be ready before the cutover, and whatever you decide not to bring along needs a home.
“Carve-out” means two different things
- Separating a business unit or company code from a landscape, often with a selective data transition. Many SAP partners and tool vendors do this, and it is what most search results for “SAP carve-out” describe. It is not what we offer.
- Carving custom functions out of the ECC estate, so they do not have to be migrated into S/4HANA at all. This is our work: take the functions that your Z-code performs and rebuild them as ready-to-deploy products or small, maintainable custom solutions that run beside the core.
A practical way to sort Z-code
1. Inventory every Z and Y object
Start from a complete list, including reports, interfaces, enhancements and forms. Without it, every later number is a guess.
2. Measure what is actually used
SAP’s custom-code migration guidance is to collect production usage over a full business cycle, including year-end, using the ABAP call monitor (SCMON) or usage and procedure logging (UPL), and to aggregate it with SUSG. A report that nobody ran for a year is a retirement candidate, subject to its owner’s sign-off (SAP Custom Code Migration Guide).
3. Put each used object in one of four buckets
| Bucket | When it fits |
|---|---|
| Retire | No usage over the full cycle, owner agrees |
| Keep and adapt | Used, small, passes the S/4HANA checks or needs a modest fix |
| Replace with standard | The function now exists in standard S/4HANA or a clean extension |
| Carve out | A self-contained business function with its own rules, data and approvals |
4. Recognise a carve-out candidate
The good candidates are functions that behave like small products: a register or record the bank must keep, an approval workflow with its own rules, a regulatory report, an interface layer. They have clear inputs and outputs, a handful of users, and an owner in the business rather than in IT. A function tangled through standard tables and user exits is usually better kept, replaced or retired.
The pattern, as we apply it: the source system proposes, and the new system decides what enters the record. Our SecReg cover register works this way for Hungarian mortgage banks, taking proposals from the SAP FS-CML and FS-CMS modules, among other sources, while the register itself enforces the rules.
What to settle before you carve anything out
- Data ownership. Which system is the source of truth after cutover, and who may change it?
- Interfaces and authorisations. What does the function read from and write to SAP, and how are users and roles handled?
- Evidence. Auditors will ask who changed what. Decide how the new component records that history, and how you would prove it was not altered.
- Run and maintenance. Who operates it, and on whose upgrade schedule? A carved-out function that nobody owns is the Z-code problem again.
- Exit. Can you export your data in an open format?
Where we come in
If a bank is moving off ECC and has Z-code it would rather not drag into S/4HANA, we carve those functions out into ready-to-deploy products and small, maintainable custom solutions: your process, your bank’s rules, without dragging the whole Z-estate along. We would start with the usage data from step 2 and one candidate function, not with a programme. Write to info@aben.ch.
Published December 2026. Dates and tooling from SAP’s own pages linked above; check them against your contract and release.