The Data Builder is where SAP Datasphere data is modelled. Data arrives in local tables and remote tables (page 02), is combined and cleaned in graphical views and SQL views, gets business meaning through semantic usages (fact, dimension, text, hierarchy), associations and semantic types, and is finally published to SAP Analytics Cloud and other tools through the Analytic Model – SAP's multidimensional consumption object, which replaced the analytical dataset and the Business Builder. This page explains every Data Builder modelling object, the semantics a modeller must set, the Analytic Model in depth (measures, aggregation, variables, structures), intelligent lookup and E/R models, and how to make models fast and stable (persistence, View Analyzer, release states). Consumption, data access controls and the catalog: page 04; flows and remote tables: page 02; SQLScript, CLI and transport: page 05.
Part 1 – The Data Builder and the modelling layers
Every object is created inside a space (page 01) and is visible only there unless it is shared to other spaces. The Data Builder start page lists all objects of the space, filters them by type, and offers New, Import (CSV file, CSN/JSON file, remote tables, BW analysis authorizations), Deploy, Share, Impact and Lineage Analysis and Delete.

Data Builder object | Purpose | Details |
|---|---|---|
Local table | Stores data in the space (disk or in-memory; file storage in file spaces) | Part 2 |
Remote table | Virtual access to a source table, optionally replicated (snapshot or real time) | page 02 |
Graphical view | Drag-and-drop view: joins, unions, filters, projections, calculations, aggregation | Part 3 |
SQL view | View written as a standard SQL | Part 4 |
Analytic Model | Multidimensional model on a fact with measures, dimensions, variables, structures – consumed by SAC and Excel | Part 6 |
Intelligent lookup | Rule-based (exact / fuzzy) matching of two entities without a reliable join key | Part 7 |
E/R model | Diagram to import, design, associate and deploy many tables and views together | Part 7 |
Data access control | Row-level security object applied to views and analytic models | page 04 |
Replication / data / transformation flow, task chain | Load and transform data, orchestrate tasks | page 02 |
Currency conversion views, time data | Generated helper objects for TCUR* conversion and calendar dimensions | Part 2 |
1.1 Design time, run time and names
- Save writes the definition to the design-time repository; Deploy creates the run-time object in the space schema of the underlying SAP HANA Cloud database. Only deployed objects can be used by others, previewed fully or consumed.
- Each object has a business name (changeable, shown to users) and a technical name (alphanumeric and underscore, fixed once saved). SQL always uses technical names.
- Objects can be assigned to a package for transport (assignment changes only by a space administrator) – lifecycle and the Transport app: page 05.
- Definitions are stored as CSN (Core Schema Notation, the CAP / CDS JSON format). A single CSN file may be at most 25 MB – very wide or complex views must be split (SAP Note 3768744).
- Every editor offers the same toolbar: Save / Deploy, Share, Preview Data, Export to CSN/JSON, Edit Custom CSN Annotations, Impact and Lineage Analysis, Version History, Generate OData Request, Runtime Metrics and the Data Pipeline Analyzer for error tracing.
- Objects can also be listed, created, read, updated and deleted with the
dataspherecommand line interface (page 05). - Most Data Builder objects are not supported in file spaces (storage type SAP HANA Data Lake Files) – there you work with local tables (file) and transformation flows (page 02).
1.2 Recommended layering
Datasphere does not force a layer model, but the documentation's best practices (secure data early, persist expensive views, reuse released views) lead to the layering most projects use:
Layer | Objects | Rule of thumb |
|---|---|---|
Inbound / acquisition | Remote tables, replicated local tables, flow targets | 1:1 with the source, no business logic; one ingestion space per source system is common |
Harmonisation / propagation | Graphical and SQL views, intelligent lookups, persisted views | Clean, join, map and union; apply data access controls here; persist heavy views |
Semantic / reporting | Facts, dimensions, texts, hierarchies with associations | Stable, released views; shared to consumer spaces |
Consumption | Analytic models, views with Expose for Consumption | One focused analytic model per business question; several models on one fact |
Part 2 – Tables: local tables, imported entities, time and currency data
2.1 Local tables
A local table is created empty (columns defined in the editor), from a CSV file, as the target of a flow, or by importing a table definition from a connection or a CSN file. Once deployed, data can be uploaded from CSV, deleted, or maintained record by record in the editor.
Property / feature | What it does |
|---|---|
Semantic usage | Fact, Dimension, Hierarchy, Hierarchy with Directory, Text, Relational Dataset (default) – Part 5; Analytical Dataset is deprecated |
Storage | In a HANA database space: Disk (default) or In-Memory – switch to in-memory and deploy to accelerate access. In a file space: File (SAP HANA Cloud data lake files) |
Delta Capture | Switch on before the first deployment (needs a key, cannot be switched off later). Adds Change Type (I insert, U update, D deleted – deleted records stay as markers until cleaned up) and Change Date (UTC) columns and a delta capture table |
Partitions | Range (one column, value ranges) or hash (one or more columns, fixed number) partitions to split large tables |
Allow Data Transport | [SAP Business Data Cloud formation tenants] transport small, static dimension / text data together with the table definition |
Delete options | All records; for delta tables also records marked as deleted (optionally older than n days); for file tables mark-as-deleted and vacuum of old versions |
Business Purpose | Description, purpose, contacts and tags – visible in the catalog (page 04) |
- The delta capture columns are internal: when a delta-enabled table becomes part of a Business Data Cloud data product, consumers still get deltas, but the two columns are not part of the product definition.
2.2 Importing entities with semantics from SAP systems
The Import Entities wizard (Repository Explorer, Data Builder or the Semantic Onboarding app) reads CDS views from SAP S/4HANA Cloud and SAP S/4HANA on-premise (1610 or higher), and queries, CompositeProviders, DataStore objects and master data from SAP BW/4HANA Model Transfer and SAP BW bridge connections. Instead of plain tables it creates the semantic objects: facts, dimensions, texts and hierarchies with their associations.
- Filters by application component, modeling pattern (e.g. ANALYTICAL_FACT, ANALYTICAL_DIMENSION) and release contract: CDS views released with contract C1 and extraction-enabled can be loaded as remote tables or – the default when supported – by a replication flow to local tables; others become local tables that you fill yourself.
- SAP-delivered CDS views can bring their associated dimensions, texts and hierarchies along only from SAP_BASIS 756 onwards with a connection set up as in SAP Note 3463326; otherwise associations are recreated once the targets exist in the space.
- Re-importing a BW/4HANA entity overwrites the generated table – keep custom logic in views on top.
- Older imports also created Business Builder objects; the Business Builder is deprecated (page 04).
2.3 Generated time dimensions
In Space Management › Time Data › Create Time Tables and Dimensions the space administrator generates a time table (one row per day, by default 1900–2050, To Year at most 100 years ahead), four dimension views Time Dimension – Day / Month / Quarter / Year with level hierarchies (Year-Quarter-Month-Day, Year-Month-Day, Year-Week-Day) and text tables for day, month and quarter names in English, French, German and Spanish. Facts associate their date column (or YYYYMM, YYYYQ, YYYY columns) to these views.
- Fiscal calendars: a dimension with Dimension Type = Fiscal Time (Part 5.6).
2.4 Currency and unit conversion data
In the Data Builder, New › Currency Conversion Views generates the SAP currency tables and views (SAP.CURRENCY.TABLE.TCURR exchange rates, TCURV rate types, TCURF factors, TCURN quotations, TCURX decimals, TCURC codes, TCURT / TCURW texts – each with a SAP.CURRENCY.VIEW.… view). Sources: manual (fill the tables yourself), an SAP S/4HANA Cloud / on-premise connection (tables, views and data flows to load them), an SAP ABAP connection (plus remote tables), or TCUR* tables shared from another space.
- Run the generated data flows to load the rates; share the TCUR* tables from one central space so that all spaces convert with the same rates.
- Units work the same way with the T006* tables and views (unit conversion).
- Conversion is then used in a currency conversion column of a graphical view, the SQL function
CONVERT_CURRENCY, or a conversion measure of an analytic model (Part 6.3). SAC seamless planning models can reuse these TCUR* views (page 04).
Part 3 – Graphical views
A graphical view is built by dragging sources from the Source Browser (Repository tab: objects of the space and shared objects; Sources tab: connections, imported on the fly) onto the canvas. Dropping a second source onto the first creates a join or union. The final node is the output node, which defines the view's columns and properties.
Node / tool | What it does | Notes |
|---|---|---|
Join | Cross, Full, Inner (default), Left or Right join with column mappings | Cardinality (e.g. many-to-one) can be set – it is written into the generated SQL as optimiser information; Distinct Values option |
Union | Stacks sources with column mapping | Union All (keep duplicates) or distinct union (removes duplicates, slower) |
Filter | SQL expression, may use input parameters | e.g. |
Projection (rename / exclude columns) | Reorder, rename, remove columns | Removing columns early reduces data volume |
Calculated Columns | New columns with SQL expressions and HANA functions | Also currency / unit conversion columns and geo-coordinate columns |
Aggregation |
| Filter on aggregated values possible |
Join Suggestion | Proposes joins from existing associations of the source | Uses the semantic model you already built |
Preview Data / Preview SQL | Data of any node; generated SQL can be copied into an SQL view | Good way to learn the SQL behind the view |
Runtime Metrics | Runs the view and shows run time, explain plan, starts View Analyzer | Part 8 |
- Only one filter, projection, calculated columns and aggregation node is allowed per source or join, in any order.
- Input parameters (name, data type, default value) prompt the user and are used in filters, calculated columns and aggregation; in an analytic model they are mapped to variables. Every input parameter must be used, otherwise the view does not deploy.
- Lineage: column and input parameter lineage can be visualised inside the view; Impact and Lineage Analysis shows dependencies across objects and spaces.
- Source changes (columns added / removed in a source) are flagged in the editor and must be processed before redeployment.
3.1 Output node properties
Property | Meaning |
|---|---|
Semantic Usage | Fact, Dimension (Standard or Fiscal Time), Hierarchy, Hierarchy with Directory, Text, Relational Dataset (default) – Part 5 |
Expose for Consumption | Makes the view consumable outside Datasphere via OData and ODBC/JDBC; not needed for data that is consumed through an analytic model |
Run in Analytical Mode | Sends the SAP HANA hint |
Release State | Not Released, Released, Deprecated, Decommissioned (Part 8.4) |
Data Persistence | Virtual or persisted, schedules, partitions (Part 8.1) |
Associations | Semantic relationships to dimensions, texts, hierarchies (Part 5.3) |
Data Access Controls | Row-level security (page 04) |
Business Purpose, Dependent Objects | Documentation for the catalog; where-used list |
Data Validation Status | Result of the last data validation run (Part 8.3) |
Part 4 – SQL views: SQL and SQLScript
The SQL view editor offers two languages: SQL (Standard Query) – one SELECT statement with joins, unions, subqueries and all SAP HANA Cloud SQL functions – and SQLScript (Table Function) – procedural logic with table variables, IF, loops, ending in a RETURN of the result set. The output columns appear in the side panel, where semantics, keys and associations are set as in a graphical view.
|
|
- Use double quotes around technical names; an alias defined in
SELECTmust be used consistently in the other clauses. - Input parameters are referenced with a colon (
:IP_COUNTRY). A source view with parameters is called as"Sales"(IP_CITY: :IP_CITY)in SQL and"Sales"(IP_CITY => :IP_CITY)in SQLScript. - For complex SQLScript the editor may not derive the output structure – then maintain the columns and data types manually in the side panel.
- Generate SQL with AI (
Ctrl+G, needs SAP Business AI enabled and the DW AI Consumer role) writes or changes standard SQL from a prompt; not available for SQLScript. - Graphical or SQL? Graphical views are easier to maintain for key users and show lineage per node; SQL views suit window functions, complex
CASElogic and procedural steps. Both are deployed as SQL views in the space schema, so the same logic performs alike. - Native HANA objects outside the space (Open SQL schema, HDI containers, stored procedures): page 05.
Part 5 – Semantics: facts, dimensions, texts, hierarchies and associations
Semantics turn a technical table into a business object. They are set on tables and views; the analytic model and SAC read them. The concepts mirror BW (key figure / characteristic / text / hierarchy) and S/4HANA CDS analytics (cube / dimension / text / hierarchy views).

