Slowly Changing Dimensions
As of 2026-11-08
Many BW-to-Datasphere migrations hit the same wall: an analyst asks what a customer's region was at order time, and the SCD design decides whether the answer is right or silently wrong. This module gives the Type 1/2/6 decision with its HANA cost trade-offs, a working idempotent SCD2 load pattern, and the two-model SAC split (current-state vs historical) that keeps dimension pickers clean. Consultants who can defend this design and validate it against a HANA execution plan can use it to support a Principal/Senior Architect rate conversation in DACH and Benelux, because the client already knows the risk.
What you will learn
- Select the correct SCD type (Type 1, Type 2, Type 6, or a hybrid within a single dimension entity) for a given set of SAP dimension attributes, with written rationale covering business query requirements, HANA performance implications, and maintenance cost at scale
- Implement a complete, idempotent SCD Type 2 load process for a Datasphere local dimension table using two sequenced steps (close-old then insert-new, as two Data Flows or one SQLScript procedure), including change detection via attribute hash comparison and surrogate key assignment at fact load time
- Diagnose and resolve three frequent SCD production failures in BW-to-Datasphere migrations: non-idempotent load processes generating duplicate versions, BW surrogate key dependencies leaking into Datasphere models, and SAC dimension member pickers showing multiple entries per business entity
- Design two Datasphere analytic model configurations from the same SCD2 dimension table — one current-state (filtered to IS_CURRENT = TRUE for operational SAC dashboards) and one historical (joined on the surrogate key resolved at fact load, no range join in the model, for period-close reporting) — and validate both with a HANA EXPLAIN PLAN to confirm equality-join surrogate key usage
The Deceptively Hard Problem of Slowly Changing Dimensions
Slowly Changing Dimensions (SCD) appear conceptually simple — a customer moves, you update the record — but they hide many production failure modes. In SAP analytics landscapes undergoing migration from BW/4HANA to Datasphere, or consolidating legacy BW InfoProviders into Datasphere analytic models, SCD handling is a recurring topic where architectural decisions made in month one generate costly rework in month twelve. The reason: SCD correctness is invisible until an analyst asks "what region was this customer in when they placed this order?" and the answer is wrong. In S/4HANA the classic SCD source is the Business Partner master (BUT000 and its address tables).
This module is about the engineering judgement — not the textbook definitions — that separates a correctly operating SCD from one that silently corrupts historical reporting.
Source: SAP Help Portal — SAP Datasphere Analytic Model
Type 1 vs Type 2 vs Type 6: Choosing Under Uncertainty
The textbook (Kimball) taxonomy runs from Type 0 to Type 7, Type 6 being the 1+2+3 hybrid, but in EMEA enterprise SAP programmes, the decisions that matter are the choices between Type 1, Type 2, and Type 6.
Prerequisites
- Intermediate hands-on experience on SAP analytics projects
- Review core concepts first: C087, C083, C047
Outcomes
- Work through a realistic scenario: A DACH automotive Tier-1 supplier is migrating its BW/4HANA customer and material master — versioned today through time-dependent InfoObjects — to Datasphere ahead of its planned BW decommissioning, while Finance keeps closing periods on the legacy system in parallel.
- Recognize and avoid the anti-pattern: Non-idempotent SCD2 load — Re-running the load on an unchanged extract creates duplicate effective-dated rows, degrading join performance and corrupting period-over-period comparisons.
- Apply the module's core decision: Type 1 vs Type 2 vs Type 6 for a given dimension attribute — choose: Type 2 for any attribute a financial or compliance report must reproduce as-of a date; Type 6 only below roughly 2 million total rows when current-state comparisons across history are business-critical; Type 1 only when old values are provably wrong, not just outdated; avoid: Defaulting every attribute to Type 6 because it 'covers both cases' — the UPDATE cascade across all historical rows is a real, measurable cost at scale.
- Track mastery with the KPI: SCD2 load idempotency (target: Zero duplicate versions created by a repeated extract or backfill; red flag: Any new row appears from an unchanged snapshot — the hash-based change detection is missing or broken).
Full module with the Consultant plan — €19.90/month. The full module adds: the decision framework · the end-to-end scenario walkthrough · the KPI scorecard · the anti-patterns · the code blocks · the knowledge check · the diagrams.