Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (2024)

(Japanese version)

In this blog, I will transfer data from On-Premise SAP HANA to SAP HANA Cloud using SDI (Smart Data Integration).

SAP HANA Cloud includes SDI which is an ETL tool, this means that you can easily integrate various kinds of source systems into SAP HANA Cloud without installing ETL application. Moreover, you can develop ETL jobs as same as developing tables and views, this makes it easy and quick to develop ETL jobs.

I will transfer 3 tables on On-Premise SAP HANA to SAP HANA Cloud.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (1)


Let's get started. The steps are as follows.


  1. Configure Data Provisioning Agent (DP Agent)

  2. Create Virtual Table

  3. Transfer data



1.1 Install DP Agent

Install DP Agent on On-Premise side so that SAP HANA Cloud can connect to On-Premise SAP HANA. In this blog, I will install DP Agent on a Windows server which is in the same network as On-Premise SAP HANA. For more information on installation procedure, please see SAP Help and "Download DP agent from SAP Service Marketplace as a ZIP file" part of this blog.

1.2 Configure DP Agent

Configure DP Agent as following to SAP Help.

1.2.1 Create a DB user for Agent Admin

From SAP HANA co*ckpit of SAP HANA Cloud, create a HANA DB user who has following authorizations.

Application Privilege : sap.hana.im.dp.admin::Administrator
System Privilege : AGENT_ADMIN, ADAPTER_ADMIN

* The Application Privilege does not exist and no need to set it although it is written in the help

1.2.2 Run DP Agent Configuration tool

Run command prompt as administrator and configure environment variables as followings, then execute DP Agent Configuration tool.

setx DPA_INSTANCE "C:\usr\sap\dataprovagent"
cd %DPA_INSTANCE%
cd bin
agentcli.bat --configAgent

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (2)

1.2.3 Start Agent

Choose option 1 (Start of Stop Agent) and then choose option 1 (Start Agent). DP Agent will start by this.

1.2.4 Configure SAP HANA Connection

Configure to connect from DP Agent to SAP HANA Cloud. First, choose option 6 (SAP HANA Connection) and option 3 (Connect to SAP HANA via JDBC). Next, input as followings.

Use encrypted JDBC connection :true
Use WebSocket to connect :false
Host Name (for Direct SQL) :SAP HANA Cloud InstanceのEndpoint(*)
Port Number (for Direct SQL) :SAP HANA Cloud InstanceのEndpoint(*)
Agent Admin HANA User & Password : Information about the user created in Step1.2.1
Use HTTP Proxy Server :false (for this blog, select based on your environment)
HANA User for Agent Messaging : Any user name & password, true (create new user)

Configuration of connection between DP Agent and SAP HANA Cloud has been completed.

* You can confirm the hostname and port number of SAP HANA Cloud in SAP Cloud Platform co*ckpit. Please see Endpoint of SAP HANA Instances.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (3)

1.2.5 Register DP Agent

Go back to the top of the Configuration tool and choose option 7 (Agent Registration) and option 1 (Register Agent) to register DP Agent.

Agent Name: any name
Agent Host: IP address of the server where DP Agent is installed

1.2.6 Register HANA Adapter

Register "HANAAdapter" which allows SDI to connect to SAP HANA. Go back to the top of the tool and choose option 8 (Adapter Registration). Then choose option 2 (Register Adapter) and input as follows.

Adapter Name: HanaAdapter

1.2.7 Confirm the configuration

Go to Database Explorer and confirm Agent and Adapter are successfully registered.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (4)


Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (5)


Configuration of DP Agent to connect between SAP HANA Cloud and SAP HANA On-Premise has been completed. Next, I will create virtual tables on SAP HANA Cloud which access to On-Premise SAP HANA tables.

2.1 Create a Remote Source

At Database Explorer, right-click on "Remote Sources" and choose "Add Remote Source".

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (6)

