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

Use SAP HANA as the Database for a CAP Java Application

Use SAP HANA in SAP Business Technology Platform from your local CAP Java application.

Overview

🎓 beginner 20 min. SAP Cloud Application Programming ModelBeginnerSAP Business Technology PlatformJavaSAP Business Application Studio

You will learn

  • How to use the CDS CLI to do deployments to SAP HANA
  • How to use SAP HANA for your local running application
René Jeglinsky R René Jeglinsky December 10, 2024
Created by December 10, 2024
Contributors

Prerequisites

Steps

Intro

In the previous tutorial, you have deployed bookstore application to SAP BTP. In this tutorial, you will connect from your locally running application to your SAP HANA Cloud on SAP BTP. This hybrid setups let’s you develop your service locally while being connected to your SAP HANA Cloud database and reduces turnaround times.


Step 1 Log into SAP BTP Cloud Foundry environment

  1. In SAP Business Application Studio, open a terminal by choosing Terminal New Terminal from the main menu.

  2. Authenticate using your login credentials using the following command in the terminal:

    Shell/Bash
    cf login

Should you need to specify the <CF_API_ENDPOINT> again, use the actual value you obtained in the previous tutorial.

Step 2 Configure application to use SAP HANA locally
+
Step 3 Deploy database artifacts to SAP HANA
+
Step 4 Run application using SAP HANA locally
+

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. Log into SAP BTP Cloud Foundry environment 2. Configure application to use SAP HANA locally 3. Deploy database artifacts to SAP HANA 4. Run application using SAP HANA locally

Learn more →