Skip to Content
Technical Articles

Real-Time Replication between SAP HANA Cloud and SAP HANA on-premises | Hands-on Video Tutorials

With this blog series we provide an update with the latest information on getting started with SAP HANA Cloud on the SAP Cloud Platform.

  1. About SAP HANA Cloud
  2. SAP HANA Cloud Getting Started
  3. Connecting SAP Analytics Cloud using the HANA Analytics Adapter (HAA)
  4. Cloud Foundry Advanced (space travel, multiple instances, defining schema names)
  5. Data masking and data anonymization
  6. Predictive Analysis Library (PAL) and Automated Predictive Library (APL)
  7. Remote data sources and virtual tables
  8. SAP Web IDE for HANA Development, SAP Cloud Platform Cloud Foundry environment
  9. SAP HANA Cloud and Smart Data Integration
  10. OData with SAP HANA Cloud
  11. HDI with SAP HANA Cloud

For the latest features blog (Oct 2020), see

For more information about the free trial, see

Questions? Post as comment.

Useful? Give a like and share on social media. Thanks!

/wp-content/uploads/2016/02/sapnwabline_885687.png

Hands-On Video Tutorials

Smart Data Integration Master, Tahir Hussain Babar (a.k.a. Bob), just added a new series to the SAP HANA Cloud playlist on the SAP HANA Academy YouTube channel with nine new videos showing how we can configure real-time data replication between an SAP HANA platform system (on-premises) and SAP HANA Cloud.

In this blog, you will find the videos embedded with some additional information and resources. You can watch the nine video tutorials in about one hour and a bit. What you get back is:

  • How to setup the SAP Cloud Platform environment and create SAP HANA Cloud instance
  • How to configure the SAP Web IDE development environment to work with SAP HANA Cloud
  • How to install and configure an SAP HANA smart data integration (SDI) Data Provisioning Agent (DPA) and register the SAP HANA Adapter
  • How to create a remote source and virtual table (runtime)
  • How to create an HDI container and access external objects
  • How to create a virtual table (design time)
  • How to create and execute a Flowgraph
  • How to create a replication task for real-time replication between an SAP HANA platform system on-premises as source and SAP HANA cloud as target.

To bookmark the playlist on YouTube, go to > SAP HANA Cloud.

/wp-content/uploads/2016/02/sapnwabline_885687.png

About SAP HANA Smart Data Integration 

For the documentation see the SAP HANA Cloud Getting Started Guide and the SAP HANA Administration Guide about how to configure remote data sources and virtual objects. See the SAP HANA Smart Data Integration guide(s) for information about how to use SAP Web IDE to develop the artifacts for real-time replication.

Highly recommended as well are the blog posts from Takao Haruki on this topic:

/wp-content/uploads/2016/02/sapnwabline_885687.png

1. Series Overview

The first video introduces the series with two short demos showing SAP HANA Smart Data Access (SDA) and virtual tables and SAP HANA Smart Data Integration (SDI) with flowgraphs for batch mode or real-time replication. An architecture discussion explains the systems, technologies, and activities.

For this demo, AWS is used as cloud provider and the following resources have been created:

  • SAP HANA Cloud (SAP Cloud Platform, Cloud Foundry environment)
  • SAP HANA, express edition: simulating on-premises system
  • Windows system with Data Provisioning Agent (DPA)

In the subsequent videos, Bob explains how to set this up.

[0:00] – Introduction, about SAP HANA Cloud, documentation

[3:00] – Demo showing Smart Data Access virtual table

[4:00] – Demo showing Smart Data Integration with flowgraphs in SAP Web IDE for an ETL job, for execution in batch mode or for real-time replication.

[5:20] – Architecture explanation for DPA, Remote Source, HDI Containers, user-provided service, virtual tables, flowgraphs, and replication tasks

/wp-content/uploads/2016/02/sapnwabline_885687.png

2. Create SAP HANA Cloud Instance

In the second video tutorial, we learn how we can create an SAP HANA Cloud instance.

The API endpoints for the Cloud Foundry Org and for the SAP HANA Cloud instance service are needed for later reference.

For the documentation, see

[0:00] – Connect to the SAP Cloud Platform

[1:00] – Create SAP Cloud Platform subaccount (AWS)

[2:00] – Enable Cloud Foundry and create space. API endpoint for Cloud Foundry org

[3:30] – Configure Entitlements: add service plans: hana, hdi-shared, MEMORY 4GB

[6:00] – Create instance

[7:30] – API endpoint for SAP HANA Cloud service

[8:00] – Connect to SAP HANA cockpit

/wp-content/uploads/2016/02/sapnwabline_885687.png

3. Security and SAP Web IDE

In this video a development user account is created in the SAP HANA Cloud database. We also enable SAP Web IDE as SAP Cloud Platform service and configure the tool for our project.

For the documentation, see

[00:00] – Introduction

[01:00] – Create new database user using the SAP HANA database explorer SQL console using a script from the SAP HANA Academy GitHub repository. System privileges CREATE REMOTE SOURCE, ADAPTER ADMIN, and AGENT ADMIN are granted.

[02:00] – Connect as devuser.

[03:20] – Create new subaccount using SAP Cloud Platform Cockpit (HANA Tools) in Neo environment.

[04:10] – Enable service SAP Web IDE Full-Stack

[04:40] – Configure Service: add user as DIDeveloper

[05:10] – Configure Security > Trust Management: Local Service Provider: Principle propagation = Enabled

[06:00] – Launch SAP Web IDE

[06:30] – Workspace Preferences > Extensions: SAP EIM Smart Data Integration Editors and SAP HANA Database Development Tools

