SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

SAP HANA XS Advanced, Creating an HDI Module

Create your first HDI module for database content within your XSA application

Overview

🎓 beginner 15 min. SAP HANAExpress EditionBig DataBeginner
Thomas Jung T Thomas Jung November 1, 2022
Created by September 19, 2016
Contributors

Prerequisites

Prerequisites

Steps

Next Steps

Time to Complete

25 Min.


Intro

The goal of HDI is to manage database artifacts from design time objects but in a way that allows multiple copies/versions of the same core objects to be used on the same HANA database at the same time.

HDI introduces the concept of the container as an abstraction of the Schema. The container in turn dynamically generates the Schema, a container-specific Database User who owns all objects and a password for that database user. XS Advanced based services then only need access to the container and never need to know the actual Schema, technical user, or password. All of that information is stored within the container definition.

SAP HANA Deployment Infrastructure was introduced with SPS11 and is thoroughly explained here: SAP HANA SPS 11: New Developer Features; HDI

Step 1 Create HDB Module
โ€”

Begin by selecting your project and then choosing New -> SAP HANA Database Module

New Module
New Module

Name this new module db. Then press Next.

Create module
Create module

Clear the namespace field (namespaces are only really there for backwards compatibility with the old HANA repository), enter a name for the schema and check the Build Module after creation tick box. Press Finish.

Clear namespace
Clear namespace

The wizard has created the db folder as well as the hdi-container resource and the db module in the mta.yaml file for you.

MTA file
MTA file

You will be able to see some of the additional files that the module creation wizard created if you choose View->Show Hidden Files

Show hidden files
Show hidden files

Step 2 Create Table
+
Step 3 Build the Objects in the Database
+
Step 4 Check the Database Explorer
+
Step 5 Create and Upload Data
+
Step 6 Check data in the database explorer
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Create HDB Module 2. Create Table 3. Build the Objects in the Database 4. Check the Database Explorer 5. Create and Upload Data 6. Check data in the database explorer

Learn more →