← All posts

AI in SAP

The 2027 Deadline Is Not Your Real Problem. Your Custom Code Is.

The 2027 Deadline Is Not Your Real Problem. Your Custom Code Is.

The 2027 Deadline Is Not Your Real Problem. Your Custom Code Is.

Most SAP customers fixated on the 2027 end-of-mainstream-maintenance date are solving the wrong equation. The calendar pressure is real, but it is a distraction from the deeper technical debt that will determine whether your migration succeeds or stalls for years after go-live. This makes SAP S/4HANA Cloud Private Edition essential for modern businesses.

The actual risk sits inside your system. Thousands of lines of custom ABAP written over a decade or more, Z-programs that nobody fully documented, user exits modified by consultants who left the company in 2019, and business logic buried in enhancement frameworks that your current team has never opened. That is the problem. The deadline is just the moment when ignoring it becomes impossible.

Why Custom Code Is the Hidden Variable in Every SAP Migration

When organizations begin planning an SAP migration, the conversation almost always starts with infrastructure: cloud versus on-premise, hyperscaler selection, licensing models, timelines. That is understandable. Those decisions are visible and have executive-level consequences.

But technical project failure rarely traces back to infrastructure choices. It traces back to custom code. Industry research consistently shows that custom code remediation consumes a disproportionate share of migration budgets, and that unresolved customizations are among the leading causes of delayed go-live dates.

Here is why that happens. SAP systems accumulate customizations over time for legitimate reasons: local compliance requirements, industry-specific processes, integrations with proprietary tools, workarounds for functionality that did not exist in older versions. Each modification was justified at the time. Cumulatively, they create a system that behaves differently from a standard SAP environment and requires extensive analysis before any migration can proceed with confidence.

The Three Categories That Cause the Most Damage

Not all custom code carries equal risk. The customizations that consistently create the most migration complexity fall into three categories:

  • Direct modifications to SAP standard objects: These break during upgrades because SAP overwrites its own code. Any custom logic embedded directly in standard programs, tables, or function modules must be identified and moved before migration begins.
  • Custom code written for obsolete APIs or deprecated functions: S/4HANA has retired a significant number of compatibility shims and simplified its data model. Code calling those deprecated APIs will fail silently or noisily depending on how error handling was written.
  • Undocumented integrations and RFC calls: RFC-based connections to third-party systems or satellite SAP instances are notoriously difficult to trace. They often lack formal documentation and are only discovered when something breaks in testing.

These are not edge cases. They are standard conditions in any SAP environment that has been in production for more than five years.

What the Custom Code Analysis Actually Involves

SAP's own tooling, particularly the Custom Code Migration Worklist and the SAP Readiness Check, gives organizations a starting point. But tooling output is not the same as an actionable remediation plan. The tools tell you what exists. Deciding what to do with it requires judgment.

A proper custom code analysis does four things:

  1. Inventories every Z-object and Y-object in the system: including programs, function modules, classes, BAdI implementations, and enhancement spots. The inventory needs to document usage frequency, last modification date, and transport history.
  2. Classifies each object by compatibility status: against the target release. Objects that call deprecated APIs, reference simplified tables (like ACDOCA replacing multiple FI tables), or rely on removed compatibility views need to be flagged explicitly.
  3. Assesses business criticality: A custom program that runs payroll preprocessing is not the same as a custom report that three people use once a quarter. Remediation priority should reflect operational risk, not alphabetical order.
  4. Produces a remediation decision for each object: adapt, retire, replace with standard functionality, or defer. Deferred items need an owner and a conditional timeline, not a vague "address later" note that becomes permanent.

This is detailed, skilled work. It cannot be delegated entirely to automated scanning. Experienced ABAP developers who understand both the original intent of the customization and the architecture of the target system need to make the judgment calls.

How Technology Is Changing the Scale of What Is Possible

The tools available for custom code analysis have improved substantially in recent years. Static analysis platforms can now scan millions of lines of code in hours, flag deprecated API calls against maintained exception lists, and produce risk-weighted remediation backlogs automatically.

