Graphical vs SQL vs Script Views
As of 2026-07-24T14:00:00Z
What is Graphical vs SQL vs Script Views?
Graphical views silently break HANA push-down past 5-7 joins — the single most common cause of dashboards that slow down six months after go-live.
What it is
Datasphere offers three ways to build a view over data: Graphical Views, built visually by dragging and joining tables on a canvas; SQL Views, written directly in ANSI SQL with SAP HANA extensions; and Script Views, written in procedural SQLScript for logic that plain SQL cannot express. All three produce a queryable object inside Datasphere, but they get there through fundamentally different execution paths, and that difference is the whole story.
Why it matters
The choice between the three view types is one of the few Datasphere decisions that directly determines runtime performance months after the modeling work is done, because one of the three — Script Views — does not push down to HANA Cloud's native execution engine the way the other two do. A modeling choice that looked purely cosmetic during a workshop can become the root cause of a dashboard that silently degrades as data volume grows, discovered only when users start complaining.
How it works
Why it matters in practice
- Graphical modeling turns into unreadable spaghetti past 5-7 joins with no windowed-analytics support — fine for prototypes, wrong for production.
- SQL views cover 80% of production-grade modeling; the default should flip to SQL once join count exceeds 5 or a window function is needed.
- Script views are the procedural escape hatch — reach for them only when Graphical and SQL genuinely can't express the logic.
Key points
- Three view types: Graphical (low-code), SQL (workhorse, default), Script (escape hatch — penalises push-down).
- Default to SQL once joins > 5 or window functions appear. Graphical is for prototypes + simple dim wrappers.
- Script view in Analytic Model lineage = 10-50× slowdown for every consumer query.
- Three-layer composition pattern: staging (typing + currency) → domain (joined + named) → consumption (pre-aggregated).
- HANA SQL surface includes full ANSI window functions, recursive CTEs, PIVOT, LATERAL joins.
- Hierarchy artefact in the Analytic Model beats recursive CTE — let HANA evaluate natively.
- Joule-in-Datasphere (H2 2026 GA target) will narrow the SQL skill barrier by drafting from natural language.
- 2 SQL-fluent modelers ship 3-4× the production content of 4 Graphical-only modelers after 6 months.
- Graphical vs SQL vs Script Views is mastered only when it changes a named buyer decision.
- Start with the semantic contract and control model before demonstrating the tool.
Terms used on this page
- Graphical View
- Drag-and-drop canvas-based modeling surface in Datasphere. Translates to SQL at runtime.
- SQL View
- ANSI SQL + HANA extensions, written as code. Pushes directly to HANA optimizer. The workhorse.
- Script View
- SAP HANA SQLScript with procedural blocks. Forces row-by-row evaluation, breaks push-down. Edge cases only.
- Push-down
- Query execution pattern where Datasphere translates SQL into HANA-native operations executed in column-store engine.
- CTE
- Common Table Expression — WITH clause that defines a named result set for use in a single query.
- Window function
- Aggregation that operates over a partition of rows defined by PARTITION BY + ORDER BY (e.g. ROW_NUMBER, SUM OVER).
- Three-layer composition
- Canonical Datasphere pattern: staging → domain → consumption views, each reusable and testable.
- Calculation View
- Legacy HANA-native view artefact (predates Datasphere). Datasphere SQL views compile into calc views under the hood.
Sources
- SAP Datasphere — Modeling docs
- SAP HANA SQL Reference
- Datasphere — Graphical view tutorials
- TechEd 2025 session DA304 — modeling deep-dive
- SAP News Center — Accelerate the Autonomous Enterprise with SAP Business Data Cloud
- SAP News Center — SAP Unveils the Autonomous Enterprise
- SAP News Center — The Future of the Enterprise Is Autonomous
- SAP News Center — 2026 SAP Sapphire Keynote: Powering the Autonomous Enterprise
- SAP Datasphere — Help Portal
- SAP Datasphere — official product page
- SAP Analytics Cloud — Help Portal
- SAP Analytics Cloud — official product page
- SAP BW/4HANA — Help Portal
- SAP S/4HANA — Help Portal
- SAP News Center
- SAP Community
- SAP — industries overview
- Gartner — research & analyst site
- BARC — BI & Analytics research
- TDWI — data & analytics research
- DSAG — German-speaking SAP user group
- ASUG — Americas' SAP User Group
- Databricks — official site
- EU AI Act — Regulation (EU) 2024/1689, Art. 14 (Human Oversight)
- SAP Help Portal — Administering SAP Datasphere: Enable Joule for SAP Datasphere
- From HANA Studio to HANA Cloud: The Pain Points Nobody Warns You About — SAP Community (Technology Blog Posts by SAP)
- Innovate with SAP HANA Cloud, an agentic multi-model database service — SAP Community (Technology Blog Posts by SAP)
- Currency Conversion in SAP Datasphere Using Graphical Views — SAP Community (Technology Blog Posts by Members)
- Consuming Data Products in SAP HANA Cloud via SAP Business Application Studio/SAP Build Code — SAP Community (Technology Blog Posts by SAP)
- New Machine Learning, NLP and AI features in SAP HANA Cloud 2025 Q3 — SAP Community (Technology Blog Posts by SAP)
- The Question of Full Loading Large CDS VIews from S/4 HANA: Problems and Solutions — SAP Community (Technology Blog Posts by SAP)
- SAP Datasphere: How to define Offsets for Restriction Variables in Analytic Models — SAP Community (Technology Blog Posts by Members)
- Agentic Databases for Data Scientists: SAP HANA Cloud Will Equip You with a Team — SAP Community (Technology Blog Posts by SAP)
- Hello Python: My First Script in SAP BAS Connecting to HANA Cloud — SAP Community (Technology Blog Posts by Members)
- Introduction to Alert Rule Sets in SAP HANA Cloud Central — SAP Community (Technology Blog Posts by SAP)
- 🚀☁️ Migrating to SAP HANA Cloud: A Business Transformation Journey — SAP Community (Technology Blog Posts by Members)
- Consuming the Parameterized CDS View using OData in Datasphere — SAP Community (Technology Blog Posts by Members)
- View/Access backend data in S/4 HANA Cloud,Public Edition — SAP Community (Technology Blog Posts by Members)
- SAP Datasphere & Python : One click to export data of multiple views in Excel/CSV — SAP Community (Technology Blog Posts by Members)
- Currency and unit conversion in SAP Datasphere Analytic Model with variable and value help — SAP Community (Technology Blog Posts by Members)
- All Datasphere Functions in One File — SAP Community (Technology Blog Posts by SAP)
- Query modelling in SAP DATASPHERE with use case example — SAP Community (CRM and CX Blog Posts by SAP)
- New Machine Learning and AI features in SAP HANA Cloud 2025 Q2 — SAP Community (Technology Blog Posts by SAP)
- Export Datasphere Views Data in CSV Format — SAP Community (Technology Blog Posts by Members)
- Integrating Open SQL Schema Tables with SAP Datasphere Space using Dataflow — SAP Community (Technology Blog Posts by Members)
- SAP Datasphere External Access Overview: APIs, CLI and SQL — SAP Community (Technology Blog Posts by SAP)
- New Machine Learning and AI features in SAP HANA Cloud 2025 Q1 — SAP Community (Technology Blog Posts by SAP)
- Exploring New SQL on Files Use Cases with SAP HANA Cloud QRC 04/2024 and QRC 01/2025 — SAP Community (Technology Blog Posts by SAP)
- Datasphere - Graphical vs SQL Views. Procs and Cons of each? — SAP Community (Technology Blog Posts by Members)
- Loop control using SQLScript view, Data Flow script operator & Open SQL procedure in SAP Datasphere — SAP Community (Technology Blog Posts by Members)
Full card available to members. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.