Skip to content
NextLytics
Megamenü_2023_Über-uns

Shaping Business Intelligence

Whether clever add-on products for SAP BI, development of meaningful dashboards or implementation of AI-based applications - we shape the future of Business Intelligence together with you. 

Megamenü_2023_Über-uns_1

About us

As a partner with deep process know-how, knowledge of the latest SAP technologies as well as high social competence and many years of project experience, we shape the future of Business Intelligence in your company too.

Megamenü_2023_Methodik

Our Methodology

The mixture of classic waterfall model and agile methodology guarantees our projects a high level of efficiency and satisfaction on both sides. Learn more about our project approach.

Products
Megamenü_2023_NextTables

NextTables

Edit data in SAP BW out of the box: NextTables makes editing tables easier, faster and more intuitive, whether you use SAP BW on HANA, SAP S/4HANA or SAP BW 4/HANA.

Megamenü_2023_Connector

NextLytics Connectors

The increasing automation of processes requires the connectivity of IT systems. NextLytics Connectors allow you to connect your SAP ecosystem with various open-source technologies.

IT-Services
Megamenü_2023_Data-Science

Data Science & Engineering

Ready for the future? As a strong partner, we will support you in the design, implementation and optimization of your AI application.

Megamenü_2023_Planning

SAP Planning

We design new planning applications using SAP BPC Embedded, IP or SAC Planning which create added value for your company.

Megamenü_2023_Dashboarding

Business Intelligence

We help you with our expertise to create meaningful dashboards based on Tableau, Power BI, SAP Analytics Cloud or SAP Lumira. 

Megamenü_2023_Data-Warehouse-1

SAP Data Warehouse

Are you planning a migration to SAP HANA? We show you the challenges and which advantages a migration provides.

Business Analytics
Megamenü_2023_Procurement

Procurement Analytics

Transparent and valid figures are important, especially in companies with a decentralized structure. SAP Procurement Analytics allows you to evaluate SAP ERP data in SAP BI.

Megamenü_2023_Reporting

SAP HR Reporting & Analytics

With our standard model for reporting from SAP HCM with SAP BW, you accelerate business activities and make data from various systems available centrally and validly.

Megamenü_2023_Dataquality

Data Quality Management

In times of Big Data and IoT, maintaining high data quality is of the utmost importance. With our Data Quality Management (DQM) solution, you always keep the overview.

Career
Megamenü_2023_Karriere-2b

Working at NextLytics

If you would like to work with pleasure and don't want to miss out on your professional and personal development, we are the right choice for you!

Megamenü_2023_Karriere-1

Senior

Time for a change? Take your next professional step and work with us to shape innovation and growth in an exciting business environment!

Megamenü_2023_Karriere-5

Junior

Enough of grey theory - time to get to know the colourful reality! Start your working life with us and enjoy your work with interesting projects.

Megamenü_2023_Karriere-4-1

Students

You don't just want to study theory, but also want to experience it in practice? Check out theory and practice with us and experience where the differences are made.

Megamenü_2023_Karriere-3

Jobs

You can find all open vacancies here. Look around and submit your application - we look forward to it! If there is no matching position, please send us your unsolicited application.

Blog
NextLytics Newsletter
Subscribe for our monthly newsletter:
Sign up for newsletter
 

Implementing a Unified ECC & S/4HANA Reporting Model in SAP Datasphere

Why does Hybrid ECC and S/4HANA Reporting matter in SAP Datasphere? During an enterprise SAP S/4HANA transition, global organizations rarely migrate all business units, functional areas, or regions simultaneously. These phased rollouts create prolonged interim periods where operational and historical data must coexist across legacy SAP ECC instances and the new S/4HANA digital core.

To maintain uninterrupted global reporting and executive visibility, these distinct environments must be consolidated into a cohesive analytical layer. However, combining legacy ECC tables (such as BSEG, BKPF, or VBAK) with modern S/4HANA Core Data Services (CDS) views presents significant challenges. S/4HANA CDS views abstract underlying data structures, often embedding complex, multi-layered calculation logic and richer metadata than their legacy counterparts.

To overcome these structural and semantic discrepancies, organizations can implement a structured, layered data architecture within SAP Datasphere. This approach provides a scalable framework that ensures data integrity, continuous reporting validity, and minimal disruption throughout the migration lifecycle.

SAP Datasphere Architecture Overview: Inbound, Harmonization and Propagation Layers

