A definitive guide to eliminating custom code technical debt using cl_ci_quickfix in Eclipse ADT, AST pattern refactoring, and mass pre-commit quality gates.
During SAP S/4HANA readiness assessments, an average enterprise codebase of 500,000 lines of custom ABAP generates between 15,000 and 40,000 ATC findings. Remediating each finding manually in Eclipse ADT consumes 15 to 45 minutes per finding, representing massive project cost and risk.
SAP provides the QuickFix Framework (`CL_CI_QUICKFIX`) to enable 1-click refactoring directly in the Eclipse code editor (Ctrl + 1) and mass refactoring via ADT quick-fix actions.
A custom QuickFix is implemented as an ABAP class inheriting from CL_CI_QUICKFIX:
get_quickfix_descriptions: Returns user-facing menu options shown in Eclipse ADT.apply_quickfix: Computes the precise character offsets (location range) and replaces the legacy code with Clean Core compliant ABAP Cloud constructs.| Legacy Anti-Pattern | Clean Core Automated Replacement | Benefit |
|---|---|---|
SELECT without ORDER BY |
Appends primary key ORDER BY clause |
Guarantees deterministic results on SAP HANA. |
MOVE-CORRESPONDING |
target = CORRESPONDING #( source ) |
Eliminates obsolete statement warnings in ABAP Cloud. |
Direct BSEG/BKPF queries |
Redirects to I_JournalEntryItem CDS View |
Ensures compatibility with Universal Journal (ACDOCA). |
Classic EXCEPTIONS |
Wraps into RAISE EXCEPTION NEW zcx_* |
Provides type-safe callstacks for cloud logging. |
Generate custom CL_CI_QUICKFIX classes, ATC check hooks, and unit test doubles with our free interactive architect.