Building Data Models on Top of Data Products

Objective

After completing this lesson, you will be able to describe how to build a data model on top of a data product

Introduction

SAP-managed data products can be directly consumed by applications and AI agents. But on their own, SAP-managed data products often lack sufficient information to be useful to AI agents and analytical applications. SAP-managed data products deliver SAP data to AI agents and analytical applications. But often, a combination of SAP and third-party data is required.

So how can we enrich the SAP-managed data products?

The solution is to build data models on top of SAP-managed data products. There are several reasons for building data models on top of SAP-managed data products. Here are a few scenarios:

  • Combine several SAP-managed data products.
  • Remove unwanted fields to simplify the data products.
  • Define additional dimensions and measures to enrich the data products with more information.
  • Combine third party data with SAP data to expand the data set of the data products.

Installing Data Products into a Custom Datasphere Space

To build data models on top of SAP-managed data products, you use the SAP Datasphere component of SAP BDC.

To get started, you must first activate the relevant SAP-managed data products. Once they are activated, they can be installed in a custom SAP Datasphere space where you can build data models on top of them.

consuming data products in Datasphere data models

Datasphere supports multiple data modeling approaches including relational and dimensional modelling. Datasphere includes tools to connect to any source system, data acquisition (either federated or replicated), data transformation, harmonization, and semantic enrichment.

Request Access to a Data Product

As a data engineer working with SAP Datasphere in SAP Business Data Cloud, you frequently need to integrate data products into your projects or enhance existing data products in a custom SAP Datasphere space. To manage access to data products within SAP Business Data Cloud while ensuring governance and security standards, a workflow process is in place. To simplify the workflow, an SAP BDC administrator can set an auto-approval property for specific uncritical data products. This lesson will guide you through the essential workflow steps. Understanding them helps you efficiently integrate the necessary data, ensuring your projects have the right information while maintaining security standards.

The Standard Workflow

The journey typically begins with discovering suitable data products in the catalog, and culminates in their installation and ongoing management within your SAP Datasphere space. The main advantages of this approach are:

  • Governance: Data stewards can govern and control which data products can be used, and under which terms and agreements.

  • Transparency and Visibility: As a data steward, you can see all active agreements for data products, centrally in one location in the BDC cockpit. As a developer, you see in the SAP Datasphere catalog, which data product requests were rejected or approved, and the reasons.

Workflow to install a data product as explained in the following text

The standard workflow for obtaining data product access involves several key steps:

  1. Discovery and Evaluation: A SAP Datasphere data engineer searches the SAP Datasphere catalog to identify data products that align with their project requirements. The catalog provides details such as the data product's name, summary, statuses (lifecycle, release, functional), data protection tags, and available APIs.
  2. Collection of Required Data Products: The data engineer adds the data products that are required for a specific project to a shopping cart.
  3. Access Request Submission: When the shopping cart is ready, the user proceeds, which generates an access request. The access request specifies the target SAP Datasphere space for installation, the reason for the access request, an optional access period, and acknowledgement of the terms and conditions for the use of the data products.
  4. Review and Approval: The submitted request undergoes a review process, which can be automatic or manual. Data stewards or administrators evaluate the request based on defined policies.
  5. Access Agreement: If approved, the request transforms into an access agreement, granting the user permission to install and use the data product. If the request is rejected, it is returned with optional comments. The data engineer must submit a new request.
  6. Installation: With an approved access agreement, the user can then install the data product into the designated SAP Datasphere space.
  7. Ongoing Management: After installation, users can manage their access agreements, reinstall data products if issues arise, update them to the latest versions, or end agreements when access is no longer needed.

Setting Terms and Conditions

The first step is to define the default terms and conditions for all data products. Later, terms and conditions that deviate from the default definition can be defined for individual data products.

  1. Screenshot of how to define the default terms and conditions in the data Products Management
    In the SAP BDC Cockpit, choose Governance→Domains, then click on Default Terms and Conditions.

    Note

    A domain represents an organization that owns data products. Members of the domain can manage the included data products, approve or reject access requests, and manage access agreements. Currently, only the default domain is available. In future releases, it will be possible to create custom domains in a hierarchical structure and assign data products to them.
  2. Screenshot of how to define the default terms and conditions in the data Products Management
    You are directed to the Data Product Management area. Enter a name, description, and conditions, then choose Save.

