SAP REFERENCE GUIDE

SAP Datasphere

Complete reference for activities, interviews, and certification β€” covering Data Builder, Business Builder, associations, status lifecycle, and consumption models.

Data Builder Business Builder Spaces HANA Cloud Fact Models Consumption Models
πŸ“‘ Table of Contents
🌐

What is SAP Datasphere

SAP Datasphere is SAP's unified data service platform providing data integration, data warehousing, data federation, and semantic modelling in a single managed service on BTP. It is the central component of SAP Business Data Cloud.

πŸ— Data Integration
Replication Flows (SAP sources, CDC), Data Flows (ETL with transformations), Remote Tables (federation)
πŸ“Š Data Modelling
Graphical/SQL Views, Analytical Models, star schema design, perspectives, SQLScript functions
πŸ’Ό Business Layer
Business Entities, Fact Models, Consumption Models β€” semantic layer for SAC live connection
πŸ” Governance
Spaces isolate data and access. Data Catalog for lineage. Role-based access control.
πŸ›

Architecture & Layers

Datasphere Architecture
SAP Datasphere β€” layered architecture from source systems to SAC consumption

Datasphere follows a layered architecture: source systems feed data into Data Builder technical objects; Business Builder adds semantic meaning; SAC connects for consumption.

☁️
Source Systems
SAP S/4HANA, SuccessFactors, Ariba, BW, non-SAP (Salesforce, Oracle, flat files)
↓ Replication Flows / Data Flows / Remote Tables
πŸ”΅
Data Builder β€” IT Technical Layer
Local Tables, Remote Tables, Graphical Views, SQL Views, Analytical Models, Flows
↓ Business Builder consumes Data Builder objects
🟣
Business Builder β€” Business Semantic Layer
Dimension Business Entities, Fact Business Entities, Fact Models, Consumption Models, Perspectives
↓ SAC Live Connection
🟠
SAP Analytics Cloud (SAC)
Stories, Dashboards, Planning β€” connect to Consumption Model as live data source
πŸ”¨

Data Builder

Datasphere Data Builder
SAP Datasphere Data Builder β€” object types and their relationships

Spaces

Spaces are isolated workspaces within Datasphere. Each space has its own data, users, and connections. Objects can be shared across spaces. All data engineering and modelling work happens within a Space.

Semantic Usage Property

Controls what an object can be used for in Analytical Models and Business Builder:

Semantic TypeBehaviour
Fact / Relational DatasetAppears in Analytical Model left panel β€” can be dragged onto canvas as the central fact
DimensionNever dragged directly β€” auto-discovered via Associations after Fact is placed
TextProvides language-dependent labels for dimension members
HierarchyDefines parent-child or level-based hierarchy for a dimension

Federated vs Persisted vs Hybrid

πŸ”΄ Federated
Remote Table β€” live query to source at runtime. No data copied to HANA Cloud. Always current. Slower at query time.
🟒 Persisted
Local Table β€” data copied and stored in HANA Cloud. Fast query. Requires replication. Data has freshness latency.
🟑 Hybrid
Remote Table with replication enabled. Initially federated, then replicated to local storage for performance.
πŸ“¦

Data Builder Objects β€” Deep Dive

πŸ“‹ Local Table
Persisted data in HANA Cloud. Target for Data Flows and Replication Flows. Physical storage object.
🌐 Remote Table
Live virtual table pointing to source system. Federated query or replication-enabled. No data copy by default.
🎨 Graphical View
Drag-drop canvas with auto-generated SQL. Visual lineage. Set semantic type. Cannot convert to SQL view.
πŸ’» SQL View
Full HANA SQL editor. No visual lineage. Cannot convert back to graphical. Full SQL power.
πŸ“Š Analytical Model
Star-schema consumption layer. Fact + Dimensions. Used for SAC live connection (alternative to Business Builder).
πŸ“ ER Model
Design canvas defining associations between objects. Visual relationship mapping tool.
βš™οΈ SQLScript Table Function
Accepts parameters, returns TABLE result. Supports multi-step logic with table variables. READS SQL DATA = read-only. Best of view (composable) + procedure (logic).
πŸ“… Time Dimension
SAP-generated full date hierarchy Year→Quarter→Month→Day. Key = actual DATE or YYYYMM integer.

Graphical View vs SQL View

FeatureGraphical ViewSQL View
DesignDrag-drop canvasSQL code editor
SQL generatedAuto-generatedManual
Visual lineageYesNo
ConversionCan convert to SQL viewCannot convert back to graphical
Semantic typeSettableSettable
Full SQL featuresLimitedFull HANA SQL

