← Back to Clean Core Architecture Hub
CLEAN CORE ARCHITECTURAL GUIDE #18

Zero-Downtime Clean Core Cutover & Feature Flag Architecture

Author: Andrea Antonio Perrelli Scope: SAP S/4HANA Transformations & Cloud Migrations Pattern: Strangler Fig & Dynamic In-Memory Canary Switches
Core Migration Principle: High-risk ERP transformations fail when executed as "Big Bang" cutovers. Replacing thousands of lines of procedural ABAP with Clean Core RAP overnight creates catastrophic disruption. Modern enterprise architects use the Strangler Fig Pattern and In-Memory Feature Toggles to route traffic gradually between classic routines and modern cloud services with instant kill-switch capabilities.
Limited Time Deal

Master S/4HANA Clean Core Architecture & Migration

Get the Complete SAP Enterprise Architecture Suite: 40 Retina architecture diagrams, 61 production-grade code listings, and decision frameworks. Use code FLASH80 at checkout for 80% OFF.

1. The Strangler Fig Pattern in SAP ERP

Originating from software engineering, the Strangler Fig pattern replaces monolithic system components incrementally until the legacy code can be safely retired without an outage:

  1. Build Modern Replacement in Parallel: Develop the new RAP Business Object and CDS views in pure ABAP Cloud (Language Version 5).
  2. Quarantine Legacy Logic: Place classic BAPI calls inside an isolated Tier-2 Quarantine Wrapper.
  3. Deploy Inactive: Import both artifacts to production behind a Feature Toggle set to Inactive. Zero business risk.
  4. Canary Rollout: Activate the feature flag for a single pilot company code (e.g., Company Code 1000).
  5. Compare & Certify: Verify financial postings and reconciliations in parallel.
  6. Full Cutover & Decommission: Expand to 100% of global subsidiaries, then safely drop the legacy wrapper.

2. Feature Toggles: High-Performance In-Memory Architecture

In high-throughput transactional processes (such as billing runs or sales order creation processing 10,000 items/minute), querying the database table on every feature flag evaluation creates severe database bottlenecks.

The In-Memory Singleton Caching Pattern:

3. Canary Rollout Scopes

Rollout Scope Implementation Context Risk Level When to Apply
Company Code Filter Checks iv_scope_value = '1000' Very Low Phase 1 pilot subsidiary testing.
User Role / Auth Aspect Checks if user has authorization object Z_PILOT_USER Very Low Internal business analyst dark launching.
Percentage / Hash MOD( HASH( SalesOrderID ), 100 ) < 10 Medium Statistically distributed canary sampling (10% of orders).
Global Cutover ScopeValue = '*' Production Standard Final signoff and global go-live.

4. The 5-Second Kill Switch

The greatest advantage of Clean Core Feature Flags is the Instant Kill Switch:

Recommended Clean Core Developer Tools

Explore free client-side interactive utilities to accelerate your S/4HANA migration:

⚙️ Feature Flag Architect 🛡️ Tier-2 Quarantine Generator 🧭 Decision Wizard & ADR 🎯 Readiness Assessment

Accelerate Your SAP Transformation

Get complete architectures, downloadable code listings, and decision frameworks in the official handbooks.