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, Access a classic schema from an HDI container

Create a user-provided service to access data from a plain or replicated schema from an HDI container

Overview

🎓 beginner 15 min. SAP HANABeginnerExpress EditionSAP Web Ide
Thomas Jung T Thomas Jung November 1, 2022
Created by May 2, 2017
Contributors

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Proficiency: Beginner

Steps

Time to Complete

15 Min


Step 1 Load data into a database schema in SystemDB
โ€”

This tutorial needs a replicated database or a schema that is not managed by an HDI container. An example of such schema is an ABAP or ERP database, which you may need to integrate to your XS Advanced development. You will simulate this by creating a schema and importing data into it.

Note: This tutorial will use the default System database in an SAP HANA, express edition instance, which is not the recommended approach for productive development. The space for the project we will be accessing from is also mapped to the system database. Use the same tenant database if your project is in a space mapped to a tenant database.


Begin by connecting to your SAP HANA SystemDB using the + sign in the Database Explorer and choose SAP HANA Database (Multitenant):

Add DB in Database Explorer
Add DB in Database Explorer

Set the connection parameters to your System database, or the database of your choice. Make sure the selected user has access to the database schema.

Access systemdb
Access systemdb

Note: Use an appropriate user with the right security restrictions in a productive environment.

You can now see the catalog in your database and open the SQL console:

Open SQL
Open SQL

Step 2 Create a Schema and table and Import data
+
Step 3 SPS03 - Create a User-Provided service using a wizard
+
Step 4 SPS02 or lower - Create a User-Provided service using the XS CLI
+
Step 5 Check or modify the MTA.yaml file
+
Step 6 Grant privileges to the schema
+
Step 7 Add a synonym
+
Step 8 Create a CDS file
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Load data into a database schema in SystemDB 2. Create a Schema and table and Import data 3. SPS03 - Create a User-Provided service using a wizard 4. SPS02 or lower - Create a User-Provided service using the XS CLI 5. Check or modify the MTA.yaml file 6. Grant privileges to the schema 7. Add a synonym 8. Create a CDS file

Learn more →