SAP MDG · COMMUNITY

How do I extend SAP MDG HANA-Based Analytics with object counters?

This guide shows how to extend SAP MDG HANA-Based Analytics with object counters for Change Requests: first generate the BOTC-specific scenario, then enhance the generated query view in SAP HANA Studio with a total-objects counter and an average-objects measure.

This guide shows how to extend SAP MDG HANA-Based Analytics with object counters for Change Requests: first generate the BOTC-specific scenario, then enhance the generated query view in SAP HANA Studio with a total-objects counter and an average-objects measure.

Use this procedure to extend SAP MDG HANA-Based Analytics with counters/measures for objects contained in Change Requests. The guide applies from MDG 7.0 SP05 and states it is only available in ECC. The two main additions are a total number of objects in Change Requests and an average number of objects within a Change Request.

Process flow

  1. Ensure SAP MDG HANA-Based Analytics is already configured and running.
  2. Identify the target Business Object Type Code (BOTC).
  3. Run `MDG_ANA_HDB_GEN_REPO_CONTENT` to generate the BOTC-specific scenario.
  4. Locate the generated query view that contains the BOTC in its name.
  5. Open the query view in SAP HANA Studio.
  6. Select the Aggregation node.
  7. Create a new counter for total objects in Change Requests.
  8. Configure the counter as `TotalObjectsInChgReqs` with `COUNT_DINSTINCT`.
MDG_ANA_HDB_GEN_REPO_CONTENT

Generate the BOTC-specific HANA-Based Analytics scenario before enhancing the query view

Creates the object-specific scenario required for the counter logic

SAP HANA Studio

Open the generated query view, select the Aggregation node, and maintain calculated columns/counters

Add the total-object counter and the average-object measure

Referenced tables

ObjectPurpose
Business Object Type Code examplesSource examples used by the guide: `194` for Material (`MM` / `MATERIAL`), `147` for Business Partner (`BP` / `BP_HEADER`), and `154` for Company (`0G`).

ILLUSTRATIVE ABAP SAMPLE

Average objects per Change Request formula

Paste this into the Expression Editor for the calculated measure. If you rename the total counter, replace `TotalObjectsInChgReqs` with the actual column name.

1float("TotalObjectsInChgReqs")/float("TotalChangeRequests")

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • What is this guide about?
  • How do I add object counters to MDG HANA analytics?
  • Which releases support this procedure?

Possible questions

  • Why add object counters?
  • What additional KPI does this extension provide?
  • What must be working before I extend the query view?
  • Does HANA-Based Analytics need to be configured first?
  • Why is BOTC important for object counting?
  • Can one object counter work for all object types?
  • Which report generates the object-specific scenario?
  • What must I generate before enhancing the query?
  • Which query view can be enhanced?

Keywords

MDG 7.0 SP05ECCHANA-Based Analyticsobject countersChange RequestsTotal ObjectsAverage Objectsmaster data objectsChange Request KPIreplication scenariointegrated scenarioBusiness Object Type CodeBOTCMDG_ANA_HDB_GEN_REPO_CONTENTSAP HANA StudioCOUNT_DINSTINCTTotalObjectsInChgReqsAvgObjectsPerChgReq