Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
senthurshree
Associate
Associate
4,138

Introduction

The SAP Datasphere BW/4HANA Model Transfer Series is intended to provide you with the guidance on how to utilize this feature to help you import existing analytic queries from you SAP BW/4HANA system into SAP Datasphere.

This article is the first in the blog post series on the BW/4HANA Model Transfer in SAP Datasphere.

Blog Post #1: Prerequisites and Setup Instructions for BW/4HANA Model Transfer

Blog Post #2: Importing Analytical Queries from SAP BW/4HANA into SAP Datasphere using SAP BW/4HANA Model Transfer

SAP BW/4HANA Hybrid Integration with Datasphere

Using SAP Datasphere with your SAP BW/4HANA opens up a multitude of opportunities for your analytics and reporting landscape. Customers are simply able to add SAP Datasphere to extend their business warehouse deployment with the innovation, openness, and self-service abilities in a hybrid scenario. Over time, customers can increasingly shift the workloads to SAP Datasphere.

Customers can use the Import Entities wizard to load metadata from your SAP BW∕4HANA and SAP BW bridge connection via semantically-rich objects. The wizard creates Business Builder and Data Builder entities (along with all the objects on which they depend) in SAP Datasphere.

senthurshree_0-1721165508581.png

 

Prerequisites

  1. BW/4HANA system requirements
  2. Setting up the BW/4HANA Model Transfer connection
    • Configurations in source BW/4HANA System
    • Cloud Connector Setup
    • Live Tunnel Connection
    • DPAgent Setup
  3. Releasing Analytic Queries for Use in SAP Datasphere

 

SAP BW/4HANA system Requirements

As described in SAP Note 3383586- Metadata transfer from BW4 to SAP Datasphere, the following versions and support packs are a perquisite,

  • SAP BW/4HANA 2021 Import Support Package 09 for SAP BW/4HANA 2021 (SAPK-30007INDW4CORE) into your BW system.
  • SAP BW/4HANA 2023 Import Support Package 02 for SAP BW/4HANA 2023 (SAPK-40001INDW4CORE) into your BW system.

SAP Note 3382997 - Prerequisite Note for Hierarchy Views in BW/4 Hybrid usage

In addition, BW/4HANA 2.0 systems can also be used for performing BW/4HANA Model Transfer but limitations with respect to functionalities such as Hierarchy, CKF, RKF exist.  Hence, it is recommended to use BW/4HANA 2021 or 2023 versions as mentioned above.

 

SAP BW/4HANA Model Transfer Connection

Configurations in source BW/4HANA System

SAP Note 3383634 - SAP Datasphere - SAP BW/4HANA Model Import via "Import Entities" Wizard

This note contains the steps and prerequisites to be checked on backend side to set up ESH search for the SAP BW/4 Model Import Scenario via "Import Entities" wizard. This also specifies the required authorizations required for the Communication User etc. Please make sure all the recommendations in this SAP Note are also implemented in addition to the below steps,

  1. In SAP BW∕4HANA, make sure that the following services are active in transaction code SICF:
  • BW InA - BW Information Access Services:
    • /sap/bw/ina/GetCatalog
    • /sap/bw/ina/GetResponse
    • /sap/bw/ina/GetServerInfo
    • /sap/bw/ina/ValueHelp
    • /sap/bw/ina/BatchProcessing
    • /sap/bw/ina/Logoff
  • /sap/bw4

 

senthurshree_1-1721165508583.png

 

2. In SAP BW∕4HANA, activate OData service ESH_SEARCH_SRV in Customizing (transaction SPRO) under SAP NetWeaver -> Gateway -> OData Channel -> Administration -> General Settings -> Activate and Maintain Services.

senthurshree_2-1721165508585.png

Accessing SAP BW/4HANA metadata and importing them into SAP Datasphere with an SAP BW/4HANA Model Transfer connection requires two protocols (or endpoints):

  • HTTP
  • SAP HANA Smart Data Integration based on the SAP HANA adapter

For the SAP BW/4HANA Model Transfer connection, http is used to securely connect to the SAP BW/4HANA system via SAP Cloud Connector.

An SAP HANA user is used to connect to the SAP HANA database of SAP BW/4HANA via Data Provisioning Agent.

SAP Datasphere will reuse the configured tunnel connection to the SAP BW/4HANA as part of the Model Transfer Integration between SAP Datasphere and SAP BW/4HANA.

senthurshree_3-1721165508587.png

 

Install and configure Cloud Connector.

To use an on-premise source for model import in SAP Datasphere, the following is required:

  • The Cloud Connector is installed in your on-premise network.
  • SAP Business Technology Platform (SAP BTP) account is available.

For the Cloud Connector configuration, you will need information about your SAP Datasphere subaccount.

The Cloud Connector serves as a link between SAP Datasphere and your on-premise systems. It is required for connections to on-premise systems that you want to use for model import. Cloud Connector is required for the live data connection of type Tunnel in order to create the model import connection. For instructions on Cloud Connector setup, refer to Configure Cloud Connector

 

  1. Configurations in the Cloud Connector:
  • In DSP System > Administration > Data Source Configuration >  SAP Cloud Platform (SAP CP) Account the SAP DSP subaccount information can be found.
  • Connect to the subaccount in the Cloud Connector.
  • Create ABAP connection “https” in the Cloud Connector.
  • Allow Resources

- InA and BW/4 Services:

   /sap/bw/ina                                                               – Path and all sub-paths

   /sap/bw4/v1/dwc/dbinfo

   /sap/bw4/v1/dwc/metadata/queryviews                          – Path and all sub-paths

   /sap/bw4/v1/dwc/metadata/treestructure                        – Path and all sub-paths

