ERPClimb logoERPClimb
CompositeProvider
BW / Analyticsadvanced 4 min read

CompositeProvider Advanced Design: Join, Union and Pruning (Part 4)

Free sample lesson · open to everyone

Key takeaway

CompositeProviders combine providers through union and join logic for reporting. Union stacks semantically compatible datasets, while joins combine related datasets by keys. The modeling challenge is preserving the intended reporting grain. A one-to-many join can multiply measures. If sales header values are joined to multiple item rows, header measures may repeat.

In this lessonShow sections

Visual overview

CompositeProvider Advanced Design: Join, Union and Pruning (Part 4) — learning sheetIn one line: Build CompositeProviders that combine reusable providers without accidental row multiplication, poor pruning or ambiguous semantics.ERPClimb.com / BW / LESSON 4/4 / LEARNING SHEETCompositeProvider Advanced Design: Join, Union and Pruning(Part 4)1 · IN ONE LINEBuild CompositeProviders that combine reusable providers without accidental rowmultiplication, poor pruning or ambiguous semantics.2 · KEY IDEAS EXPLAINED1CompositeProviders combine providers through unionand join logic for reporting. Union stackssemantically compatible datasets, while joinscombine related datasets by keys. The modelingchallenge is preserving the intended reportinggrain.2A one-to-many join can multiply measures. If salesheader values are joined to multiple item rows,header measures may repeat. Define which providerowns the measure and aggregate at the correctgrain before joining where necessary.3Pruning improves performance by avoiding branchesthat cannot contribute to a query result, butpruning depends on model semantics and filters. Donot build giant CompositeProviders with dozens ofbranches merely to create one universal reportingobject.4Keep associations between characteristics, keyfigures and navigation attributesbusiness-consistent. Query designers shouldunderstand which fields originate from whichbranch and whether values are comparable acrossunioned providers.3 · DO · AVOIDBest practice!Common mistakeDefine grain before modeling.Harmonize union branches.Test measure duplication.✕Joining one-to-many datasets without grainanalysis.✕Using one giant universal CompositeProvider.✕Unioning incompatible semantics.4 · IN A REAL PROJECTA global reporting model unioned sales and service data but one branch lacked a region field and defaulted itinconsistently. Filters no longer pruned correctly and query totals were confusing. Harmonizing branchsemantics restored predictable results.Original ERPClimb learning sheet • Verify against your SAP release and edition

The situation: a real project scenario

A global reporting model unioned sales and service data but one branch lacked a region field and defaulted it inconsistently. Filters no longer pruned correctly and query totals were confusing. Harmonizing branch semantics restored predictable results.

Explanation

CompositeProviders combine providers through union and join logic for reporting. Union stacks semantically compatible datasets, while joins combine related datasets by keys. The modeling challenge is preserving the intended reporting grain.

A one-to-many join can multiply measures. If sales header values are joined to multiple item rows, header measures may repeat. Define which provider owns the measure and aggregate at the correct grain before joining where necessary.

Pruning improves performance by avoiding branches that cannot contribute to a query result, but pruning depends on model semantics and filters. Do not build giant CompositeProviders with dozens of branches merely to create one universal reporting object.

Keep associations between characteristics, key figures and navigation attributes business-consistent. Query designers should understand which fields originate from which branch and whether values are comparable across unioned providers.

How the SAP process fits together

SAP PROCESS EXPLORER · BW: source to insight

ERPClimb.com

CompositeProvider — process breakdown

Topic-specific conceptual flow: how key objects and decisions fit together. SAP configurations and exceptional cases can follow different paths.

1/4

Selected process stage

Connect

Identify relevant ADSOs and providers

Representative SAP learning flow, not a guarantee of system runtime sequence in every scenario.

Watch out

Common mistakes

  • Joining one-to-many datasets without grain analysis — joining a header-level dataset (e.g. sales order) to a many-side dataset (e.g. order items) without checking cardinality causes header measures to silently repeat once per matching item row, inflating totals; determine the grain of each side before joining.
  • Using one giant universal CompositeProvider — merging dozens of branches into a single object meant to answer every possible report hurts performance and makes pruning behavior unpredictable; scope each CompositeProvider to a focused reporting need instead.
  • Unioning incompatible semantics — stacking branches where the same characteristic carries different meanings or default values (one branch defaults region, another does not) produces totals that look plausible but are wrong; harmonize branch semantics before unioning.
  • Relying on pruning without testing actual queries — assuming pruning will automatically skip irrelevant branches is risky because pruning depends on the specific filters a query uses; validate it against the real filter combinations the business will run, not a theoretical case.
  • Duplicating measures across branches — modeling the same key figure in more than one branch of a join/union causes double counting once the branches are combined; assign a single owning branch per measure.

Do this

Best practices

  • Define grain before modeling — decide explicitly what one row of the CompositeProvider represents before adding join or union nodes, since getting this wrong is what causes measure multiplication later.
  • Harmonize union branches — make sure characteristics carry consistent values and defaults across every unioned provider so filters and totals behave the same way regardless of which branch a row came from.
  • Test measure duplication — after building a join node, reconcile the resulting numbers against the source systems, especially wherever a one-to-many relationship is involved.
  • Keep providers focused — build each CompositeProvider around a specific reporting use case rather than one large object intended to cover every possible query.
  • Validate pruning with real query filters — confirm pruning actually skips the branches it should using the filter combinations real reports will use, since pruning is a model property, not a guaranteed performance switch.

In the interview

Interview angle

Explain union versus join, reporting grain, row multiplication and why pruning is a model property rather than a magic performance switch.

Practice this lesson

Quick check

0 of 3 questions attempted

Question 1 of 3

Scenario — A global reporting model unioned sales and service data but one branch lacked a region field and defaulted it inconsistently. In this CompositeProvider situation, which response best addresses the underlying design risk?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1A senior architect is reviewing CompositeProvider. The project situation is: A global reporting model unioned sales and service data but one branch lacked a region field and defaulted it inconsistently. What design changes, validation evidence and production controls would you require before approving the solution?

Was this lesson helpful?

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.