When organizations engage proper SAP Migration Services early in the program, the combination of tooling and experienced consultant judgment dramatically compresses the analysis phase. What once took months of manual review can now be completed in weeks, provided the data quality in the source system is reasonable and the analysis scope is defined clearly from the start. According to Statistics Canada's 2026-27 Departmental Plan, organizations in regulated sectors are placing greater emphasis on modernization and compliance, which further underscores the need for strong custom code analysis during SAP migrations.

SAP BTP has also changed the equation for organizations with heavy integration dependencies. Rather than maintaining complex RFC-based integrations that break during upgrades, many organizations are using BTP's integration suite to rebuild those connections on API-based architecture. The migration becomes the forcing function to modernize integration patterns that should have been updated years ago. That is not additional work, it is parallel value.

For organizations in regulated industries, the analysis complexity increases further. SAP for Healthcare Providers, for example, involves customizations tied to clinical workflow integrations, regulatory reporting requirements, and patient data handling protocols. Custom code in those environments often cannot simply be retired because it encodes compliance logic specific to Canadian provincial regulations or federal privacy requirements. Every remediation decision carries an audit implication.

The Case for SAP S/4HANA Cloud Private Edition

Organizations with extensive customizations often assume that a public cloud deployment is out of reach. That assumption is increasingly outdated.

SAP S/4HANA Cloud Private Edition gives organizations the operational benefits of cloud infrastructure, including managed upgrades, reduced infrastructure overhead, and improved availability, while retaining the ability to carry forward selective customizations that cannot be replaced by standard functionality. It is not a compromise option. For organizations with complex, industry-specific processes that genuinely require custom logic, it is the architecturally appropriate choice.

The distinction matters for migration planning. Organizations choosing a private cloud path can phase their custom code remediation differently than organizations targeting a public cloud deployment. They have more flexibility to carry forward stable, well-tested customizations in the near term while retiring or rebuilding the high-risk objects first. That phased approach reduces program risk without abandoning the migration timeline.

What it does not do is eliminate the custom code analysis requirement. Even in a private cloud deployment, the move to S/4HANA's simplified data model means that code referencing deprecated tables or removed compatibility layers will fail. The analysis still needs to happen. The remediation decisions are simply made with a broader range of options.

Building the Right Team for Remediation at Scale

Custom code remediation is a capacity problem as much as a technical one. Many organizations discover during the analysis phase that the volume of objects requiring attention exceeds what their internal team can handle within the available timeline, particularly when the internal team is also responsible for keeping the existing production system running.

The gap between internal capacity and remediation demand is where organizations either accelerate or stall. Bringing in experienced ABAP developers who have worked on prior S/4HANA conversion programs shortens the ramp-up time significantly. They have already encountered the common failure patterns, the deprecated API categories, and the data model changes that trip up remediation efforts.

Engaging experienced partners who specialize in SAP Cloud Migration Services means you are not paying for a learning curve. The patterns repeat across industries and system generations. A developer who has adapted fifty RFC-based integrations to API architecture on prior programs does not need to rediscover the approach on yours.

That said, internal knowledge is irreplaceable for business logic decisions. Your internal ABAP team or business analysts are the only people who know why a particular Z-program was written the way it was, what business rule it encodes, and whether that rule still applies. The optimal structure is a blended team: external migration specialists for the technical heavy lifting, internal resources for business logic validation and final sign-off.

For organizations with SAP COE Services capabilities already in place, this blended model is easier to execute. A functioning Center of Excellence has the governance structure, the technical standards, and the escalation pathways to absorb external specialist resources without organizational friction. Organizations without a COE often need to establish lightweight governance before the migration program begins, otherwise remediation decisions get made inconsistently across workstreams.

The Decisions You Cannot Defer Until After the Deadline

Some migration decisions genuinely can be deferred. Custom reports with low usage, non-critical batch programs, cosmetic UI modifications: these can be addressed in post-migration optimization cycles without meaningful business risk.

Other decisions cannot. Deferring them creates compounding problems.

Integration architecture is one. If your system still relies on synchronous RFC calls for mission-critical processes, designing the replacement integration pattern is a program-level decision that affects testing scope, cutover planning, and rollback strategy. Starting that design work six months before go-live is not enough time.