Requesting Access to a Data Product

As a data engineer who wants to use a data product within SAP Datasphere, follow this procedure in the SAP Datasphere component of SAP BDC:

  1. Navigate to Catalog: In the side navigation area of SAP Datasphere, select Catalog & Marketplace→Search.
  2. screenshot of the SAP Datasphere Catalog search results page, demonstrating the use of search terms and filters by status. The search term customer finds customer and business partner configuration.
    Search and Filter: On the catalog search page, ensure the Data Products collection is selected. Use filters or search terms to find the desired data product.
  3. screen shot of the data product details page showing flags, such as personal data, and the number of agreements and pending requests. To add this data product to your shopping cart, you can choose the corresponding button at the top right corner.
    Add to Cart:

    Select the data product to open its details page. Pay attention to tags like Personal Data or Sensitive Personal Data, which indicate strict access controls. Data products must have an Active release and lifecycle status, and a Current functional status for all its APIs to be eligible for access requests.

    Choose Add to Cart.

    Note

    A number is displayed next to the shopping cart to indicate the number of data products the cart contains.

    You can add multiple data products to your cart.

  4. A screenshot of the Request Cart view, showing selected data product customer and the Proceed button.
    Review Cart: Access the View Request Cart icon () to review the selected items. You can remove unwanted data products from the cart at this stage. Choose Proceed to open the Request Access dialog.
  5. A screenshot of the Request Access dialog box, showing fields for Target Location, Purpose, Access Period, and the Terms and Conditions acknowledgment checkbox.
    In the Request Access dialog, you need to specify the details:
    • Target Location is the SAP Datasphere space where the data product will be installed,
    • Purpose and Access Period allows you to provide the context for using the data product.
    • Optionally, specify an end date for access; leaving it empty means access will not expire.
    • Review and acknowledge the terms and conditions for all requested data products.
    Choose Send.

An administrator must now approve or reject the access request.

A new request exists. Click on the link to review it. There is a delete icon if it is no longer needed.

You can delete your request if you do not need it any more.

Administrative users, including catalog administrators and data stewards, follow the same access workflow, ensuring a four eyes principle for consistent governance.

Approving a Request

A BDC administrator needs to grant access for the pending requests, starting in the BDC cockpit:

  1. In the SAP BDC Cockpit, choose Governance→Access Management.
  2. On the Requests tab, search for the data product access request awaiting approval.
  3. You have two options:

    1. A screenshot showing an pending request and how it is rejected, the comment explains the reason: Please specify a duration.

      To reject the access request, enter a comment and choose Reject.

      Now, the requester can only create a new request.

      A Screenshot showing how a new request is created with an end date.
    2. A Screenshot showing some pending access request and how it is approved.
      To approve the access request, enter a comment and choose Approve.
  4. Screen shot: The approved request no longer appears on the Requests list, but on the Agreements list (which is visible on the second tab of access management).

    Switch to the Agreements tab and review the approved agreements. By clicking on the link in the Data Product column and then Agreement, you can see the details.

Exceptional Auto-Approval

To simplify the workflow in exceptional cases, an SAP BDC administrator can turn on the auto-approval property for specific data products:

Setting Auto Approval in Data Product Management of the BDC cockpit
  1. In the SAP BDC Cockpit, choose Governance→Data Product Management.
  2. On the Data Products tab, search for the data product.

    Hint

    Selecting the following filters will ensure that only data products that are ready to be shared are displayed:
    • Lifecycle Status: Active

    • Release Status: Active

  3. Select the data product and choose the dropdown option Edit Auto-Approval > Enable for Selection or move the switch at the end of the line (in the Auto-Approval column)

From now on, a simplified workflow is used:

Simplified Approval Process

Installing Approved Data Products