Analytical Model β€” Behaviour

Perspectives

Named column subsets saved on a view. Reduce canvas load, give audience-specific column visibility. Lazy β€” only columns in perspective are rendered at query time.

πŸ”„

Data Flows vs Replication Flows

Datasphere Flows
SAP Datasphere β€” Data Flow (ETL with transforms) vs Replication Flow (CDC from SAP sources)
βš™οΈ Data Flow β€” ETL Pipeline
Transform nodes: Join, Filter, Aggregate, Union, Python Script

Writes output to a Local Table

Supports SAP and non-SAP sources

Transformations Any source Complex logic
πŸ“‘ Replication Flow β€” Move Only
Move data from SAP sources with native CDC delta

Modes: Full Load / Delta / Real-time (CDC)

Always starts with a Full Load first

SAP sources Native CDC Real-time

Decision: Data Flow vs Replication Flow

ScenarioUse
Transformation needed (filter, join, aggregate)Data Flow
SAP source with native CDC supportReplication Flow
Real-time continuous streamingReplication Flow
Non-SAP sourceData Flow
Complex use case (ingest + enrich)RF for ingestion β†’ staging β†’ DF for enrichment
Replication always starts Full Load. Delta = changed rows only (requires CDC or timestamp column). Real-time CDC = continuous streaming via SLT/ABAP delta queue. You cannot skip the initial Full Load.
πŸ’Ό

Business Builder

Business Builder
SAP Datasphere Business Builder β€” semantic layer with Dimension BEs, Fact BEs, Fact Models, Consumption Models
Key difference from Data Builder: Business Builder objects are SAVED β€” not deployed. No Deploy button. Only Perspectives require deployment. "In Process" = incomplete configuration, not missing deployment.

Business Builder Object Hierarchy

🟒
Step 1 β€” Dimension Business Entities
Wrap Data Builder views. Add semantic attributes. Mark Key attribute + click Verify β†’ Save β†’ Ready to Use.
↓
🟒
Step 2 β€” Fact Business Entity
Wrap Fact view. Add measures (aggregable), attributes. Add associations to Dimension BEs β†’ Save.
↓
🟠
Step 3 β€” Fact Model
Combine Fact BE + expose Dimension BEs. Predefine measures, attributes, filters for a business context β†’ Save.
↓
πŸ”΅
Step 4 β€” Consumption Model
Built on Fact Model. Add dimension sources. Save β†’ Ready to Use. SAC connects here.
↓ (Optional)
πŸ“
Step 5 β€” Perspectives
Reusable subsets of Consumption Model attributes/measures/parameters. Only BB object that requires DEPLOY.

Dimension Types

πŸ”΅ Primary Dimension
Exposed to SAC. Users filter, drill, slice by it. Added to "Expose Dimension Sources" in Fact Model. Full dimensional navigation.
🟣 Auxiliary Dimension
NOT exposed standalone. Enriches another dimension via dim-to-dim association. Its attributes surface through the parent dimension in SAC.
πŸ“ Text Dimension
Language-dependent labels for dimension member IDs. Used for multilingual descriptions of dimension members.

Business Layer Matching β€” Key Terms

TermDefinitionKey Words
Business EntitiesCan define measures or attributes. Measures are quantifiable aggregable values."aggregable field"
Fact ModelsPredefine an array of measures, attributes, and filters relevant to a specific business context."predefine", "business context"
PerspectivesReusable configurations containing a subset of a consumption model's attributes, measures and parameters."subset", "reusable"
πŸ”΄

Status Lifecycle β€” In Process vs Ready to Use

Critical understanding: "In Process" and "Ready to Use" are Business Builder lifecycle statuses. They indicate configuration completeness β€” NOT deployment state. Status cascades upward: fix Dimension BEs first, then Fact BE, then Fact Model, then Consumption Model.
⏳ In Process
Object exists but required configuration is incomplete. Cannot be used by objects above it. Not usable by SAC. Common cause: Key attribute not set or Verify not clicked on Dimension BE.
βœ… Ready to Use
All required configuration complete and valid. Can be referenced by higher-level objects. Consumption Model shows its dimension sources. SAC can connect.

How to Resolve "In Process" β€” Fix Order