To resolve these architectural differences, we isolate raw data ingestion, transformation logic and reporting consumption into dedicated, decoupled layers. Implementing a clean separation of concerns ensures that modifications in source systems do not trigger a cascading failure across your reporting landscape.

The recommended SAP Datasphere architecture consists of at least three layers: Inbound, Propagation and Reporting.

For this use-case an additional layer - Harmonization - is necessary. Let’s take a closer look at the three layers that require further explanation in face of this data unification challenge:

Layer  Designation  Function
Inbound
  Layer (IL)
Raw Ingestion Lands data directly from source systems (S/4HANA CDS views and ECC tables/extractors) without modification apart from the addition of a few technical fields.
Harmonization
  Layer (HL)
Transformation Remodels and transforms legacy ECC structures to replicate the schema and business semantics of S/4HANA CDS views.
Propagation
  Layer (PL)
Consolidated Consumption Merges the S/4HANA inbound data and harmonized ECC data into a standardized view serving as a reusable business entity.

 

Source System Identification

A foundational requirement of a multi-source architecture is the explicit injection of a source system identifier, ideally at the absolute point of ingestion. Using SAP Datasphere Replication Flows, we populate a technical field named SRC_SYS_ID for every record landed in the Inbound Layer (e.g., 'SAPECC' or 'SAPS4').

SAP_Datasphere_SRC_SYS_ID field

This field acts as a discriminator across the entire data pipeline. It enables precise filtering, supports lineage auditing and prevents cross-system data collisions in downstream models where business keys might otherwise overlap.


Watch the recording of our webinar: "“Bridging Business and Analytics: The Plug-and-Play Future of Data Platforms"


​Designing the Harmonization Layer for ECC Data

Because S/4HANA data arrives in the Inbound Layer already structured according to modern CDS business semantics, it serves as our blueprint design standard. ECC Data does not arrive in the same standardized and enriched data model, but in a rather crude form.

The Harmonization Layer (HL) focuses exclusively on transforming legacy ECC data to match this S/4HANA target standard. While SAP Datasphere supports Graphical Views, utilizing SQLScript views is highly preferred here due to the immense flexibility and complex scripting capabilities it offers.

Three core areas must be addressed within the HL:

  • Structural Alignment: Legacy ECC fields must be explicitly mapped, renamed, and data-typed to mirror the corresponding S/4HANA CDS view fields exactly.

  • Semantic Reconciliation: S/4HANA introduced fundamental architectural consolidations, most notably the Universal Journal (ACDOCA). The HL must utilize complex joins, filters, and calculated fields to replicate these modern business rules using legacy ECC underlying tables (e.g., combining BKPF, BSEG, and CO sub-ledgers).
  • Modular Design: To ensure scalability, transformation logic should be broken down into reusable graphical or SQL views. Centralizing core logic prevents code duplication and simplifies future maintenance.

In the example shown below, ECC tables LIKP and VBUK are being used in an HL layer view in order to recreate the structure of the I_DeliveryDocument CDS view from S/4.

CDS_views_ECC_HL_DELIVERYDOCUMENT

​Creating a Unified Propagation Layer Using UNION Logic

Once the legacy ECC data is structurally aligned within the HL, it shares an identical schema with the native S/4HANA Inbound Layer data. In the Propagation Layer (PL), these two streams are combined.

Because the underlying schemas are now perfectly identical, a UNION ALL operation can safely consolidate the datasets. The S/4HANA data goes directly from the Inbound Layer to the UNION node without requiring intermediate structural transformations, minimizing processing overhead.

To give an example, the relevant excerpt of the Delivery Document Propagation Layer view would look as such:


lt_deliverydocument = 
SELECT
    "s4"."DeliveryDocument",    
    "s4"."DeliveryDocumentType",    
    -- ... [Other fields] ...    
    "s4"."SRC_SYS_ID",    
    "s4"."UPDATE_DTTM"    
FROM "SD_IL_S4_IDELIVERYDOCUMENT" AS "s4"
UNION ALL
SELECT 
    "ecc"."DeliveryDocument",
    "ecc"."DeliveryDocumentType",
    -- ... [Other fields] ...
    "ecc"."SRC_SYS_ID",
    "ecc"."UPDATE_DTTM"
FROM "ECC_HL_DELIVERYDOCUMENT" AS "ecc";

After creating this unification of the two source system datasets, the main PL layer logic can be applied. For example the local tables of delivery header and item are joined on their respective keys as well as the SRC_SYS_ID field.

