Skip to main content

«  View All Posts

Automation in SAP Custom Code Remediation: Where It Fits

4 min read

By Matthias Draschner

Automation in SAP Custom Code Remediation: Where It Fits
Automation in SAP Custom Code Remediation: Where It Fits
7:27

Automation in SAP custom code remediation should own the repetitive, rule-based work: finding every affected line and applying the same proven fix wherever it appears. Your team keeps the business calls, such as what to retire, how to test, and when to sign off. That split turns months of manual fixing into weeks.

Introduction

Every S/4HANA program reaches the same moment. The ABAP Test Cockpit (ATC), SAP’s built-in code checker, returns its findings, and someone has to turn thousands of warnings into working code. That job is remediation: changing existing custom ABAP so it runs correctly and performs well on S/4HANA. Most teams know they need help with it. Fewer know where automation in SAP custom code remediation should take over and where it should stop. Get that line wrong and developers either spend months on fixes a machine could apply, or nobody owns the business decisions behind the code. Here is where the line sits.

What Does Automation Handle in SAP Custom Code Remediation?

Turning ATC Findings Into Fixed Code

S/4HANA changed the finance and pricing data models, so code reading tables like BSEG or KONV needs attention. The material number field got longer, and a SELECT without ORDER BY can return rows in a new order on SAP HANA. SAP tracks these changes as simplification items, and each can trigger findings across your custom code.

SAP is candid about the effort. Its guide to S/4HANA custom code adaptation notes that reviewing every ATC finding by hand is a substantial manual job, and that most findings are standard issues suited to automated fixes. SAP’s quick fixes in ABAP Development Tools are useful SAP custom code remediation tools, but they cover selected patterns, and someone still has to run, review, and transport the results.

Enterprise-scale automated ABAP code remediation goes further. smartShift Intelligent Automation® extracts programs, data definitions, and usage data from the source system and builds a metamodel, a language-independent model of the code that software can analyze as a whole. A rule engine with more than 250 rulesets then corrects every issue relevant to the target release, and the updated code goes back into the system. The approach has run on more than 3,500 SAP systems.

Why Consistency Matters More Than Speed

Speed gets the headlines, but consistency is the bigger win. When a large manual team splits a codebase, every developer brings slightly different habits to the same type of fix, and testers pay for that variation later. A rule applied by software makes the same fix every time it meets the same pattern, and each change traces back to the rule that produced it.

Coverage is the second difference. Many manual and tool-assisted projects stop at the top-priority findings that block the conversion and leave the rest for later. In smartShift’s reference comparison, a traditional approach covers 30 to 40% of issues, while automation addresses all of them, including performance, security, and stability findings a compatibility check never asks anyone to touch. Fixing them in the same pass keeps them from turning into technical debt.

Where Does Your Team Still Make the Call?

Scope, Usage, and Business Intent

No rule engine knows whether a pricing exception written years ago still protects a customer contract. Your process owners do, and automation gives them evidence. SAP recommends collecting at least a year of usage data with the ABAP Call Monitor (SCMON), which records the custom objects production actually calls, so year-end and seasonal logic shows up before anyone decides what to keep.

The same data shows what can go. SAP’s own guidance is to remove unused custom code before conversion, since every retired object is one less to fix and test. A safe pattern is to flag candidates as retired first, watch them through a full business cycle, and delete only what no one has missed. That is a human decision, made with far better data.

Testing, Sign-Off, and Parallel Change

Testing is where remediation projects feel the most pain. In ASUG research conducted with smartShift, 59% of respondents named extensive testing as a top challenge when moving custom code to S/4HANA, ahead of poor documentation at 51% and underestimated scope at 48%. Consistent fixes shrink that burden because testers stop chasing one-off mistakes and can focus on business scenarios instead of individual objects.

Sign-off still belongs to your team, and so does the business that keeps changing while the project runs. Dual maintenance, the work of carrying production changes from ECC into the S/4HANA project system, is where automation and people work side by side. Production rarely stands still during a multiyear program. Dual maintenance compares, merges, and adapts those changes so the project system is current at go-live, while your developers review the conflicts that need judgment.

What Results Does Automated Remediation Deliver?

In these programs, automation carried the remediation workload while internal teams kept the decisions.

Customer Proof Points

Customer

Scope

Result

Beiersdorf

33,000 custom objects, 5.6 million lines of code

69,000 issues fixed in under six weeks instead of six months

CONA Services

45,084 custom objects, 5.8 million lines of code

262,843 issues fixed, all code transformed in three months, go-live for 23,000 users

Procter & Gamble

77,000 custom objects

Remediated in eight weeks with an error rate below 0.01%, 1.3 million issues fixed automatically

Salling Group

30,000+ custom objects, 1.8 million+ lines of code

256,000+ issues resolved in five weeks, only 12 custom code related tickets in testing

Arla Foods

S/4HANA proof of concept

200,000+ issues remediated in three weeks, 8X faster than manual development

Questions to Ask Before You Start

Put these to your team and any partner before committing to an approach:

  • How much of our custom code ran in production in the last 12 months?
  • Which findings will be fixed automatically, and which come back to our developers?
  • Does the scope stop at top-priority findings, or does it include performance, security, and stability?
  • How will production changes reach the S/4HANA project system while the work runs?
  • What record do we get for each change, and who approves it before transport?

Conclusion

Automation earns its place in SAP custom code remediation by doing what people do poorly at scale: applying the same correct fix to hundreds of thousands of findings without drifting. People earn theirs by deciding what the business still needs, how much risk to accept, and when code is ready for production. Programs that respect that split finish remediation in weeks instead of months and keep their strongest people on process work. Programs that blur it usually find their real scope too late. Book a free Rapid Code Analysis to see which of your findings automation can clear before your project starts.

Matthias Draschner

Matthias Draschner is Director Solutions at smartShift. He brings more than 20 years of SAP-focused go-to-market and PreSales experience across enterprise software vendors, consulting, and public-sector delivery. Matthias builds and scales PreSales organizations across EMEA and turns complex technical value into business cases that work for C-level and technical stakeholders alike.

Stay ahead of SAP modernization.

Get the latest insights on S/4HANA, Clean Core, custom code, and AI delivered to your inbox.