5.1 Semantic usages
Semantic usage | Contains | Must have | BW / CDS analogue |
|---|---|---|---|
Fact | Measures (amounts, quantities) and attributes, foreign keys to dimensions | At least one measure | InfoProvider / ADSO; CDS cube |
Dimension (Standard or Fiscal Time) | Master data attributes, internal hierarchies, time-dependency | At least one key column | Characteristic with attributes; CDS dimension |
Text | Language-dependent names for dimension members | Keys for member and language (semantic type Language) | Text table; CDS text view |
Hierarchy (external) | Parent-child relationships for one dimension | Parent and child column, child as key | External hierarchy; CDS hierarchy |
Hierarchy with Directory | Several parent-child hierarchies, nodes from several dimensions, linked to a directory dimension | Hierarchy name, node type, parent / child | BW hierarchy with text nodes; S/4HANA hierarchy node + directory views |
Relational Dataset | Plain rows, no analytical purpose (default) | – | Field-based table |
Analytical Dataset (deprecated) | Old direct-consumption type | – | Migrate to Fact + Analytic Model (page 04 Part 2) |
- Generate Semantics (AI) proposes the semantic usage of an entity and the semantic types of its columns; always review the proposal.
5.2 Keys and semantic types
- Keys – key columns must be unique and not null. A compound key (e.g.
Plant+Material) is allowed; one key is the representative key that is displayed and translated, the other key columns must also be mapped in every association. - Measures – aggregation type (SUM, MIN, MAX, COUNT …) and semantic type Amount with Currency or Quantity with Unit with a reference to the currency / unit column.
- Attribute semantic types – Currency Code (ISO or SAP
CUKY), Unit of Measure, Language, Text, Image URL (dimensions only, shown in SAC tables), geolocation types, Responsible User, fiscal time types (fiscal year, period …), Business Date – From / To / At, calendar date types (year, quarter, month …) and system dates. - Semantic types exist only in entities with usage Fact, Dimension or Text.
5.3 Associations vs joins
A join combines data immediately when the view runs. An association only declares how two entities relate – the join happens later, and only if a consumer actually uses a field of the target (join on demand). Associations are mandatory between facts, dimensions, texts and hierarchies, because the analytic model and SAC navigate along them.
Association | From → to | Mapping rule |
|---|---|---|
Dimension association | Fact, dimension or hierarchy with directory → dimension | One source attribute per target key column (all keys mapped) |
Text association | Fact or dimension → text entity | Map all text identifier keys; optional fallback text column when no translation exists |
Hierarchy association | Dimension → hierarchy or hierarchy with directory | Child / node columns to the dimension key |
- Created in the table editor, the view output node or by drawing in an E/R model; associations of a source can be copied into a view.
- Apply Dimension Data Access Controls to Fact (fact-to-dimension association) enforces the dimension's data access control on the fact rows as well – avoids
nullaggregates for members a user may not see. - Dimensions can associate to further dimensions (e.g. Product → Product Group); the analytic model can expose these second-level dimensions too.
5.4 Hierarchies
Type | Defined | Example |
|---|---|---|
Parent-child | In the dimension: parent and child column (child = key, same data type); recursive, any depth | Department ← Parent department |
Level-based | In the dimension: two or more level columns; fixed depth | Year › Quarter › Month › Day |
External hierarchy | Separate entity with usage Hierarchy, associated from the dimension | Cost center hierarchy maintained separately |
Hierarchy with directory | Entity with usage Hierarchy with Directory + directory dimension listing the hierarchies; nodes may come from several dimensions | S/4HANA GL account hierarchies: |
- Several hierarchies per dimension are allowed if they are of the same type (internal and external parent-child may be mixed).
- Not supported in dimension hierarchies: multiple parents, unassigned members, cycle handling. The data validation rule Missing Hierarchy Nodes can generate views that collect fact records pointing to missing nodes under an
unassignednode (Part 8.3). - Hierarchy with directory requires every node type in its own dimension – e.g. GL account groups must be modelled as a separate dimension although S/4HANA stores them in the node view.
5.5 Time dependency
A dimension or text entity becomes time-dependent when one column has semantic type Business Date – From and another Business Date – To (same data type, Date or String; one of them part of the key; avoid overlapping intervals). SAC then shows members and names valid today; a reference date variable in the analytic model lets the user choose another key date. Both dates are inclusive by default; the @Semantics.interval CSN annotation can make a boundary exclusive.
5.6 Fiscal time
A dimension with Dimension Type = Fiscal Time describes a fiscal calendar (fiscal variant, fiscal year, period, quarter or week). Added to an analytic model, it automatically creates a standard variable of sub type Fiscal Variant, so users report by fiscal periods instead of calendar months – the counterpart of 0FISCVARNT / 0FISCPER in BW.
Part 6 – The Analytic Model
The Analytic Model is the analytical foundation for consumption in SAP Analytics Cloud (live), the SAC add-in for Excel and the analytical OData API. It is built on one fact (or on another analytic model) and lets the modeller pick exactly the measures and dimensions needed for one business question, add calculated, restricted, count distinct, conversion and non-cumulative measures, variables, a structure, a global filter and data access controls, and test everything in a pivot-style analytical preview (based on the SAC data analyzer). Think of it as the Datasphere successor of the BW query / CDS analytical query.

