Analytics Legends The knowledge platform for SAP Analytics
Concept card

Graphical vs SQL vs Script Views

Graphical vs SQL vs Script Views — Analytics Legends section illustration for the SAP Analytics knowledge base (concepts, studies, Academy)

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

  1. SAP Datasphere — Modeling docs
  2. SAP HANA SQL Reference
  3. Datasphere — Graphical view tutorials
  4. TechEd 2025 session DA304 — modeling deep-dive
  5. SAP News Center — Accelerate the Autonomous Enterprise with SAP Business Data Cloud
  6. SAP News Center — SAP Unveils the Autonomous Enterprise
  7. SAP News Center — The Future of the Enterprise Is Autonomous
  8. SAP News Center — 2026 SAP Sapphire Keynote: Powering the Autonomous Enterprise
  9. SAP Datasphere — Help Portal
  10. SAP Datasphere — official product page
  11. SAP Analytics Cloud — Help Portal
  12. SAP Analytics Cloud — official product page
  13. SAP BW/4HANA — Help Portal
  14. SAP S/4HANA — Help Portal
  15. SAP News Center
  16. SAP Community
  17. SAP — industries overview
  18. Gartner — research & analyst site
  19. BARC — BI & Analytics research
  20. TDWI — data & analytics research
  21. DSAG — German-speaking SAP user group
  22. ASUG — Americas' SAP User Group
  23. Databricks — official site
  24. EU AI Act — Regulation (EU) 2024/1689, Art. 14 (Human Oversight)
  25. SAP Help Portal — Administering SAP Datasphere: Enable Joule for SAP Datasphere
  26. From HANA Studio to HANA Cloud: The Pain Points Nobody Warns You About — SAP Community (Technology Blog Posts by SAP)
  27. Innovate with SAP HANA Cloud, an agentic multi-model database service — SAP Community (Technology Blog Posts by SAP)
  28. Currency Conversion in SAP Datasphere Using Graphical Views — SAP Community (Technology Blog Posts by Members)
  29. Consuming Data Products in SAP HANA Cloud via SAP Business Application Studio/SAP Build Code — SAP Community (Technology Blog Posts by SAP)
  30. New Machine Learning, NLP and AI features in SAP HANA Cloud 2025 Q3 — SAP Community (Technology Blog Posts by SAP)
  31. The Question of Full Loading Large CDS VIews from S/4 HANA: Problems and Solutions — SAP Community (Technology Blog Posts by SAP)
  32. SAP Datasphere: How to define Offsets for Restriction Variables in Analytic Models — SAP Community (Technology Blog Posts by Members)
  33. Agentic Databases for Data Scientists: SAP HANA Cloud Will Equip You with a Team — SAP Community (Technology Blog Posts by SAP)
  34. Hello Python: My First Script in SAP BAS Connecting to HANA Cloud — SAP Community (Technology Blog Posts by Members)
  35. Introduction to Alert Rule Sets in SAP HANA Cloud Central — SAP Community (Technology Blog Posts by SAP)
  36. 🚀☁️ Migrating to SAP HANA Cloud: A Business Transformation Journey — SAP Community (Technology Blog Posts by Members)
  37. Consuming the Parameterized CDS View using OData in Datasphere — SAP Community (Technology Blog Posts by Members)
  38. View/Access backend data in S/4 HANA Cloud,Public Edition — SAP Community (Technology Blog Posts by Members)
  39. SAP Datasphere & Python : One click to export data of multiple views in Excel/CSV — SAP Community (Technology Blog Posts by Members)
  40. Currency and unit conversion in SAP Datasphere Analytic Model with variable and value help — SAP Community (Technology Blog Posts by Members)
  41. All Datasphere Functions in One File — SAP Community (Technology Blog Posts by SAP)
  42. Query modelling in SAP DATASPHERE with use case example — SAP Community (CRM and CX Blog Posts by SAP)
  43. New Machine Learning and AI features in SAP HANA Cloud 2025 Q2 — SAP Community (Technology Blog Posts by SAP)
  44. Export Datasphere Views Data in CSV Format — SAP Community (Technology Blog Posts by Members)
  45. Integrating Open SQL Schema Tables with SAP Datasphere Space using Dataflow — SAP Community (Technology Blog Posts by Members)
  46. SAP Datasphere External Access Overview: APIs, CLI and SQL — SAP Community (Technology Blog Posts by SAP)
  47. New Machine Learning and AI features in SAP HANA Cloud 2025 Q1 — SAP Community (Technology Blog Posts by SAP)
  48. 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)
  49. Datasphere - Graphical vs SQL Views. Procs and Cons of each? — SAP Community (Technology Blog Posts by Members)
  50. 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.

Open in the app →