Input Remote Source Name and choose "HanaAdapter" as Adapter Name. Input other necessary information like hostname and port number of On-Premise SAP HANA, user name and password. Save it when completed.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (7)

Open the remote source by clicking the name, schema is displayed. And when you open the schema, you see the tables in the schema. The source schema is "SALES_1", so you can see the tables (SALES::HDI_MD_PRODUCTS, SALES::HDI_SO_HEADER, SALES::HDI_SO_ITEM).

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (8)


2.2 Grant privileges to create virtual table

Remote source has been created in the previous step. Next step is creating virtual tables. Before this I need to grant privileges to create virtual table to administrator of the HDI container.

In this blog I will directly grant privileges to the user using SAP HANA co*ckpit.

First, logon to SAP HANA co*ckpit by the user who created the remote source" and go to "User & Role Management" > "Privilege Assignment". Then, grant following object privileges to a user "<HDI container>#OO".


  • CREATE VIRTUAL TABLE

  • CREATE VIRTUAL FUNCTION

  • CREATE REMOTE SUBSCRIPTION

  • PROCESS REMOTE SUBSCRIPTION EXCEPTION

  • ALTER

  • DROP


Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (9)


2.3 Create virtual table

At this point, I have created remote source and granted privileged to create virtual table. Next, create virtual tables.

Open SAP Web IDE for full-stack and right-click to create a new virtual table.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (10)

Input virtual table name, remote source name, schema name and table name. For Database Name, input “<NULL>”. Save and build it, then virtual table is created. Create all necessary virtual tables.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (11)

Go to Database Explorer to check the virtual table. Click “Table” and you can confirm that virtual tables are successfully created (VT_ tables here).

Right-click on the table and select "Open Data" to check the data can be successfully retrieved from On-Premise SAP HANA.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (12)

Create other virtual tables and also target tables.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (13)


Virtual tables which access On-Premise SAP HANA have been created on SAP HANA Cloud. I will create SDI Flowgraph to transfer data to SAP HANA Cloud using the virtual tables.

3.1 Create Flowgraph and execute it


3.1.1 Create a new Flowgraph

Right-click on "src" folder and choose "Flowgraph" to create a new Flowgraph.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (14)

Empty Flowgraph is created after inputting name of it.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (15)

Click "+" icon and you will see various kinds of operators. You can add operators to the Flowgraph from here.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (16)

3.1.2 Configure Data Source

Insert "Data Source" to add source table.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (17)

Click the gear icon to configure the data source.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (18)

Choose "HANA Object" at "Type", then select source table. Tables will be listed when you input a part of the table name. Choose the source table (virtual table) and click "Finish".

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (19)

The metadata of the table is loaded. Click "Apply" to complete the source table configuration.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (20)

3.1.3 Configure target table

Click "+" icon and insert "Data Target" to add target table.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (21)

Click gear icon to configure data target.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (22)

Choose "HANA Object" at "Type", then select target table. Tables will be listed when you input a part of the table name. Choose the target table and click "Finish".

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (23)

At "Setting" tab, configure write type. In this blog, I will check "Truncate Table" and select "Insert" for "Writer Type". (This means target table is truncated before data loading.)

Click "Apply" to configure mapping.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (24)

3.1.4 Configurate Mapping (Projection)

Click "+" icon and insert "Projection" operator to map between source table and target table. Then connect Data Source and Projection and also connect Projection and Data Target.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (25)

Click gear icon of the projection, the mapping is automatically configured by the column name. Change the mapping and add filters if needed.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (26)

3.1.5 Save, Build and execute the Flowgraph

Click "Apply" to go back and then save and build the Flowgraph. Finally, click "Execute" to run the Flowgraph.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (27)

Confirm the job is successfully executed.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (28)

3.1.6 Check the result

Go to Database Explorer and open the data of target table. You can confirm the data is successfully transferred from On-Premise SAP HANA.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (29)


3.2 Create and execute (a little complicated) Flowgraph


3.2.1 Configure Join

