Friday, 21 October 2022

Analyze SAP S/4HANA On-Premises Data using SAP Analytics Cloud Powered by SAP Data Warehouse Cloud

This simple blog post helps you get an understanding of how data from an SAP S/4HANA on-premises system can be Analysed using SAP Analytics Cloud which is connected using Data Warehouse Cloud in SAP Business Technology Platform (BTP).

This blog post covers –

◉ Connectivity of SAP S/4HANA On-premise system to SAP Data Warehouse Cloud.
◉ Creation of a View using SAP Data Warehouse Cloud Data Builder.
◉ Consume the View in SAP Analytics Cloud and create a story.

SAP Data Warehouse Cloud


SAP Data Warehouse Cloud is an end-to-end data management and decision-making cloud solution designed for business and enterprise-grade experiences. It is an integrated, fully managed service, and persona-driven Data Warehouse as a Service solution, suitable for SAP and non-SAP customers offering reduced deployment complexity, flexible pricing with integration to SAP Intelligent Enterprise Suite solutions, SAP Analytics Cloud, SAP BTP services, Partner solutions and open-source technologies.

SAP Analytics Cloud


SAP Analytics Cloud is an all-in-one cloud product offered as software as a service (SaaS) for business intelligence (BI), planning, and predictive analytics. Built natively on SAP BTP, it provides a unified and secure public cloud experience to maximize data-driven decision making.

The scenario we are covering in the blog is given below:

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Let’s get started…

Go to Software Downloads on the SAP ONE Support Portal, search for Smart Data Integration. Download SAP HANA Smart Data Integration Package.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Extract the downloaded file, run the hdbsetup.exe file.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Go to the list of services running in your system, you should see that the below service. Ensure that the service is started.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

After Installing the Data Provisioning (DP) Agent, Issue the below command in the command prompt

agentcli.bat –configAgent

This will start the initialization of DPAgent Configuration Tool.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

After initialization, the DPAgent Configuration Tool will present the below options.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Select option 7 to start SAP HANA Connection.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Multiple options will be displayed for SAP HANA Connection.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Select option 2 to Connect to SAP Data Warehouse Cloud via JDBC.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

SAP Data Warehouse Cloud Connectivity using JDBC will require details of the HANA Server, Messaging user etc. Obtain the details form SAP Data Warehouse cloud.

Go to your SAP Data Warehouse Cloud tenant, select main menu, choose configuration then click on the + tile in the Data Integration tab.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

The following window will pop up.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Specify a name to the agent, and then click on create button. I have specified the name as dpagent.

This will show the settings needed by the agent configuration tool running in the command line. Keep the window open until all the details are provided in the command prompt.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Provide the selected details in the command line for SAP HANA Connection to SAP Data Warehouse Cloud using JDBC

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

We need to stop and start the agent in order to bring the new settings to effect.

Go back to the previous menu option and select option 2 to stop and start the agent.

From the menu select option 2 again to stop the agent.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Then select option 1 to start the agent

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Go back to the main menu and select option 1 to check the status of the agent just registered.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Head to SAP Data Warehouse cloud again and wait for the agent to get connected. This will take few minutes. Additionally we need to ensure that the IP of the agent server is white listed in SAP Data Warehouse Cloud.

Use the IP Allowlist option to whitelist the agent server’s IP address.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

After a few minutes the DP agent will get connected as shown below.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

To connect to S/4HANA On-premise system we need to register the ABAP Adapter.

Edit the DP agent to enable the adapters.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Click save after enabling the required Adapters.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

We are now ready to connect the S/4HANA on-premise system to SAP Data Warehouse Cloud.

Go to your SAP Data Warehouse Cloud tenant, select main menu, choose Connections then select a Space in SAP Data Warehouse Cloud Spaces.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Click on Create.

Apply the filters for Categories and Sources as On-Premise and SAP respectively as shown below:

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Then select the connection type for SAP S/4HANA On-Premise

Provide the connection details.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

After providing the credentials, select the Data Provisioning Agent.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In the next step, provide name to the connection by specifying a Business and Technical Name.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

I have given VR_QK0 as the name.

Validate the Connection afterwards by selecting the connection and clicking on the validate button.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

This will display a message indicating that your connection is valid. We are now ready to create the view using Data Builder of SAP Data Warehouse Cloud.

Go to SAP Data Warehouse Cloud –> Select Main Menu –> Select more –> Click on Data Builder

This will display the Welcome Screen of Data Builder of SAP Data Warehouse Cloud.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Select New Graphical View

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Go to Sources tab, to see the Connection that we have created in the previous steps.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Expand ABAP tables by Application name and then select SFLIGHT from the list.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Drag and drop the SFLIGHT table into the right-side panel.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Similarly search for SCARR table then drag and drop it on the Flight table that is there on the canvas already.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

While dropping the Airline table on Flight table, from the available UNION, JOIN and Replace options select JOIN.

This will result in a JOIN as shown below.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Select the Inner Join node and click on Details button on top right corner of the canvas.

This will display the Join Properties.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Adjust the Join Properties according to your requirements.

After adjusting the Join Properties, select the View1 node and then click on Details button.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

This will display the view properties.

Specify a Business Name, Technical Name and choose the Semantic Usage as Analytical Dataset

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Set Expose for Consumption true so that the object is available for consumption in SAP Analytics Cloud.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

It is important to have at least one measure in an analytical model hance drag and drop Airfare and Total number of Current bookings fields from Attributes section to Measures section

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Similarly maintain/add other measures based on your requirement and set other properties like Input Parameters, Persistency etc.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Finally click on Save option to save the view.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

It is now time to deploy the view.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

The View Deployment might take few minutes, wait for the confirmation message to appear.

We have now completed the View Creation part in Data Builder. Next step is to consume this view as a model in SAP Analytics Cloud and create a Story.

Click on the Product Switch icon on the top right corner and then on the Analytics tile to get access to the corresponding SAP Analytics Cloud tenant.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In SAP Analytics Cloud, click on the Main Menu –> Select Connections –> Then click on the + icon to create live connection between SAP Data Warehouse Cloud and SAP Analytics Cloud.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In the next window select SAP Data Warehouse Cloud under Connect to Live Data option

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In the next window, specify a name, description and Connection Details then select OK.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

This creates a Live data connection between SAP Data Warehouse Cloud and SAP Analytics Cloud.

Next step is to create a story. Select Main Menu and then select Stories after that click on Canvas

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In the upcoming window select Classic Design Experience and then click on Create

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

This loads an empty canvas Story. To bind the view created earlier click on the Add data button in the story page.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In the upcoming window, select the option from an existing model / data set option.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In the next window, select the option SAP Data Warehouse Cloud Analytical Dataset, then choose the connection, Space and the Dataset which is the view we have created in SAP Data Warehouse Cloud. After the selection, click on OK.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Now the story is bound to a Dataset.

Click on the Story tab to design your story.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Click on the chart widget to add a chart in the story.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

Similarly add the other story objects and complete your story based on your requirements.

SAP Analytics Cloud, SAP Data Warehouse Cloud, SAP HANA, SAP HANA Career, SAP HANA Skills, SAP HANA Prep, SAP HANA Tutorial and Materials, SAP HANA Guides, SAP HANA Learning

In conclusion, through this very simple demo, we have understood how the data from an SAP S/4HANA on-premise system can be analysed using SAP Analytics cloud by leveraging the SAP Data Warehouse Cloud on SAP Business technology platform.

No comments:

Post a Comment