ObjectRequired to reach Ready to Use
Dimension Business EntitySet Key attribute β†’ click Verify β†’ Save. Key is mandatory. Without Verify, stays In Process.
Fact Business EntityAt least one measure added. Associations to dims defined. Dimension BEs must be Ready to Use first.
Fact ModelFact BE selected (must be Ready to Use). Dims added to Expose Dimension Sources (must be Ready to Use). Save.
Consumption ModelFact Model selected as source (must be Ready to Use). Save.
PerspectiveConfigured + must be Deployed (only BB object requiring deploy).
The single most impactful fix: Open each Dimension Business Entity β†’ Attributes tab β†’ find the key field β†’ mark as Key β†’ click Verify β†’ Save. This one step resolves most "In Process" cascades.
πŸ“Š

Consumption Models

Where Attributes Appear

Critical behaviour: Dimension attributes from the Fact Model do NOT appear in the top-level Attribute section of the Consumption Model. They are nested under each dimension node. Expand the dimension in SAC's field picker to access them.
WhatWhere in Consumption ModelWhere in SAC
MeasuresTop-level Measures sectionTop-level in field picker
Fact-level attributesTop-level Attributes sectionTop-level in field picker
Dimension attributesNested under dimension nodeExpand β–Ά dimension in field picker

Why Dimension Attributes Are Nested

πŸ”—

Associations Guide

Associations vs Joins

πŸ”— JOIN (main canvas)
Always executes at query time. Merges data physically. Eager β€” fires regardless of whether the consumer uses the joined object. Used within a single view for data combination.
πŸ”€ Association (Associations tab)
Lazy β€” only fires when consumer actually uses the related object. Navigational path for Analytical/Consumption Models. Replaces explicit joins for dimensional navigation.

Association Rules β€” Business Builder

Association TypeDirectionRequired?Notes
Fact β†’ DimensionOne-way: Fact β†’ DimAlways β€” mandatoryPrimary star schema join path
Dimension β†’ DimensionOne-way: Child β†’ ParentOnly when FK exists in childChild holds the foreign key
Dimension β†’ Factβ€”NeverDimensions don't reference Facts
Bidirectionalβ€”Never neededAssociations are always one-way

Association Context β€” When and Why

Use Association Context when the same two objects can be related in multiple different ways β€” disambiguating which join path to use for a given Fact Model.

Example: State dimension has SalesRegionID and ServiceRegionID — both pointing to the same Region dimension. Without context, Datasphere can't resolve which to use. Define two associations: one with Context="Sales" (SalesRegionID→ID) and one with Context="Service" (ServiceRegionID→ID). Each Fact Model specifies which context it activates.

Dim-to-Dim Association Rules

🎯

Exam Tips & Quick Reference

Critical Facts

CERT Business Builder
Objects SAVE only β€” no Deploy button. Exception: Perspectives require Deploy. "In Process" = incomplete config, not missing deployment.
CERT Ready to Use
Dimension BE: Key + Verify + Save. Status cascades up the chain β€” fix bottom first (Dim BEs β†’ Fact BE β†’ Fact Model β†’ Consumption Model).
CERT Replication Flow
Always starts with Full Load. SAP sources only. Native CDC support. Delta = changed rows. Real-time = continuous via SLT.
CERT Semantic Usage
Fact/Relational Dataset = appears in Analytical Model left panel. Dimension = never dragged, auto-discovered via associations.
CERT Associations
Always one-directional. Fact β†’ Dim (always). Dim β†’ Dim (only when FK exists in child). Dimension β†’ Fact: never. Bidirectional: never.
CERT Dim Attributes in SAC
NOT in top-level Attributes section. Nested under dimension node. Expand β–Ά dim in SAC field picker to access them.

Data Builder Object Quick Reference

ObjectPurposeDeploy Required
Local TablePersisted storage in HANA CloudYes
Remote TableFederation / replication from sourceYes
Graphical ViewVisual ETL / semantic layerYes
SQL ViewFull HANA SQL, no visual lineageYes
Analytical ModelStar schema for SAC direct connectionYes
Data FlowETL with transforms β†’ Local TableYes (run)
Replication FlowCDC from SAP sources β†’ Local TableYes (run)
Dimension BEBusiness semantic wrapper β€” attributesNo β€” Save only
Fact BEBusiness semantic wrapper β€” measuresNo β€” Save only
Fact ModelBusiness subject area (dim + measures)No β€” Save only
Consumption ModelFinal SAC connection pointNo β€” Save only
PerspectiveSubset of Consumption ModelYes β€” only BB object