Propagation_Layer_join

Dynamic Pipeline Flexibility

A major advantage of this design is its adaptability to changing project requirements. Because the streams are cleanly separated within an SQLScript model, the entire ECC data stream can be commented out or isolated instantly if a business unit migrates ahead of schedule or if reporting scopes change. This adjustment requires no structural (code/metadata) alterations to downstream views, Analytic Models or SAP Analytics Cloud (SAC) dashboards.

By commenting out the ECC part in the PL layer view, the data coming from the highlighted part is removed without affecting the schema of the PL view.

Lineage_ECC_part

Managing Associations Between Facts and Master Data

Consolidating transactional data across disparate systems introduces significant risks when managing master data relationships. In multi-source landscapes, business identifiers frequently overlap. For example, Customer ID 100045 or Material ID MAT-99 might represent one specific entity in the legacy ECC system and an entirely different, unrelated entity within the new S/4HANA tenant.

To prevent incorrect cross-system data assignment, models must implement source-aware associations. Every association between a Fact view and a Master Data dimension view within the Propagation Layer must utilize a composite key consisting of both the unique business identifier and the SRC_SYS_ID.

This approach guarantees absolute data isolation. An ECC transactional record will associate strictly with its corresponding ECC master data attributes, while an S/4HANA record remains bound directly to S/4HANA master data attributes.

​How to Preserve Business Continuity During SAP S/4HANA Migration

Beyond technical alignment, this architecture delivers long-term operational continuity across all phases of the S/4HANA transformation: before, during and after the migration.

When a regional migration completes, you do not need to refactor your core application logic or reporting views. Data simply ceases to update from the legacy ECC instance and begins flowing natively through the S/4HANA path. The historical ECC data remains accessible within the model as an immutable analytical archive for multi-year comparative reporting.

Operational Enhancement: Control-Table Filtering

To maximize agility, you can enhance the logic with a lookup to a centralized configuration/control table. This allows data engineers to dynamically filter out or toggle legacy ECC data execution based on active migration waves, purely by updating a status value in the control table rather than modifying (commenting out) code.

Unified ECC and S/4HANA Reporting Model in SAP Datasphere: Our Conclusion 

Successfully supporting enterprise reporting during an SAP S/4HANA transformation requires more than simply connecting multiple data sources. It demands a scalable architecture that reconciles structural differences, preserves business semantics and provides a consistent analytical experience regardless of where the underlying data originates.

By implementing dedicated Inbound, Harmonization and Propagation layers in SAP Datasphere, organizations can establish a unified reporting model that remains stable throughout every phase of the migration journey. This layered approach not only minimizes disruption during phased rollouts but also simplifies future maintenance, improves data governance, and enables historical and operational reporting to coexist seamlessly.

From our use cases, several best practices consistently contribute to successful implementations:

  • Enforce strict naming conventions across SAP Datasphere spaces and objects to improve maintainability, transparency, and collaboration between development teams.

  • Capture the source system identifier (SRC_SYS_ID) at the point of ingestion to ensure reliable lineage, prevent key collisions, and enable robust cross-system associations.

  • Keep transformation logic modular and reusable, allowing harmonization views to be maintained independently and reducing duplication across projects.

  • Design for future extensibility. A well-structured Harmonization Layer makes it straightforward to onboard additional SAP or even non-SAP ERP systems in the future without redesigning downstream reporting models.

  • Separate business logic from source-specific logic, ensuring that reporting models and SAP Analytics Cloud dashboards remain stable as source systems evolve or legacy environments are decommissioned.

Ultimately, this architecture provides organizations with a future-proof reporting foundation that supports hybrid ERP landscapes today while accelerating the transition to a fully modern SAP environment tomorrow.

Reach out to our team to discuss your transformation goals and discover how we can help you build a unified, future-ready analytics landscape.

 

FAQ - ECC & S/4HANA Reporting Model

Here are some of the most frequently asked questions about implementing a Unified ECC & S/4HANA Reporting Model in SAP Datasphere.

