Home AIReadiness Connecting SAP S/4HANA and Databricks: Integrating Data and Semantics Together

Connecting SAP S/4HANA and Databricks: Integrating Data and Semantics Together

S4 Data in Databricks, Including Semantics

How does SAP S/4HANA data get into the SAP Business Data Cloud (BDC)? This wiki explains the interaction between CDS views, business semantics, and replication flows. You’ll also learn about the prerequisites for delta loads and how to select the appropriate loading method.

1. From Table Export to Domain Semantics

Anyone who uses SAP data for analytical purposes must load, structure, and categorize it according to business requirements. It is crucial that all parties involved use the same definitions. Without a common reference, multiple variations of the same metric can quickly emerge across different pipelines and tools.

The SAP Business Data Cloud (BDC) establishes this reference through data products: Their structure and origin are described in a standardized manner, and their business meaning can be defined directly in S/4HANA. This wiki shows how ABAP-CDS views lay this foundation, how the data is transferred to the BDC via replication flows, and which loading method is appropriate in each situation.

2. The Source as the Starting Point of Semantics

In S/4HANA, ABAP-CDS views define which fields represent amounts, quantities, currencies, and units, and how they are related. These @Semantics annotations serve as a unique template for all downstream layers. The replication flow transfers columns and data types; the mappings themselves are implemented in Datasphere and Databricks based on this template.

There are two distinct levels to consider here. Technical semantics describe the structure of the data—that is, data types, lengths, keys, and required fields. This information is transferred via the replication flow and described in the CSN of the data product. Business semantics describe the meaning of the data—for example, which amount corresponds to which currency, or whether a field is a key figure or an attribute. This information is contained in the CDS annotations and, as of now, is not included in the transfer.

In practice, semantics are therefore managed on multiple levels. The CDS view defines them at the source, while Datasphere implements them using semantic types and analytic models so that SAP consumers can utilize them. Metrics that are first generated in Datasphere—for example, by combining multiple sources—originate there. For Databricks, the semantics are mapped in the gold layer: Delta Sharing shares the technical semantics, not the business semantics.

3. The Technical Core: CDS Views and Data Product Contracts

This is based on ABAP CDS views that explicitly describe their business meaning. For example, amount fields reference their currency field via @Semantics.amount.currencyCode, and quantity fields reference their unit field via @Semantics.quantity.unitOfMeasure. Setting @Analytics.dataExtraction.enabled: true enables a view for data extraction.

In accordance with the Clean Core principle, custom extraction views primarily rely on shared I-views. If a suitable view is not available, a customer-specific Z-view may be considered, provided it is properly documented and maintained by the customer.

A replication flow loads the view into a local table (file) in the SAP Datasphere Object Store. In the Data Sharing Cockpit, this is converted into a customer-managed data product via a data provider profile. It is published in the BDC catalog with ORD metadata (Open Resource Discovery, the catalog description) and CSN metadata (Core Schema Notation, the schema description). This description forms the data product contract: the structure, field names, and data types are derived from the CDS definition rather than being reconstructed in the data lake. As of now, the @Semantics references are not included: they must be specifically replicated in Datasphere and Databricks; the annotations provide a clear template for this.

The location of the join logic determines the number of copies. If the CDS view already joins the tables, exactly one persisted copy is created on the SAP side: the local table (file). If, on the other hand, the logic is located in a Datasphere view, its result must first be persisted as a HANA table and then written to the Object Store.

This is not the case with SAP-managed data products: They do not require a replication flow modeled by the customer. After integrating the S/4HANA system into the BDC formation and activating the data packages in the BDC Cockpit, SAP makes the SAP-defined data products available in the Foundation Services. Their descriptions (ORD, CSN) are transferred from the source system to the BDC catalog.

component

Function

ABAP CDS Views with @Semantics

Encapsulate currency, quantity, and amount logic directly within the SAP core.

@Analytics.dataExtraction.enabled

Provides the views as a consumable data source.

Replication Flow and Data Sharing Cockpit