Data model migration is another. S/4HANA's move to universal journal accounting, the changes to materials management table structures, and the consolidation of sales and distribution data require data migration design that touches custom code, reporting, and analytics simultaneously. That design work cannot be parallelized with itself. It has a sequence, and that sequence has a minimum elapsed time regardless of how many resources you throw at it.

Custom output management and forms are a third area that consistently surprises organizations. Legacy SAPscript and Smart Forms programs are often not catalogued as "custom code" in the traditional sense, but they require remediation effort and often touch printing infrastructure, archiving systems, and regulatory document retention requirements. Missing them in scope is a common and costly oversight.

Organizations pursuing what the industry calls Enterprise Digital Excellence in their SAP programs typically front-load the hard decisions. They run the custom code analysis in parallel with the business case development, not after it. They know the remediation scope before they commit to a timeline, which means their timelines are grounded in reality rather than optimism.

The same principle applies to organizations treating their migration as part of a broader Digital Innovation Solutions strategy. The migration is not just a technical upgrade. It is the opportunity to retire technical debt, modernize integration patterns, and build a foundation that makes future change cheaper and faster. That requires honest scope assessment from the start.

Frequently Asked Questions

Q. How long does a custom code analysis typically take for a large SAP system?

A. For a mid-to-large SAP environment with tens of thousands of custom objects, a thorough analysis using modern tooling combined with experienced consultant review typically takes between six and twelve weeks. The timeline depends heavily on how well-organized the existing system documentation is and whether the organization can dedicate internal resources to business logic validation in parallel.

Q. Should we retire custom code before migration or after?

A. Where the retirement decision is clear-cut, before is almost always better. Retiring objects before migration reduces the testing surface, simplifies the data migration design, and lowers the risk of carrying obsolete logic into the new environment. Objects where the retirement decision is genuinely uncertain can be carried forward provisionally, but they need an owner and a post-migration review date.

Q. What happens to custom integrations built on RFC when moving to S/4HANA?

A. RFC-based integrations do not automatically break, but they require careful validation because S/4HANA's simplified data model changes the underlying tables that many RFCs reference. The stronger argument for migration is that RFC architecture is not the right pattern for modern cloud environments. Organizations are increasingly rebuilding these integrations on API-based architecture, often using SAP BTP's integration capabilities, which produces a more maintainable result going forward.

Q. Does the choice between public and private cloud affect how we approach custom code?

A. Yes, meaningfully. Public cloud deployments require a clean-core approach, meaning custom code must either be retired or moved to side-by-side extensibility using SAP BTP. Private cloud deployments, including SAP S/4HANA Cloud Private Edition, allow selective retention of custom code that cannot be replaced by standard functionality. The choice of deployment model should be informed by the custom code analysis, not made independently of it.

Q. How do we avoid underestimating the custom code remediation effort?

A. The most reliable approach is to run the Custom Code Migration Worklist analysis early and cross-reference the results against actual transport usage data from the past two to three years. Programs with zero transports in three years are strong retirement candidates. Programs with frequent transport activity are business-critical and need careful remediation planning. Building the estimate from actual system data rather than assumptions eliminates most of the underestimation risk.

Conclusion

The 2027 maintenance deadline creates urgency. That is useful. But urgency focused on the wrong problem produces programs that hit the deadline and then spend two years stabilizing what they built. Custom code is not an implementation detail to address late in the project. It is the structural foundation that either supports or undermines everything else.

Organizations that build migration plans grounded in honest custom code analysis make better architectural decisions, more realistic timeline commitments, and smarter resource allocation choices. They also tend to emerge from migration with cleaner, faster systems because they used the program as an opportunity to retire the accumulated technical debt rather than carrying it forward into the next decade.

The deadline is the forcing function. The custom code is the work.

Explore how AI can transform your SAP environment faster, smarter, and with confidence. Schedule a complimentary AI Discovery Session with the 2iSolutions experts today: [Link]

Take this further

Put this to work on your own SAP estate

Everything described above is something we deliver, with an SAP architect reviewing every change an agent makes.

Book an AI landscape assessment

Want this applied to your SAP estate?

Tell us where you are and we'll come back with a concrete next step.

Talk to our team