Connecting SAP S/4HANA and Databricks: Integrating Data and Semantics Together
- AIReadiness, Databricks, SAP Business Data Cloud (BDC)
- 7 min reading time

Michael Isabo
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
- 2. The Source as the Starting Point of Semantics
- 3. The Technical Core: CDS Views and Data Product Contracts
- 4. When to Use a Basic CDS View—and When Not To
- 5. The Technical Core: Replication Flow and Its Alternatives
- 6. From the CDS View to the Data Product: A Playbook for Data Architects
- 7. Opportunities and Risks
- 8. Glossary
- 9. Sources
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
- SAP Help Portal: “Configure a Replication Flow” (Load type “Initial and Delta,” delta-enabled sources). https://help.sap.com/docs/SAP_DATASPHERE/c8a54ee704e94e15926551293243fd1d/3f5ba0c5ae3944c1b7279bb989a2a5b5.html
- SAP Community: “CDS View with Change Data Capture (CDC) for Replication Flow – Part 1” (Automatic vs. Manual Key Mapping for Simple and Complex Views). https://community.sap.com/t5/technology-blog-posts-by-members/cds-view-with-change-data-capture-cdc-for-replication-flow-part-1/ba-p/13929571
- zpartner: “CDC Data Extraction: Lessons Learned, Tips & Tricks – Part 3” (Left Outer Join with Automatic CDC).
- SAP Knowledge Base Article 3786825: “Data Product FAQ – SAP Business Data Cloud.”
- SAP Knowledge Base Article 3467525: “ABAP CDC – S/4 Cloud: View Definition Is Too Complex for Automatic CDC.” https://userapps.support.sap.com/sap/support/knowledge/en/3467525
- SAP Knowledge Base Article 3472575: “CDS Views not found in CDS_EXTRACTION” (Prerequisites: @Analytics.dataExtraction.enabled and C1 authorization). https://userapps.support.sap.com/sap/support/knowledge/en/3472575
- SAP Learning: “Getting an Overview of the Virtual Data Model” (Basic, Composite, and Consumption Layers). https://learning.sap.com/learning-journeys/evaluating-overhead-cost-accounting-in-sap-s-4hana/getting-an-overview-of-the-virtual-data-model_fbd48178-c584-4b3d-a8c9-13143c1c75dc
- SAP Architecture Center: “Greenfield Implementation of SAP BDC and SAP S/4HANA with SAP-Managed Data Products.”
- SAP Innovation Hub (Medium): “Best Practices for Developing Virtual Data Models (VDMs) in SAP S/4HANA.” https://medium.com/sap-innovation-hub/best-practices-for-developing-virtual-data-models-vdms-in-sap-s-4hana-a83fdd74c357
- SAP Help Portal: “Use Replication Flows and Transformation Flows to Load and Write Data” (Replication Flow vs. Data Flow: Connectivity and Delta Processing). https://help.sap.com/docs/SAP_DATASPHERE/c8a54ee704e94e15926551293243fd1d/34ae0a2ea6e94483b19f632a2843d56d.html
- SAP Learning: “Working with Flows – Exploring SAP Datasphere” (Data Flow as ETL vs. Replication/Transformation Flow as ELT, sources such as S/4HANA CDS views). https://learning.sap.com/courses/exploring-sap-datasphere/working-with-flows
- SAP Knowledge Base Article 3613288: “ABAP CDS CDC: How to Define a Usable CDS View with ChangeDataCapture.” https://userapps.support.sap.com/sap/support/knowledge/en/3613288
- SAP Community: “SAP Business Data Cloud – FAQs” (SAP-managed vs. customer-managed Data Products, replication via Foundation Services, including CSN/ORD). https://community.sap.com/t5/technology-blog-posts-by-sap/sap-business-data-cloud-faqs/bc-p/14152407
- SAP Community: “SAP Business Data Cloud – Create a Custom Data Product Based on a Replication Flow” (Object Store, Data Provider Profile, Data Sharing Cockpit). https://community.sap.com/t5/data-and-analytics-blog-posts/sap-business-data-cloud-create-a-custom-data-product-based-on-a-replication/ba-p/14238555
- SAP Community: “Customer-Managed Data Products in SAP BDC: What Really Happens When Your Source Is a Datasphere VIEW” (FOS vs. Datasphere Object Store, one vs. two copies depending on the location of the join logic). https://community.sap.com/t5/technology-blog-posts-by-sap/customer-managed-data-products-in-sap-bdc-what-really-happens-when-your/ba-p/14394675
Published by:

Michael Isabo

Michael Isabo
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!








