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

Deploy the SAP SuccessFactors Extension Database to SAP HANA Cloud

In this phase of the development you will deploy the extension database to SAP HANA Cloud.

Overview

🎓 beginner 7 min. SAP Cloud Application Programming ModelBeginnerSAP BTP Cloud Foundry Environment

You will learn

  • โœ”How to setup your project for SAP HANA
  • โœ”How to deploy the database to SAP HANA Cloud
  • โœ”How to work with a “hybrid approach” (database in the cloud and application running locally)
Alessandro Biagi A Alessandro Biagi March 22, 2023
Created by June 29, 2022
Contributors

Prerequisites

Steps

Step 1 Setup project for SAP HANA
โ€”

So far, all data persistence of your application has been utilizing a default SQLite in-memory database, which means that, each time you restart the application, all data that has been added/updated is completely lost.

It might be OK for local development, but when it goes to a cloud landscape (either development, QA or production) the data must be persisted in a standard relational database such as SAP HANA Cloud (which is going to be the selected database for your application).

Therefore, it’s now time to prepare your project to deploy the data model to SAP HANA Cloud when it goes to BTP. For that, you must add the appropriate dependencies to your project using the cds add command.

In the Terminal type cds add hana and press Enter.

Figure 1 โ€“ Add SAP HANA dependencies to project
Figure 1 โ€“ Add SAP HANA dependencies to project

On the left-hand pane click on the package.json file to open it. Examine the contents and notice the modifications in the dependencies and cds.requires sections and the new cds.hana section. Change the db.kind from the cds.requires section to hana.

Figure 2 โ€“ Changes made to package.json
Figure 2 โ€“ Changes made to package.json

In the Terminal type npm install and press Enter to install the newly added dependency locally.

Figure 3 โ€“ Install new dependency
Figure 3 โ€“ Install new dependency

Step 2 Deploy the database to SAP HANA Cloud
+
Step 3 Run project locally with the database in the cloud
+
Step 4 Check your knowledge
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Setup project for SAP HANA 2. Deploy the database to SAP HANA Cloud 3. Run project locally with the database in the cloud 4. Check your knowledge

Learn more →