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

Create a Development Project in SAP Business Application Studio

Create a development project, establish a connection to a database, create a user-provided service and .hdbgrants file, and deploy your project.

Overview

🎓 beginner 15 min. SAP HANA CloudBeginnerSAP HANA CloudSAP HANA DatabaseSAP Business Application Studio

You will learn

  • โœ”How to create an HDI container in a Cloud Foundry runtime that is mapped to a SAP HANA Cloud instance
  • โœ”How to create a development space and project in SAP Business Application Studio
  • โœ”How to establish a connection to your database
  • โœ”How to create a user-provided service
  • โœ”How to create an .hdbgrants file
  • โœ”How to deploy a project

Prerequisites

Prerequisites

Steps

Intro

Alex Banner
Alex Banner

Reminder: This tutorial is part of a mission, in which you will help Alex, the CEO of Best Run Travel, to answer a concrete business question with SAP HANA Cloud, SAP HANA database.

Alex needs to know the top 5 partners of their agency and wants to find out the days with maximum booking of each partner.

In this tutorial, you will learn how to start preparations to create a calculation view by setting up a project in SAP Business Application Studio and establishing a connection to your database.


Step 1 Create an HDI Container
โ€”

Important: If you have been using an instance provisioned under Other Environments as shown in the prerequisite tutorials, you must map that instance to a Cloud Foundry organization and optionally a space.

  1. In the SAP BTP Cockpit Overview page, verify that the Cloud Foundry environment is enabled and that a space exists.

    Check the Cloud Foundry Environment
    Check the Cloud Foundry Environment

    Take note of the the Org Name under the Cloud Foundry Environment tab as this will be needed in the next step.

  2. If a Cloud Foundry space does not exist, create one.

    Check if a Cloud Foundry space exists
    Check if a Cloud Foundry space exists

    The list of users that can access a space can be found under Space Members once a space has been opened.

  3. Open SAP HANA Cloud Central. Click on the SAP HANA Cloud database instance used for this tutorial, select Manage Configurations from the actions menu. Select Instance Mapping. Select the option to Sign Into the Cloud Foundry Environment.

    Instance Mapping
    Instance Mapping

    Then select Add Mapping and select your Cloud Foundry organization.

    Instance mapping
    Instance mapping

    Once finished, press Review and Save.

  4. In the SAP BTP Cockpit, go to Instances and Subscriptions. Click Create.

    create service
    create service

    Select SAP HANA Schemas & HDI containers under Service. Choose the hdi-shared plan and provide an Instance Name, such as HDI_Tutorial. This is the HDI container you will use in your SAP Business Application Studio project.

    Create HDI container
    Create HDI container

    Press next. Here you will specify the instance parameters. To associate the HANA Cloud instance (that you have just mapped to Cloud Foundry) with the HDI container instance, specify the following parameters. Be sure to replace the contents in database_id with your SAP HANA database instance ID.

    JSON
    {
        "schema":"HDI_Tutorial",
        "database_id":"<SAP HANA Cloud database instance ID>"
    }

    You can copy your SAP HANA Cloud database instance ID from SAP HANA Cloud Central, through the three dots menu under the Actions column.

    Copy instance ID
    Copy instance ID

    JSON parameters for HDI containers
    JSON parameters for HDI containers

  5. Review and create your instance.

    When completed, the HDI container will appear as shown below. The calculation view created in the next tutorial will be deployed into this HDI container.

    HDI Container created
    HDI Container created

Step 2 Create your development space
+
Step 3 Create your development project
+
Step 4 Get to know the SAP HANA Project Panel
+
Step 5 Create a user-provided service
+
Step 6 Modify the hdbgrants file
+
Step 7 Deploy your project
+
Step 8 Knowledge Check
+

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. Create an HDI Container 2. Create your development space 3. Create your development project 4. Get to know the SAP HANA Project Panel 5. Create a user-provided service 6. Modify the hdbgrants file 7. Deploy your project 8. Knowledge Check

Learn more →