What is a unified ECC and S/4HANA reporting model in SAP Datasphere? A unified ECC and S/4HANA reporting model in SAP Datasphere is a layered data architecture that consolidates legacy SAP ECC tables and modern S/4HANA Core Data Services (CDS) views into a single analytical layer. It lets global organizations keep uninterrupted reporting during phased S/4HANA migrations, where ECC and S/4HANA data coexist for prolonged interim periods.
Why is hybrid ECC and S/4HANA reporting needed during an S/4HANA migration? During an SAP S/4HANA transition, organizations rarely migrate all business units, regions, or functional areas at once. These phased rollouts create interim periods where operational and historical data live in both legacy ECC instances and the new S/4HANA core. A hybrid model consolidates both so executive reporting and global visibility continue without disruption.
Which layers make up the recommended SAP Datasphere architecture for this use case? The architecture uses four layers: the Inbound Layer (IL) for raw ingestion from S/4HANA CDS views and ECC tables, the Harmonization Layer (HL) for transforming legacy ECC structures to match S/4HANA semantics, the Propagation Layer (PL) for consolidated consumption via UNION, and the Reporting Layer for final consumption. The Harmonization Layer is the extra layer specifically required to reconcile ECC and S/4HANA differences.
What is the SRC_SYS_ID field and why is it important? SRC_SYS_ID is a technical source-system identifier (e.g. 'SAPECC' or 'SAPS4') populated for every record at the point of ingestion using SAP Datasphere Replication Flows. It acts as a discriminator across the entire pipeline, enabling precise filtering, lineage auditing, and prevention of cross-system data collisions where business keys would otherwise overlap.
How does the Harmonization Layer transform ECC data? The Harmonization Layer (HL) transforms raw legacy ECC data to match the S/4HANA CDS target standard through three areas: structural alignment (mapping, renaming, and re-typing ECC fields to mirror CDS views), semantic reconciliation (using complex joins and calculated fields to replicate modern rules like the Universal Journal / ACDOCA from tables such as BKPF, BSEG, and CO sub-ledgers), and modular design (reusable views to avoid code duplication). SQLScript views are preferred over Graphical Views for their flexibility.
Why use UNION ALL in the Propagation Layer? Once ECC data is structurally aligned in the Harmonization Layer, it shares an identical schema with native S/4HANA Inbound Layer data, so a UNION ALL operation can safely consolidate both streams in the Propagation Layer (PL). S/4HANA data flows directly from the Inbound Layer to the UNION node without intermediate transformation, minimizing processing overhead.
How do you prevent master data mismatches across ECC and S/4HANA? To prevent incorrect cross-system assignment, every association between a Fact view and a Master Data dimension view in the Propagation Layer uses a composite key of the business identifier plus SRC_SYS_ID. This is necessary because identifiers like Customer ID 100045 may represent different entities in ECC versus S/4HANA, and the composite key guarantees ECC records bind only to ECC master data and S/4HANA records only to S/4HANA master data.
What happens to the reporting model when a regional migration completes? When a regional migration completes, no refactoring of core logic or reporting views is required. Data simply stops updating from the legacy ECC instance and begins flowing natively through the S/4HANA path. Historical ECC data remains accessible as an immutable analytical archive for multi-year comparative reporting.
How can ECC data be toggled off without changing code? ECC data can be toggled off either by commenting out the ECC stream in the SQLScript Propagation Layer view (which removes the data without altering the PL schema) or, more dynamically, by adding a lookup to a centralized control table where engineers update a status value to filter ECC data based on active migration waves - no code changes needed.
What are the best practices for this SAP Datasphere architecture? Key best practices are: enforce strict naming conventions with standardized prefixes (IL_ for Inbound, HL_ for Harmonization, PL_ for Propagation); embed SRC_SYS_ID early during initial replication rather than deriving it later; and design for extensibility so a new non-SAP ERP can be integrated simply by adding a Harmonization Layer view that outputs the S/4HANA target schema.

, ,

avatar

Fotios

Fotios Vlantis has been in the SAP world as an ERP consultant in Greece since 2021. He is currently working as a SAP BW/BI consultant with his special focus being on SAP BW/4HANA. As a former javelin throw athlete, he likes to play sports, read and travel.

Got a question about this blog?
Ask Fotios

Implementing a Unified ECC & S/4HANA Reporting Model in SAP Datasphere
11:09

Blog - NextLytics AG 

Welcome to our blog. In this section we regularly report on news and background information on topics such as SAP Business Intelligence (BI), SAP Dashboarding with Lumira Designer or SAP Analytics Cloud, Machine Learning with SAP BW, Data Science and Planning with SAP Business Planning and Consolidation (BPC), SAP Integrated Planning (IP) and SAC Planning and much more.

Subscribe to our newsletter

Related Posts

Recent Posts