Skip to content

BW Query Template Generator: key takeaways from the SAP webinar

Takeaways from the SAP webinar on the BW Query Template Generator: local table layer, limits, roadmap with the BW Migration Agent and Q&A answers.

By 6 min read
Cover about the SAP webinar on the Query Template Generator: from an SAP BW query to an Analytic Model in SAP Datasphere, with the BW modernization roadmap in SAP Business Data Cloud
Table of contents

In October I wrote about the Query Template Generator (QTG) based on SAP’s documentation and one partner’s field experience. On 3 December 2026 SAP Community finally streamed the webinar announced back then: Sandy Tran, product manager for BW modernization, walked through the tool, ran a demo and answered over twenty questions. These are the key points and, above all, what my earlier post did not cover.

Where it fits: the BW modernization toolkit

SAP frames BW modernization in three steps: optimize (clean up BW before moving it), modernize (move what is worth keeping to BDC with tooling) and innovate (replace use cases with SAP-managed data products or agents). The QTG is one of three tools in the modernize step (watch at 3:31):

Tool What it covers Status
Data Product Generator (DPG) Publishing BW data and semantics to the BDC object store. Not a migration tool Available
Query Template Generator The query and its dependent objects, as an Analytic Model in Datasphere Available (private cloud edition only)
BW Migration Agent Everything below the query: data flows, transformations, routines Planned for the first half of 2027

The layering was also made explicit: the QTG generates into the HANA layer because that is where the Analytic Model lives, while the DPG and the future migration agent work in the cheaper object store. Only what needs HANA is stored there.

What is new compared to my earlier post

A local table under every object

This was the most interesting technical detail (12:17). For every generated entity (the fact view and each dimension) the QTG creates a HANA local table underneath. It is a deliberate abstraction layer: when you want the model to read real data, you swap the local table for your source (DPG tables, a replication flow from S/4HANA, an SAP data product) without touching the model definition or breaking the Analytic Model’s associations.

It fits what I said about data: the QTG only brings metadata, and the objects are created at design time, not even deployed. Switching the source is a follow-up step you own.

The fact view is tailored to the query

The fact view does not copy the whole CompositeProvider: it holds only the fields the selected query needs. Worth noting because it nuances the biX Consulting experience I quoted in October, which mentioned dimensions generated for every InfoObject in the provider. Check it in your pilot.

What is supported and what is not (with an official note)

In October I asked where the official list of unsupported features was. The answer is SAP Note 3774419, which the presentation uses as its reference. What was shown and answered:

  • Supported: calculated and restricted key figures, advanced formula operators (abs, log, max, min, %, %A, %GT…), input-ready variables that are the only restriction in the global filter or in a restricted key figure and can be mapped to Datasphere variable types, hierarchy node filters (resolved as leaf filters), global filter (no key figures), exception aggregation (SUM, MIN, MAX, COUNT, COUNTNULL, AVG, AVGNULL, STD, FIRST and LAST) and, on InfoObjects, time dependency, units/currencies, navigation attributes and texts. In the demo, a query with two structures, hierarchies and an exception aggregation reached Datasphere intact (13:39).
  • Not supported today: two structures with cell definitions (Datasphere does not support them yet), planning queries and queries with customer exit variables: the QTG ignores the exits and cannot take the query over (44:41).
  • If it would not match, it does not translate: SAP would rather skip a query than generate one that returns different results. Currency definitions were given as an example. The tool also tells you whether a query can be used.

On-premise and BW Bridge

  • BW on-premise? Today it is exclusively private cloud edition. SAP “envisions” a route for on-premise customers with its own commercial model (30:07). No date: an intention, not a roadmap item.
  • And BW Bridge? A clear answer: the strategy no longer includes BW Bridge. The path is to move the existing BW to private cloud edition and replace it gradually in Datasphere (42:42).

Roadmap: what is coming

All of this is planned, not available (20:37):

  • QTG: an ABAP report to repoint the generated model to the tables the DPG already published in the object store. It detects which InfoObjects the query needs and generates a new fact view pointing to them. Today that link is manual. This answers the other open question from my October post. Hierarchy node variables are also coming.
  • DPG: partitions in subscriptions are already available; hierarchy subscriptions are planned for Q4, so you get the complete InfoObject (texts, attributes and hierarchies).
  • BW Migration Agent (first half of 2027, with versions for 7.5 and BW/4HANA): migrates flows deterministically to Datasphere entities, creates replication flows against S/4HANA or ECC extractors via ODP (LIS included) and translates ABAP start and end routines into Python operators in transformation flows with the help of an LLM. Complex code will still need manual work.
  • Datasphere (parity with BW): text variables, multi-fact Analytic Models (CompositeProvider-style), linked nodes in hierarchies, InfoSource-like reuse, stacked operators without persistence, request management and native non-cumulative key figures for inventory. Customer exit variables would arrive as SQLScript derivations, not Python.

More quick answers from the Q&A

Question Answer in the session
Bulk migration of hundreds of queries? Queries are selected one by one today; logged as a feature request
BW 7.5 and BW/4HANA? Both
Built for SAC or for Databricks/Snowflake? The Analytic Model is best consumed from SAC (InA); external consumption is possible
Analysis for Office on the Analytic Model? Yes, through the SAC add-in for Office
Workbooks and report-to-report interface (RRI)? No answer yet: to be checked with SAC product management
BEx queries as data products via the DPG? No plans; only queries defined as InfoProviders
Performance? No issues seen so far, but no data loads are involved yet; will adapt to customer feedback

How this changes my approach

I stand by what I said in October: the QTG is a first-draft accelerator, not an automatic migration. The session adds three practical tweaks:

  1. Design the repointing from day one: treat the generated local tables as sockets. Document, for each one, which source will replace it (DPG, replication flow or SAP data product).
  2. Filter your inventory with Note 3774419 before the pilot: set aside queries with cell definitions, customer exits or planning. They will not save you time.
  3. Plan in two phases: queries now with the QTG, data flows with the BW Migration Agent when it arrives in 2027. If your migration relies on complex ABAP routines, do not count on a perfect automatic translation.

The question I still have not seen answered is how transports of generated objects work across tenants. If anyone at SAP reads this, there it is.

Sources