Loads the views into the Object Store and publishes them as a data product.

Bronze Delta Tables

Local table (file) in the Object Store; optionally, the bronze layer of a Medallion architecture.

4. When to Use a Basic CDS View—and When Not To

The SAP Virtual Data Model (VDM) consists of three layers. A Basic View is directly based on a database table, supplements basic semantics and associations, and serves as a reusable building block; according to SAP guidelines, it contains no parameters. Composite views combine multiple basic views via joins or associations and contain the actual business logic. Consumption views sit at the top and provide an application-specific view annotated for OData or analytics. Basic and composite views that SAP has officially released together form the interface layer (I_-views).

A basic-level extraction view is the right choice when data needs to be provided from a master source in a way that preserves its original structure and field-level details.

For replication flows using delta, the view’s schema is a technical requirement. Automatic Change Data Capture (@Analytics.dataExtraction.delta.changeDataCapture.automatic: true) is intended for simple views such as projections: The system then derives the key mapping from the main table. Exposed associations do not pose an obstacle in this case. However, if fields are included in the field list via a path expression, this creates a join at the database level, and the view falls outside the scope of automatic CDC.

For views with joins, the keys of the involved tables are manually mapped in the view (changeDataCapture.mapping). Even simple left outer joins have pitfalls: The key field of the joined table must be included as a field in the view, but it must not be defined as a CDS key. If a valid CDC definition is missing, SAP reports an error such as “Definition of view is too complex for automatic CDC,” and the “Initial and Delta” load type is not available.

Delta therefore requires the least effort with a streamlined extraction view. Aggregations and complex calculations can be modeled after loading, for example in transformation flows.

5. The Technical Core: Replication Flow and Its Alternatives

The Replication Flow is SAP Datasphere’s native ingestion mechanism and thus the standard method for customer-managed data products in the BDC. It connects a source system—typically S/4HANA via CDS views—to a destination and transfers the data in two phases: a one-time initial load and, provided the view is CDC-enabled, a periodic delta update. Along the way, it can filter and map columns, but it cannot perform joins or aggregations. The table shows when the alternatives are appropriate.

Procedure

When to Use It

Border

Replication Flow

Up-to-date, materialized business data in the BDC; CDS source with CDC delta; standard scenario for S/4HANA ingestion.

Delta only for CDC-enabled views (automatically or with manual mapping); no transformation occurs during the process.

Data Flow

When data needs to be cleaned, linked, or enriched with Python logic during loading.

No delta (only initial or batch load); writes only to SAP HANA spaces, not to the Object Store.

Zero-Copy / Delta Sharing

If data products are already in the BDC and Databricks or Fabric are to access them in read-only mode without creating additional copies (see Wiki 03).

Read-only; the target engine cannot write or modify the data itself.

SLT / Remote Tables

For deep tables without CDS processing or for legacy scenarios with trigger-based replication.

Close to raw tables, without a data product contract; the semantics must be reconstructed in the target.

6. From the CDS View to the Data Product: A Playbook for Data Architects

There are three rules for the loading path:

  • Semantics are specified at the source: Add @Semantics annotations to CDS views that map amounts and quantities to their currency and unit fields. This ensures that the business meaning is defined in one place.
  • Apply logic only as far back to the source as Delta allows: Keep the extraction view simple enough for CDC-Delta to work, and base it on shared I_-views. Use joins only if you maintain the key mapping; aggregations and complex calculations belong in transformation flows after the load.
  • Choose the method based on your needs: Decide between Replication Flow, Data Flow, Zero-Copy, and SLT based on how current the data needs to be, whether transformation is required, and who owns the data at the destination.

7. Opportunities and Risks

The opportunity lies in a single, contractually defined data state: semantics are defined once at the source and serve as a common template for Datasphere and Databricks; delta loads keep the data up to date; and downstream engines read the same data products instead of their own extracts. Architects should actively manage three risks in this process:

Risk

What it's all about

What Architects Should Do

Lose CDC capability