6.1 Building it
- Data Builder › New Analytic Model, drag a fact (or an analytic model) onto the canvas and choose which measures, attributes and associated dimensions to copy. Or open a fact and use Create Analytic Model under Semantic Usage.
- Data type, semantic type and standard aggregation are inherited from the fact; for amount / quantity measures the currency or unit column is added automatically.
- Dimensions reachable through associations (also second-level, e.g. Customer → Country) can be added; dimensions used in an association cannot be deselected. Business names can be changed per model (e.g. Cost Center → Sending Cost Center).
- Terminology follows SAC: input parameters of the fact become variables, attributes become dimensions.
- Several small analytic models on one fact are preferred over one huge model – each tailored to a story or user group, with its own measures, variables and filters.
- On an analytic model as source, measures (not auxiliary), attributes, associations, variables, global filter and data access controls are copied; source variables are inherited, set to a fixed value or mapped to a new variable.
- Replace the fact source keeps everything modelled as long as the new source has the same technical names; a validation lists broken references.
6.2 Measure types
Measure | What it does | Example |
|---|---|---|
Fact source measure | Measure taken over from the fact with its aggregation | Net amount |
Calculated measure | Formula on other measures: arithmetic, | Margin % = (Revenue – Cost) / Revenue |
Restricted measure | Measure filtered on dimension values (fixed or by a restricted measure variable) | Revenue for country = DE; Revenue of previous year |
Count distinct measure | Number of unique values of one or more dimensions | Number of customers |
Currency conversion measure | Converts an amount to a target currency with TCUR* views, rate type and date (fixed or variable) | Revenue in EUR at month-end rate |
Unit conversion measure | Converts a quantity with T006* views | Quantity in KG |
Non-cumulative measure | State values (stock, headcount) aggregated over time by exception aggregation | Stock at end of month |
- Measures can be auxiliary (used in calculations, hidden from consumers).
- Moving post-aggregation logic (calculated / restricted measures) from SAC stories into the analytic model makes it reusable for every story and testable in the preview.
6.3 Aggregation and exception aggregation
Standard aggregation summarises a measure over every dimension that is not in the drill-down. Exception aggregation adds a different rule for selected dimensions (such as SUM, MIN, MAX, average, count, FIRST, LAST). Order of calculation: standard aggregation → formula → exception aggregation. Exception aggregation runs after HANA's optimised aggregation, so many exception dimensions cost performance.
- Example: average net amount per customer = SUM(net amount) with exception aggregation AVERAGE over Customer; number of customers = count distinct on Customer.
6.4 Non-cumulative measures
Inventory-type data cannot be summed over time. A non-cumulative measure needs: a time reference dimension (fact date attribute associated to a time dimension, e.g. the generated Day dimension), a record type field taken from the fact source and always used as an auxiliary measure (0 = delta, 1 = reference point, 2 = delta already included in the reference point) and exception aggregation over time (e.g. LAST for closing stock, FIRST for opening stock). Only one reference point per dimension combination is supported. Allowed exception aggregations over time: FIRST, LAST, MIN, MAX, SUM, AVERAGENULL, COUNTNULL and FIRST / AVERAGE / LAST OF DIMENSION. The idea is the same as BW non-cumulative key figures with marker / reference point.
6.5 Variables
Variable | Purpose |
|---|---|
Standard variable | Maps to an input parameter of the fact (e.g. key date, currency); sub types Reference Date and Fiscal Variant |
Filter variable | Prompt that filters a dimension: single value, multiple single values, interval or ranges; optionally mandatory, with default values |
Restricted measure variable | Used only inside a restricted measure ("revenue of the selected country") – does not filter the whole result |
Reference date variable | Key date for time-dependent dimensions and texts |
Derived value | Value read from a lookup table or view after the prompt (e.g. currency derived from the chosen country) – not shown in the prompt |
Dynamic default | Default value derived before the prompt appears (e.g. current period) |
- Every variable must be used; the order of variables (drag and drop) is the prompt order in SAC.
6.6 Structures, global filter and other settings
- Structure – with restricted and calculated structure members applied across all measures (e.g. a member "Germany" restricting every measure). With measure and structure formulas, collision handling decides which calculation wins at the intersection – the same concept as two structures in a BW query.
- Global filter – a static filter applied to the whole model before consumption (one per model; more only when built on another analytic model).
- Data access controls – applied to the model or inherited from the fact (page 04). For analytic models with standard or reference date variables, mapping a DAC to a dimension attribute is not supported.
- Protect data export hides the export button (Excel / CSV / PDF) in the preview; Personal Data / Sensitive Personal Data tags are applied automatically when such columns are included.
- Attributes of type
LargeStringcannot be consumed in SAC.
6.7 Preview, sharing and limits
- Two previews: the simple data preview and the analytical preview with rows / columns drill-down, hierarchies, variables and structures.
- Opening a preview or running an SAC query against an analytic model times out after three minutes – persist or simplify heavy sources.
- Sharing to another space allows that space to use the model as a source for another analytic model only; SAC stories consume an analytic model only from its own space. Conversion measures always use the TCUR* / T006* views of the space where the model is consumed.
- After a redeployment of a changed analytic model, open and save the affected SAC stories again.
- SAC must use the Optimized Design Experience (not Classic) to consume analytic models; Analysis for Microsoft Office cannot consume analytic models (page 04).
Part 7 – Intelligent lookup and E/R models
7.1 Intelligent lookup
An intelligent lookup enriches an input entity with columns from a lookup entity when there is no reliable join key – e.g. free-text city names to official county names, or website visits to latitude / longitude. It is an interactive, business-oriented harmonisation tool.
- Input: the entity to enrich and its pairing column (an ID-like column identifying the objects; a concatenated calculated column if needed).
- Lookup: the reference entity and its return columns.
- Rules: Exact Match (values in chosen columns must be equal) or Fuzzy Match (string similarity with match and review thresholds). Several rules can be chained – records unmatched by rule 1 go to rule 2.
- Results: matched, review (fuzzy score between the thresholds), multiple and unmatched – the subject-matter expert confirms, rejects or assigns manually; decisions are kept for later runs.
- Output: a view (optionally including unmatched records with default values) that can be used like any other view.
7.2 E/R models
An entity-relationship model is a diagram that holds a set of tables and views: you can add objects from the repository, import them from connections or CSN files, create new tables and views, draw associations between them, add related entities automatically and deploy everything in one step. It documents a subject area for the team and is the fastest way to set up many imported tables with business names and associations.
- The E/R model itself holds no data and is not consumed; the entities it contains are normal Data Builder objects.
Part 8 – Performance, quality and lifecycle of models
8.1 View persistence
By default a view is virtual – it runs on every access, including any remote sources. Persisting a view materialises its result in a table that is refreshed by a run or schedule (Data Integration Monitor › Views, page 04 Part 9).
Data access status | Meaning |
|---|---|
Virtual | No persistence; computed at run time |
Persisted | Result stored; readers use the snapshot |
Partially persisted | View with input parameters: only rows for the default parameter value are stored |
- Partitions on a persisted view load large data in slices; single partitions can be refreshed or locked.
- A view can be persisted with its own data access control, but not if it consumes a view protected by a DAC – persist below the protected view or put the DAC on the top view.
- Persisting views on remote tables also stores the remote data – check the source's licensing and limits; persisted views consume memory or disk of the space.
- Changing a DAC on a source view removes the persistence of persisted views on top when it is redeployed.
8.2 Analysing performance
- Runtime Metrics (view editor) – executes the view, shows run time and row count, and offers an Explain Plan download or the View Analyzer.
- View Analyzer (Data Integration Monitor › Views › Start View Analyzer) – analyses every entity in the view's lineage: without memory consumption, with a simulated persistence (memory needed, requires expensive statement tracing), Explain Plan, or an SQL Analyzer plan file for SAP HANA tools. It recommends which views to persist.
- Typical tuning: replicate large remote tables (especially sources over 500,000 rows behind a DAC), persist expensive intermediate views, set join cardinalities, filter and project early, in-memory storage for hot tables, Run in Analytical Mode for aggregating views, avoid many exception aggregation dimensions.
- Memory and statement limits come from the space's workload configuration (page 01).
8.3 Data validation
Data Validation (view and fact properties) runs rules and shows the result in the Data Validation Status: key rules (unique keys, no null keys, referential integrity of fact foreign keys against dimension keys), hierarchy rules (no multiple parents, no circular hierarchies, missing hierarchy nodes), data type rules and text entity rules (e.g. language code formats). Run it before releasing a view.
8.4 Release states and versions
Release state | Meaning |
|---|---|
Not Released | Default; free to change |
Released | Guarantees stable output for at least two years: you may add columns, associations and (if the view already has one) input parameters with default values – never remove or change existing ones. Cannot be reverted to Not Released |
Deprecated | Successor view must be named; consumers are guided to migrate |
Decommissioned | Allowed after one year in Deprecated (and at least two years after release); the view can then be deleted |
- Release states mirror the C1 release contract of S/4HANA CDS views: consumers in other spaces can rely on released views.
- Version History of each object allows comparing and restoring earlier saved versions.
- Impact and Lineage Analysis before every change to a shared or released object; the Dependent Objects section lists consumers.
- Personal data: columns tagged as personal or sensitive personal data in a data product are tagged in every view that uses them (page 04 Part 7).
Part 9 – Interview questions
Q1. Which modelling objects does the Data Builder offer?
Local and remote tables, graphical views, SQL views (SQL or SQLScript table function), analytic models, intelligent lookups, E/R models and data access controls, plus the flows and task chains for data integration and generated currency / time objects. Everything lives in a space, is saved to the repository and deployed to the space schema in SAP HANA Cloud.
Q2. What is the difference between an association and a join?
A join combines the data every time the view runs. An association only declares the relationship; the join is executed on demand when a consumer uses a field of the target. Associations connect facts to dimensions, dimensions to texts and hierarchies, and are what the analytic model and SAC navigate.
Q3. Which semantic usages exist and what do they require?
Fact (at least one measure), Dimension (at least one key; standard or fiscal time), Text (member and language keys), Hierarchy (parent / child, child as key), Hierarchy with Directory (several hierarchies with a directory dimension) and Relational Dataset (default). Analytical Dataset is deprecated – use Fact plus an analytic model.
Q4. What is an Analytic Model and why did it replace the analytical dataset?
It is the multidimensional consumption object built on a fact (or another analytic model). Unlike the analytical dataset it supports calculated, restricted, count distinct, conversion and non-cumulative measures, exception aggregation, variables, structures, global filters, selective exposure of measures and dimensions (including second-level dimensions) and a rich analytical preview.
Q5. Explain standard and exception aggregation.
Standard aggregation summarises a measure over the dimensions not in the drill-down; exception aggregation applies a different rule for named dimensions, e.g. LAST over time for stock or AVERAGE over customer. Order: standard aggregation, then formula, then exception aggregation – exception aggregation is slower, so use few dimensions.
Q6. How do you model stock (a non-cumulative key figure) in Datasphere?
A fact with the movements and reference points, a record type column (0 delta, 1 reference point, 2 delta included), a date associated to a time dimension, and a non-cumulative measure in the analytic model with exception aggregation FIRST / LAST over time.
Q7. Which variable types does an analytic model have?
Standard variables (mapped to fact input parameters, sub types reference date and fiscal variant), filter variables on dimensions, restricted measure variables used inside one restricted measure, and reference date variables for time-dependent data. Values can be derived from a lookup entity or given a dynamic default.
Q8. When do you persist a view, and what blocks persistence?
When a virtual view is slow or puts load on a remote source: persist it (with schedules and partitions) after checking it with the View Analyzer. A view cannot be persisted if it consumes a view protected by a data access control; persistence of views with input parameters covers only the default value.
Q9. What does releasing a view mean?
Release State Released guarantees stable output for at least two years: only additive changes (new columns, associations, parameters with defaults) are allowed. To retire it you deprecate it with a successor and later decommission it – like the C1 contract for S/4HANA CDS views.
Q10. How do you bring S/4HANA semantics into Datasphere?
With the Import Entities wizard / Semantic Onboarding on an S/4HANA connection: it reads released CDS views (filter by modeling pattern and release contract C1), creates facts, dimensions, texts and hierarchies with associations, and loads data via replication flows or remote tables. Currency tables come from the Currency Conversion Views generator, calendars from the generated time dimensions.
Q11. When would you use an intelligent lookup?
When two data sets must be combined but there is no clean join key – free-text names, partial codes, external data. Exact and fuzzy rules match records iteratively; a business expert reviews the uncertain and unmatched results; the output is a reusable view.
Q12. As an architect, how do you structure models across spaces?
Inbound spaces with 1:1 replicated or remote source tables; harmonisation views where data is cleaned, joined and secured with data access controls; released semantic views (facts, dimensions) shared to consumer spaces; small analytic models per business question on top. Persist where the View Analyzer shows it pays off, and share currency and time data centrally.
🏠 Start Here · ◀ 02 · Data Integration · 04 · Consumption & Security ▶ · Sections: CORE ABAP | OOPS ABAP | ABAP on HANA | Clean Core | RAP | ABAP Points | SAP Fiori | SAPUI5 | Mobile Development (MDK) | BTP Foundations | BTP Development | CAP | SAP Build | ABAP on BTP | Integration Suite | SAP Business AI | SAP BASIS | Security | SAP SDLC
Functional: FICO ABAP | TRM ABAP | VIM | SAP BIS | SD ABAP | MM ABAP | PP ABAP | QM ABAP | PM ABAP | PS ABAP | EWM | TM ABAP | GTM ABAP | EHS ABAP | HR ABAP | BW | SAP Datasphere | SAP Business Data Cloud | SAP MDG | SAP Analytics Cloud | SAP Ariba | SAP CX | SAP IBP