ERPClimb logoERPClimb
CompositeProvider
BW / Analyticsintermediate 8 min read

CompositeProvider Runtime Behavior, Query Performance and Troubleshooting (Part 3)

Preview · a free account unlocks the full lesson

Key takeaway

Understand how CompositeProvider queries execute at runtime, how union and join operations affect performance, and how to diagnose and resolve slow or incorrect query results in production.

In this lessonShow sections

Visual overview

CompositeProvider Runtime Behavior, Query Performance and Troubleshooting (Part 3) — learning sheetIn one line: Understand how CompositeProvider queries execute at runtime, how union and join operations affect performance, and how to diagnose and resolve slow or incorrect query results in production.ERPClimb.com / BW / LESSON 3/4 / LEARNING SHEETCompositeProvider Runtime Behavior, Query Performance andTroubleshooting (Part 3)1 · IN ONE LINEUnderstand how CompositeProvider queries execute at runtime, how union and join operationsaffect performance, and how to diagnose and resolve slow or incorrect query results inproduction.2 · KEY IDEAS EXPLAINED1Once a CompositeProvider is designed andactivated, its real value is tested at queryruntime. Unlike a MultiProvider, which alwaysperforms a union and pushes aggregation down toeach underlying InfoProvider before combiningresults, a CompositeProvider can mix union and…2When a query runs against a CompositeProvider, BWgenerates SQL that is pushed to HANA. For unionparts, HANA typically executes each branchindependently and merges results, similar to aMultiProvider, but with the advantage of in-memorycolumnar processing and reduced data movement. For…3A second runtime consideration is filter pushdown.CompositeProviders are most performant whenfilters on characteristics used in the join orunion key can be pushed down to each underlyingsource before combination. If a query filters on afield that only exists in the composite provider's…4Troubleshooting a CompositeProvider issuetypically starts with reproducing the query in aquery monitor and reviewing the aggregation andjoin step trace, if your tools expose it.Consultants should check: whether theCompositeProvider is using join or union for the…3 · DO · AVOIDBest practice!Common mistakePrefer UNION over JOIN whenever combining factdata at the same grain from different sources…Validate join cardinality against actual dataprofiles in a non-production system before…Test query performance with representativefilters and data volumes, not just small…✕Using JOIN when the actual businessrequirement is a UNION of comparable fact…✕Not verifying cardinality assumptions againstreal data before activating a join-based…✕Assuming filter pushdown always occurs; nottesting performance with realistic filter…4 · IN A REAL PROJECTA retail customer built a CompositeProvider joining a sales ADSO to a promotions ADSO to enrich sales querieswith promotion flags. After go-live, finance reported that total sales figures in the new report were roughlydouble the values in the legacy report. Investigation showed the promotions ADSO had multiple promotion…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Once a CompositeProvider is designed and activated, its real value is tested at query runtime. Unlike a MultiProvider, which always performs a union and pushes aggregation down to each underlying InfoProvider before combining results, a CompositeProvider can mix union and join semantics within a single object, and it executes on the HANA calculation engine rather than the classic BW OLAP engine alone. This means performance characteristics differ meaningfully from classic BW objects, and consultants need a mental model of how the generated HANA calculation view behaves.

When a query runs against a CompositeProvider, BW generates SQL that is pushed to HANA. For union parts, HANA typically executes each branch independently and merges results, similar to a MultiProvider, but with the advantage of in-memory columnar processing and reduced data movement.

For join parts, the join is evaluated at the granularity of the CompositeProvider definition, which means if the join cardinality is not correctly set (for example, an unintended many-to-many relationship), the result set can silently multiply rows, causing inflated key figures.

This is one of the most common production defects: a report showing revenue three times higher than expected because a join between a sales ADSO and a returns ADSO was modeled without a proper cardinality constraint or without pre-aggregating one side.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.