[07:00] – Workspace Preferences > Cloud Foundry: API Endpoint of Cloud Foundry subaccount hosting the SAP HANA Cloud environment (video #2 [02:00]).

[08:45] – Launch database explorer embedded in SAP Web IDE.

[09:30] – Change schema to devuser

/wp-content/uploads/2016/02/sapnwabline_885687.png

4. Data Provisioning Agent Installation and Configuration

In this video, Bob shows how to install the SDI Data Provisioning Agent (DPA) on a Windows computer and register the agent and the HanaAdapter with the SAP HANA Cloud database.

For the documentation, see

[00:00] – Introduction

[01:00] – Download SDI Data Provisioning Agent for your platform from SAP Development Tools [tools.hana.ondemand.com/#cloudintegration]

[01:30] – Install DPA and specify: Agent unique name, service account, default ports 5050 and 5051

[04:00] – Launch DPA. Specify HANA hostname [SAP HANA Cloud endpoint], port [443], agent admin user [DEVUSER]

[05:00] – Connect and register agent with agent name [sha_agent] and hostname [IP Public address]

[06:20] – Verify registration in the catalog browser of the database explorer (SAP Web IDE)

[06:40] – Register HanaAdapter

SELECT * FROM ADAPTERS;
SELECT * FROM AGENTS;

/wp-content/uploads/2016/02/sapnwabline_885687.png

5. Creating Remote Sources

In this video tutorial, we learn how to create a remote source and virtual in the SAP HANA Cloud database connecting to SAP HANA, express edition.

For the documentation, see

[00:00] – Introduction and recap

[01:00] – Showing SALES source table in SAP HANA, express edition

[02:20] – Create remote source in SAP HANA Cloud providing name, adapter, host, port number, database name, schema, and credentials. Highlighting CDC (Change Data Capture) settings.

[05:00] – Connect to remote source and create virtual object for the remote SALES table.

[06:00] – Validate access to remote object and open data.

[07:00] – Validate update change from source to target.

[08:00] – Validate update change from target to source.

/wp-content/uploads/2016/02/sapnwabline_885687.png

6. HDI Containers

SAP HANA HDI uses containers to store design-time artifacts and the corresponding deployed run-time (catalog) objects. The design-time container is used to store the design-time representations of the catalog objects that you want to create during the deployment process. The database run-time container (RTC) stores the deployed objects built according to the specification stored in the corresponding design-time artifacts.

In this video tutorial, we learn how to create a HDI Containers in the SAP Web IDE.

For the documentation, see

[00:00] – Introduction and recap

[02:15] – Build new project in SAP Web IDE: Cloud Foundry > SAP HANA Database Application for SAP HANA Cloud

[03:30] – Build project

[04:00] – Build database artifact

[04:30] – Show hdi-shared service instance and application

[05:15] – Add database to database explorer for HDI container. Remote sources are not available for HDI containers so we will need to create a user-provided service.

/wp-content/uploads/2016/02/sapnwabline_885687.png

7. HDI to Classic Schema Access

In this video tutorial, we learn how to access objects stored in the SAP HANA Classic schema from a HDI Container. User-Provided Services, mta.yaml files and “grants” files are discussed.

For the documentation, see

[00:00] – Introduction and recap

[01:00] – Create user-provided service with the credentials to the schema in SAP HANA Cloud where the remote table resides.

[02:00] – Update the configuration file for the multitarget application (MTA.yaml) created in the previous video adding the user-provided service to the modules and as resource

[03:45] – Rebuild database module

[04:00] – Create hdbgrants artifact with code snippet providing object owner rights and application user rights and build.

/wp-content/uploads/2016/02/sapnwabline_885687.png

8. Virtual Tables and Flowgraphs

In video 5 we created a virtual table as catalog object (runtime) to validate our configuration. In this video we perform the same task but this time as development artifact.

For the documentation, see

[00:00] – Introduction and recap

[02:00] – Create new virtual table in the project providing virtual table name, remote source, database, schema, and object.

[04:00] – Remote table will be visible in the HDI container as table

[05:30] – Create a Flowgraph in the project, add data source and select virtual table.

[07:00] – Add data target and build the artifact.

[08:00] – Execute the Flowgraph.

[08:30] – Target table and task (procedure) have been created.

/wp-content/uploads/2016/02/sapnwabline_885687.png

9. Replication Tasks

In the last video tutorial, Bob introduces creating Real-time Replication Tasks in a HDI Container when using Smart Data Integration (SDI) in the SAP HANA Cloud.

The SAP HANA Administration Guide documents the equivalent SQL statements and system views:

[00:00] – Introduction and recap

[01:30] – Create a new replication task in the project

[02:00] – Select remote source and object (dialog similar to video #5), and specify replication behavior.

[04:50] – Build the object

[06:00] – SOURCE_SALES and TARGET_SALES virtual tables are created in the target system (SAP HANA Cloud).

[06:45] – Remote subscription, replication procedure, and task are created in the target

[07:30] – Call procedure.

[08:00] – CDC (Change data capture) tables and triggers are created in the source system (SAP HANA, express edition).

[08:45] – Confirm replication works with UPDATE and INSERT statement.

/wp-content/uploads/2016/02/sapnwabline_885687.png

Share and Connect

Enjoyed the blog? Post a comment, share on social media, and/or give a like. Thanks!

If you would like to receive updates, connect with me on

Best,

Denys van Kempen

/wp-content/uploads/2016/02/sapnwabline_885687.png

2 Comments
You must be Logged on to comment or reply to a post.