- Search Service:

   /sap/opu/odata/sap/ESH_SEARCH_SRV/DataSources           – Path and all sub-paths    *)

   /sap/opu/odata/sap/ESH_SEARCH_SRV/SearchQueries

   /sap/opu/odata/sap/ESH_SEARCH_SRV/SuggestionQueries     *)

- CSN_Exposure Service:

   /sap/opu/odata4/sap/csn_exposure_v4                              – Path and all sub-paths     *)

*) the services marked here are in addition to what is required in parallel SAP Note 3087696 for the BW/4 Model Import scenario in Business Builder

senthurshree_4-1721165508589.png

2. In the side navigation area of SAP Datasphere, click System  Administration -> Data Source Configuration -> Live Data Sources and switch on Allow live data to leave my network.

3. In the side navigation area of SAP Datasphere, click System  Administration  Data Source Configuration  On-premise data sources and add the location ID of your Cloud Connector instance.

senthurshree_5-1721165508592.png

 

Setting up Live Data Connection of Type Tunnel

 In the side navigation area of SAP Datasphere, open System  Configuration -> Data Integration -> Live Data Connections (Tunnel) and create a live data connection of type tunnel to SAP BW∕4HANA.

  • On the Connections tab, click + to add a connection.
  • Expand Connect to Live Data and select SAP BW. The New BW Live Connection dialog appears.
  • Enter a name and description for your connection. Note that the connection name cannot be changed later.
  • Set the Connection Type to Tunnel. By enabling tunneling, data from the connected source will always be transferred through the Cloud Connector.
  • Select the Location ID. Add your SAP BW/4HANA host name, HTTPS port, and client.
    Use the virtual host name and virtual port that were configured in the Cloud Connector.
  • Please make sure the communication user entered has the following authorizations mentioned in SAP Note 3383634 Solution Section Point #3. If the communication user still does not work refer to Point #5.

senthurshree_6-1721165508594.png

 

senthurshree_7-1721165508596.png

 

DPAgent Setup

Install and configure a Data Provisioning Agent and register the SAP HANA adapter with SAP Datasphere

Links

 

Creating the BW/4HANA Model Transfer Connection

After all the above setup steps have been completed, go to the Connections Tab and select the space relevant for the BW/4HANA Model Transfer Connection.

  • Select Create a Connection.
  • In the first step of the following dialog, select the connection type SAP BW/4HANA Model Transfer.

senthurshree_8-1721165508598.png

 

  • Configure the connection, specific connection configurations for the BW/4HANA Model Import Connection type are
    • Live Data Connection (Tunnel): Select the prior created tunnel connection.
    • HANA SQL Access: Displays the SAP HANA host and port retrieved from BW/4HANA via the selected tunnel connection. (In exceptional cases host and port can be changed.)
    • HANA Security: Enable SSL Encryption (prerequisite: DP Agent is correctly configured for SSL Support) or specify whether to validate the certificate of the remote SAP HANA server.
    • HANA Credentials: Enter the SAP HANA database user name and password. (The user needs read privileges for the ABAP schema in the SAP HANA database.)

senthurshree_9-1721165508599.png 

Releasing Analytic Queries for Use in SAP Datasphere

  • You have defined queries in SAP BW/4HANA and want to generate business entities in the SAP Datasphere based on these queries. You can thus use data from SAP BW/4HANA for modeling in SAP Datasphere.
  • To be able to do this, you first have to call transaction RSDWC_QUERY and release the analytic queries in for use in SAP Datasphere. An initial check is integrated in BW/4HANA which indicates supported and non-supported objects. After a successful release a query can be found in the list of released queries.

senthurshree_10-1721165508601.png

 

  • You can also expose the same query more than once, using different selections or parameter.  The system generates a query view from this and transfers it as a variant of the selected query. Assign a unique DSP-specific name for each one. In SAP Datasphere, you can select the corresponding query views using the combination of the name of the query name and the name of the variant.
  • Report RSDWC_QUERY_VIEW_REFRESH allows you to update the query view. To have the changes available in DSP you have to import again.
  • Note that conditions apply for queries that are to be released for use in SAP Datasphere. For more information, see SAP Note 2932647 defaults for example.

Known Limitations and Issues

Limitations

SAP Note 2932647 - Supported and unsupported features with SAP BW/4HANA/SAP BW Bridge Model Transfer in SAP Datasphere

Known Issues

3087696 - SAP Datasphere - SAP BW/4HANA Model Transfer - Search Error while Fetching Query List

3382997 - Prerequisite Note for Hierarchy Views in BW/4 Hybrid usage

 

Summary

Now that the query ZRSA_MT_CUST3 has been released, we will see in the next blog how this query is consumed in SAP Datasphere.

 


 

5 Comments
Scernik
Explorer
0 Kudos

Hi, with this configuration I don't need SAP Bridge anymore? Thanks 

BenedictV
Active Contributor
0 Kudos

@senthurshree - In what ways is the BW/4HANA Model Transfer connection different from BW Bridge space? 

FrankRiesner
Product and Topic Expert
Product and Topic Expert

@Scernik: This BW/4HANA Model Transfer bypasses BW Bridge. This component is not used or needed.

@BenedictV: The BW/4 Model Transfer is a dedicated connection type between Datasphere and BW/4HANA directly. BW Bridge is not in scope at all and the BW Bridge Space is not used during the transfer.

Scernik
Explorer
0 Kudos

Thanks for tour answer Frank,

one question more, with Model Transfer the objects reach the target ( DataSphere) like Bridge do it?

FrankRiesner
Product and Topic Expert
Product and Topic Expert

Hi Scernik - the target is the same. DSP artifacts are generated for BW/4HANA objects which remain on premise and manage the data.