Still running ECC with heavy custom code? You’re not alone, but time’s running out.
Nearly 90% of SAP ECC customers have not yet completed their S/4HANA migration, despite SAP’s 2027 support deadline (2030 with extended support). One major blocker: custom code.
Customizations, once viewed as a competitive advantage, are now a liability. If your legacy ERP system is held together by years of Z-tables, user exits, and hardcoded workarounds, migration isn’t just a software update; it’s open-heart surgery.
This guide outlines practical, proven best practices to prepare your custom code landscape for S/4HANA.
Why S/4HANA + Custom Code Increases Risk
S/4HANAintroduces architectural changes that impact legacy code:
If your system has 10,000+ custom objects, as is common in manufacturing, finance, and logistics, you need more than a lift-and-shift plan. You need to rethink what’s worth keeping, refactoring, or retiring entirely.
SAP estimates that, on average, only 30-50% of custom code remains relevant in an S/4HANA environment. That means up to half of your custom objects are dead weight.
The temptation to delay migration is real. But here’s the cost of waiting:
ECC support ends in 2027 (2030 with fees), but many third-party integrations have already stopped certifying for ECC.
The closer we get to 2027, the higher demand for migration experts will be, and the higher their rates will be.
Unsupported systems create compliance risk, particularly in regulated industries.
Before you write a line of remediation code, do an inventory of everything.
SAP’s Custom Code Migration App (part of SAP Readiness Check) is a solid starting point, but it only scratches the surface. To prep effectively, pair it with tools like:
Advanced AMS tooling for business impact mappingYour Goal: identify what is actively used, obsolete, replaceable, or redundant.
Once you know what’s there, you need a remediation plan that’s strategic, not reactive.
Classify custom code into:
Use Application Management Services (AMS) experts to map code to real-world usage, not just technical logs.
Refactor reusable code into modules or services. This future-proofs your landscape and makes integration with Fiori apps and SAP BTP smoother.
Run remediation in a standalone sandbox with the S/4HANA Compatibility Scope Viewer to validate impact before touching production.
Engage a trusted SAP Consulting Services partner (like TotalTek) to handle:
Many enterprises assume they can manage S/4 prep internally. But in reality, Application Management Services (AMS) provide:
AMS isn’t just for break/fix; it’s a strategic lever in custom code cleanup.
You’ll need Project Management Office (PMO) Consulting to:
S/4 migrations with strong PMO oversight have 40% fewer delays and 25% lower overrun risk, according to a 2023 ASUG member survey.
Here's how to move from analysis to execution.
Get a high-level view of affected objects and usage stats.
Step 2: Prioritize by Business Process Criticality
Work with business stakeholders to determine which Z-objects are truly revenue or compliance drivers.
Step 3: Implement ATC + UCON in Shadow Systems
Track real-time usage patterns over 90 days to filter out unused code.
Step 4: Refactor or Retire
For each object:
Step 5: Execute Pilot Migration with AMS & PMO Support
Use a representative business unit to test the full end-to-end flow, including code execution, interface mapping, and regression QA.
Measure:
The truth is, your custom code isn't the enemy; it’s a record of business innovation. But to bring that innovation into the S/4HANA era, it needs to be audited, trimmed, and rebuilt for resilience.
Migrating to S/4HANA with heavy customization isn’t a checkbox project. It’s a strategic transformation that requires cross-functional alignment, executive sponsorship, and expert technical execution.
With the right combination of SAP Consulting, and PMO support, your custom code can become an asset again rather than a blocker.
Don’t let legacy customizations hold back your digital future.
TotalTek helps enterprises accelerate their SAP S/4HANA journey with integrated AMS support, SAP consulting, and expert-led project execution.