Next, I will create a little complicated Flowgraph which joins two tables. Add two Data Sources for two tables (SO_HEADER and SO_ITEM), then connect them and "JOIN" operator.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (30)

Click gear icon of the JOIN operator and configure join condition at "Criteria" tab. Set SO_HEADER as left table and SO_ITEM as right table, then choose "Left outer join" as Join Type.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (31)

Write join condition at Join Condition Editor.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (32)

3.2.2 Configure mapping(projection) and data target

Go back by "Apply", then add "Projection" and "Data Target" operators. In Projection operator you can set filters and configure mappings.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (33)

In Data Target operator, choose "Template Table" and input name of the template table at "Object Name". This means that the Flowgraph creates table when the job is built.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (34)


Configure data update method at "Settings" tab.


Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (35)

3.2.3 Save, Build and Execute the Flowgraph

Save and build the Flowgraph, then click "Execute" to run the job.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (36)

3.2.4 Check the result

Go to Database Explorer and open the data of target table. You can confirm the data is successfully transferred from On-Premise SAP HANA.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (37)

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI has been completed.

As mentioned at the beginning, you can use ETL in SAP HANA Cloud without installing ETL application separately, as long as you setup DP Agent. ETL jobs can be created with the same development environment and development flow as creating table or view, which can significantly improve development efficiency. There is a complete set of operators required for ETL, and it is possible to integrate data flexibly from various systems.

Transferring data from On-Premise SAP HANA to SAP HANA Cloud using SDI (2024)

References

Top Articles
4 Ingredient Peanut Butter Fudge Recipe - Butter with a Side of Bread
Scottish Winter Soup Recipes - The Wee Larder by Angie Milne
Umbc Baseball Camp
Eric Rohan Justin Obituary
Geodis Logistic Joliet/Topco
Ogeechee Tech Blackboard
Lost Pizza Nutrition
Cape Cod | P Town beach
U.S. Nuclear Weapons Complex: Y-12 and Oak Ridge National Laboratory…
What’s the Difference Between Cash Flow and Profit?
Gas Station Drive Thru Car Wash Near Me
2024 Non-Homestead Millage - Clarkston Community Schools
Help with Choosing Parts
Clear Fork Progress Book
Wicked Local Plymouth Police Log 2022
Dumb Money, la recensione: Paul Dano e quel film biografico sul caso GameStop
How to Create Your Very Own Crossword Puzzle
623-250-6295
Huntersville Town Billboards
Selfservice Bright Lending
Diakimeko Leaks
Dallas Mavericks 110-120 Golden State Warriors: Thompson leads Warriors to Finals, summary score, stats, highlights | Game 5 Western Conference Finals
Terry Bradshaw | Biography, Stats, & Facts
Dewalt vs Milwaukee: Comparing Top Power Tool Brands - EXTOL
[PDF] PDF - Education Update - Free Download PDF
Greyson Alexander Thorn
Disputes over ESPN, Disney and DirecTV go to the heart of TV's existential problems
Dal Tadka Recipe - Punjabi Dhaba Style
Albertville Memorial Funeral Home Obituaries
Hannah Jewell
Lucky Larry's Latina's
Cruise Ships Archives
Etowah County Sheriff Dept
Oxford Alabama Craigslist
How To Get Soul Reaper Knife In Critical Legends
Claim loopt uit op pr-drama voor Hohenzollern
Leena Snoubar Net Worth
Directions To The Closest Auto Parts Store
Janaki Kalaganaledu Serial Today Episode Written Update
Tricia Vacanti Obituary
Is Ameriprise A Pyramid Scheme
Cabarrus County School Calendar 2024
Go Nutrients Intestinal Edge Reviews
Deezy Jamaican Food
Swsnj Warehousing Inc
Lawrence E. Moon Funeral Home | Flint, Michigan
Amateur Lesbian Spanking
Dicks Mear Me
Sitka Alaska Craigslist
M Life Insider
How to Get a Check Stub From Money Network
Jesus Calling Oct 6
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 6389

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.