Approved access requests become access agreements, allowing for installation:

  1. Screenshot - in the catalog and marketplace area, Data Product access sub area, on the Agreements tab, the data Product can be searched for by name. After expanding the details, terms and conditions and the history of activities are displayed.
    Data Product Access Agreements: Go to Catalog & Marketplace→Data Product Access, then select the Agreements tab. Expand the details of a specific access agreement to view its details. (If the data product is already installed, this step can be skipped.)
  2. Install Data Product: On the Agreements Details, choose Install Data Product.
  3. Screenshots of the steps to install a data product
    Choose a Delivery Method: Decide if you would like to replicate the data or choose a federation approach.
    • Federation: This approach means that remote tables are created in Datasphere that remotely connect to the data in the data products in the object store, without a physical copy of the data being made in Datasphere. SQL on Files is used to query the data products directly which are stored in a data lake file format in the object store.
    • Replication: Datasphere local tables are generated and also replication flows to load data into the local tables. This option improves performance but potentially increases storage costs and impacts data freshness based on the replication schedule.
    • Note: Data products from supported external systems can only be installed using the Federation option.
    Choose Install.

Comparing Federation and Replication

 FederationReplication
Generated objectsRemote Tables (to be included in views)Local tables, replication flows
Dataup to datesnapshot from previous data load
Data locationObject storeObject store and disc/in memory
Use cases

Save storage cost,

Real-time data requirement

Improve reporting performance,

Snapshot data requirement

The decision between replicate or federate is usually based on performance considerations. You might choose the replication option if data volumes are high and/or latency is to be avoided. Or you might choose the federation option if data volumes are low and/or latency is not an issue.

Note

If you want to change the data access delivery method (Federation or Replication) of a data product, you can reinstall it.
screenshot: final state, installed objects are listed in Data builder welcome page for the target space.

Once installed, you will be able to list the generated data product artifacts by opening the Data Builder in SAP Datasphere and choosing the space you specified when you created the access request.

Managing Data Product Lifecycle

SAP-managed data products typically receive automatic patches and minor updates. If an automatic update fails, the Update Data Product (API) action becomes available, allowing manual update to the latest version across all installed spaces.

During this process, discrepancies between installed data products and their catalog versions may occur. To identify and resolve them, choose the Check for Schema Changes action on the Data Product Access page.

If a data product is no longer needed, users can end their access agreement at any time from the Agreements tab. Data stewards or users with appropriate permissions can also end another user's agreement. Ending an agreement for a data product in a specific space removes access for that user in that space.

If the agreement's end date (as set by the grantor) is reached, the data engineer must create a new access request and wait for its approval.

Required Authorizations

To effectively request and integrate data products, data engineers must possess the following appropriate roles and privileges:

  • Global roles:

    • Data Warehouse General (read) to access SAP Datasphere.
    • Catalog Asset (read) to search the catalog
  • Scoped Roles for the target space:

    • Spaces (read): to access the specific space(s) where data products will be installed.
    • Space Files (create, read, update, delete) enables installation of data products within a space and ending access agreements.
    • Data Warehouse Data Builder (create, read, update, delete) permits maintaining the created Data Builder objects.
    • Data Warehouse Connection (read) allows access to remote objects.

The request approver needs an administrator role in SAP Business Data Cloud.

Develop Data Models using a Data Product

Once your data product is installed in a custom SAP Datasphere space, you can use it in your custom data models, using the Data Builder tool in SAP Datasphere.

An analytic model, consisting of a central fact view and several associated master data views, as modeled within the data builder tool in SAP Datasphere

A data product usually delivers multiple tables. The individual tables of a data product appear in Datasphere and can be used as data sources to create relational and dimensional models. You can develop the models using graphical tools or custom SQL code to generate the precise output you need.

You can create connections to non-SAP data sources using a wide variety of adapters and connectors and then combine the non-SAP data with the SAP-managed data products.

In your custom Datasphere space, you also define Data Access Controls (DAC) to determine who should have access to the data.

Let's enrich our standard SAP-managed data product by combining it with a custom table that was generated in SAP Databricks using a guided exercise.

Exercise placeholder

Click to Enrich a Data Product in a Datasphere space

Note

In our example, we only used one of the nine tables provided by the SAP-managed data product.

Let's highlight the key points covered in this lesson:

  • You've learned about use cases for installing data products in Datasphere spaces.

  • You've learned how to request access to a data product that you would like to install in a Datasphere space.

  • You've learned how to use the Datasphere modeling tools to use your data product in your custom data models.