If the extraction view becomes too complex, delta mode is disabled, leaving only the resource-intensive full load.

Keep extraction views simple and automatically check CDC capability after every change.

Semantic Discontinuity

Without @Semantics annotations, the BDC loses the business meaning of the fields, and downstream engines reinterpret them.

Treat annotations as a mandatory part of every published view.

Source System Load

Trigger-based delta processing (CDS-CDC, such as SLT) and frequent full loads increase the load on the production S/4HANA system.

Adjust the charging method and frequency based on actual power requirements and monitor the system load.

By defining the semantics at the source, you shift the effort to the beginning of the process—a one-time effort—and create a clear template for every downstream pipeline. The following wiki shows how data products from the BDC are transferred to Databricks without further copying and refined there into the gold layer.

8. Glossary

CDS View (Core Data Services): An SAP data model at the database level that enriches tables with semantics, associations, and calculation logic.

Data Product: A managed data object in the BDC whose structure and origin are described in ORD and CSN metadata. This description is referred to in this wiki as the "Data Product Contract."

ORD (Open Resource Discovery): An open protocol that allows a system to describe, in a machine-readable format, the resources it offers, such as APIs, events, and data products. The BDC catalog imports these descriptions.

CSN (Core Schema Notation): The schema description of a data product, including fields, data types, and keys.

@Semantics-Annotation: A CDS annotation that assigns semantic meaning to fields, such as @Semantics.amount.currencyCode for associating an amount with its currency, or @Semantics.quantity.unitOfMeasure for associating a quantity with its unit.

Virtual Data Model (VDM): The SAP layered model consisting of Basic, Composite, and Consumption views, which structures the reuse of business logic.

Clean Core: An SAP principle that requires extensions to be built only using approved interfaces and objects, so that the system remains upgradeable.

Replication Flow: A Datasphere loading method based on the ELT principle that replicates data initially—and, for CDC-enabled sources, via delta updates—to a local table (file) in the Object Store.

Change Data Capture (CDC): A mechanism that, after the initial load, transfers only changed records as a delta.

Local Table (File): A table in the SAP Datasphere Object Store in Delta Lake format; the first, source-faithful landing zone and, if desired, the bronze layer of a Medallion architecture.

9. Sources

Published by:

Michael Isabo

Senior Consultant
author

How did you like the article?

How helpful was this post?

Click on a star to rate!

Average rating 5 / 5.
Number of ratings: 16

No votes so far! Be the first person to rate this post!

INFORMATION

More information

Fuzzy Search in the search bar

Fuzzy Search Widget for the SAC

Our SAC expert Joana shows you, step by step, how to...
Knowledge Graph

SAP Knowledge Graph Explained for Joule and AI Agents

In May 2026, SAP announced at Sapphire in Orlando...
SAP Acquires Relatio

SAP Acquires Reltio: The Missing Piece of Its AI Strategy

This wiki discusses why a system of record such as an ERP system is no longer sufficient in the age of AI, and what...
Universal Governance and Lineage for AI

Universal Governance and Lineage for AI

This wiki discusses how SAP authorizations from PFCG roles and Datasphere DAC remain effective as Unity Catalog policies even outside of SAP...
SAP BDC Zero-Copy and Data Engineering with Databricks

Hybrid Data Platform Combining SAP Business Data Cloud and Databricks: Zero-Copy Delta Sharing and Medallion Architecture

How can SAP Data Products be used in Databricks outside of the SAP Business Data Cloud (BDC)? This wiki explains...
wiki-ai-readiness-1 (1)

Three Engines, One Truth: A Semantic Model for SAP Datasphere, Databricks, and Power BI

Three engines, one metric: How do SAP Datasphere, Databricks, and Power BI find common ground? This wiki explains...

SAP Sapphire 2026 Glossary: Joule, AI Agents, and the Autonomous Enterprise Explained Simply

Joule, AI agents, Autonomous Enterprise, A2A protocol—all the new SAP terms from Sapphire 2026 at a glance. Look them up now in the s-peers glossary.