Analytics Legends logoAI & Analytics Legends Sign inSign up
Concept card

Graphical vs SQL vs Script Views

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

As of 2026-11-17

Graphical vs SQL vs Script Views: what is the difference?

Graphical views stay pushed down but become unreadable past 5-7 joins; the SQLScript (table-function) view is the one that limits optimisation — the most common cause of dashboards that slow down 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 — is deployed as a table function whose imperative logic limits inlining and filter push-down, unlike the other two. 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.

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.
  • Editor's field observation (not an SAP figure): SQL views carry most 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.
  • An SQLScript view in an Analytic Model's lineage limits push-down and optimisation for every consumer query (the slowdown is case-specific; measure it).
  • Three-layer composition pattern: staging (typing + currency) → domain (joined + named) → consumption (pre-aggregated).
  • HANA SQL surface includes window functions, CTEs, LATERAL joins and hierarchy functions; pivots are written with CASE and aggregation.
  • For parent-child logic use the Hierarchy artefact in the Analytic Model or HANA hierarchy functions — let HANA evaluate natively.
  • SQL views from natural-language prompts are generally available in Datasphere (see the SAP release notes); confirm the scope in the release notes before promising natural-language authoring of production views.
  • SQL-fluent modelers usually ship more production content than Graphical-only modelers (anecdotal field observation, not a measured benchmark).

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.
SQL view in SQLScript
An SQL view written in SQLScript, deployed as a table function: imperative logic limits optimisation and filter push-down; measure the penalty. 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.

Sources

  1. SAP HANA SQL Reference
  2. SAP Datasphere — Help Portal
  3. SAP Datasphere — official product page
  4. SAP Analytics Cloud — Help Portal
  5. SAP Analytics Cloud — official product page
  6. From HANA Studio to HANA Cloud: The Pain Points Nobody Warns You About — SAP Community (Technology Blog Posts by SAP)
  7. Innovate with SAP HANA Cloud, an agentic multi-model database service — SAP Community (Technology Blog Posts by SAP)
  8. Currency Conversion in SAP Datasphere Using Graphical Views — SAP Community (Technology Blog Posts by Members)
  9. Consuming Data Products in SAP HANA Cloud via SAP Business Application Studio/SAP Build Code — SAP Community (Technology Blog Posts by SAP)
  10. New Machine Learning, NLP and AI features in SAP HANA Cloud 2025 Q3 — SAP Community (Technology Blog Posts by SAP)
  11. The Question of Full Loading Large CDS VIews from S/4 HANA: Problems and Solutions — SAP Community (Technology Blog Posts by SAP)
  12. SAP Datasphere: How to define Offsets for Restriction Variables in Analytic Models — SAP Community (Technology Blog Posts by Members)
  13. Agentic Databases for Data Scientists: SAP HANA Cloud Will Equip You with a Team — SAP Community (Technology Blog Posts by SAP)
  14. Hello Python: My First Script in SAP BAS Connecting to HANA Cloud — SAP Community (Technology Blog Posts by Members)
  15. Introduction to Alert Rule Sets in SAP HANA Cloud Central — SAP Community (Technology Blog Posts by SAP)
  16. 🚀☁️ Migrating to SAP HANA Cloud: A Business Transformation Journey — SAP Community (Technology Blog Posts by Members)
  17. Consuming the Parameterized CDS View using OData in Datasphere — SAP Community (Technology Blog Posts by Members)
  18. View/Access backend data in S/4 HANA Cloud,Public Edition — SAP Community (Technology Blog Posts by Members)
  19. SAP Datasphere & Python : One click to export data of multiple views in Excel/CSV — SAP Community (Technology Blog Posts by Members)
  20. Currency and unit conversion in SAP Datasphere Analytic Model with variable and value help — SAP Community (Technology Blog Posts by Members)
  21. All Datasphere Functions in One File — SAP Community (Technology Blog Posts by SAP)
  22. Query modelling in SAP DATASPHERE with use case example — SAP Community (CRM and CX Blog Posts by SAP)
  23. New Machine Learning and AI features in SAP HANA Cloud 2025 Q2 — SAP Community (Technology Blog Posts by SAP)
  24. Export Datasphere Views Data in CSV Format — SAP Community (Technology Blog Posts by Members)
  25. Integrating Open SQL Schema Tables with SAP Datasphere Space using Dataflow — SAP Community (Technology Blog Posts by Members)
  26. SAP Datasphere External Access Overview: APIs, CLI and SQL — SAP Community (Technology Blog Posts by SAP)
  27. New Machine Learning and AI features in SAP HANA Cloud 2025 Q1 — SAP Community (Technology Blog Posts by SAP)
  28. 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)
  29. Datasphere - Graphical vs SQL Views. Procs and Cons of each? — SAP Community (Technology Blog Posts by Members)
  30. Loop control using SQLScript view, Data Flow script operator & Open SQL procedure in SAP Datasphere — SAP Community (Technology Blog Posts by Members)
  31. news.sap.com — TabPFN-3.5-Plus now available in SAP AI Core: instant business predictions (2026-09-15)
  32. help.sap.com — Joule embedded directly in the SAP Datasphere interface (doc dated 2026-09-24)
  33. sap.com — SAP-RPT product page (tabular foundation models)

Full card with the Consultant plan — €19.90/month. 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 →

Open missions

SAP analytics jobs and contracts · freelance SAP contracts.