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

Prepare Your SAP HANA Database Project for Collaboration

Create HDBROLEs and synchronize your SAP HANA Database Project with Git to prepare your project for collaboration.

Overview

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

You will learn

  • โœ”How to create an HDBROLE with grant options
  • โœ”How to create an HDBROLE without grant options
  • โœ”How to create a new repository and token in GitHub
  • โœ”How to connect your development project to GitHub
  • โœ”How to add a remote origin via HTTPS connection
Unknown U Unknown October 16, 2023
Created by October 19, 2021
Contributors

Prerequisites

Prerequisites

  • You need to complete the previous tutorial about changing data structures using HDBTABLE and HDBMIGRATIONTABLE Objects.
  • Make sure your instance of SAP HANA Cloud, SAP HANA database is running.

Steps

Intro

Are you wondering what the best way is to manage changing data structures? Do you want to know how to collaborate more efficiently when working in development projects?

To answer the first question, learn what benefits different table types in SAP HANA Cloud, SAP HANA database can offer you based on your needs. The following 3 tutorials in this tutorial group will help you navigate through your challenges with the managing data structures:

  1. Get started to collaborate in SAP Business Application Studio

  2. Import data into a table in SAP HANA Database Project

  3. Change data structures using HDBTABLE and HDBMIGRATIONTABLE objects

    To answer the second question, create template projects that help you set up service connections, handle synonyms and prepare authorization management. You can create these templates once in the beginning and give your project team members a head-start. Using the template, they can build on your work and can quickly start working productively. The following 4 tutorials in this tutorial group will help you learn how to collaborate efficiently:

  4. You are here โ˜› Prepare your SAP HANA Database Project for collaboration

  5. Generate users and roles for assigning privileges

  6. Enhance your project with services, synonyms and grants

  7. Collaborate on an SAP HANA Database Project template

This tutorial will show you how to prepare your SAP HANA Database Project for collaboration.

Step 1 Create a role with grant option
โ€”

Now that you know the difference between hdbtable and hdbmigration table objects when changing data structures, we need to prepare some rights for the next tutorials. In this tutorial, you will create roles with specific permissions to give other users access to these tables. This is necessary, e.g., for creating calculation views, which you will do in the last tutorial.

First, we want to create a role that contains SELECT privileges with grant option, which means when someone is assigned this role, they can grant this privilege to others themselves.

  1. From the explorer panel on the left side of SAP Business Application Studio, expand the folders under your project WS3_1.

  2. Select the src folder and press F1 key or click on View โ€“ Find Command at the top of the screen to open a search prompt. Enter HANA in the field and from the dropdown list of functionalities, choose SAP HANA: Create SAP HANA Database Artifact.

  3. In the window for creating a new SAP HANA Database Artifact, click on the folder icon in the first field. Navigate to your project, the src folder, and then click on Open.

  4. Select the artifact type as Role hdbrole.

    Create hdbrole
    Create hdbrole

  5. Under ‘Specify the artifact name’ option enter the name inventory_with_grant.

  6. The database version should be HANA Cloud, by default. Without making any further changes, click on Create.

Step 2 Assign privileges to the role with grant option
+
Step 3 Create a second role without grant option
+
Step 4 Create a new repository in GitHub
+
Step 5 Generate a GitHub token
+
Step 6 Connect your development project to GitHub
+
Step 7 Add a remote origin via HTTPS connection
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 7
1. Create a role with grant option 2. Assign privileges to the role with grant option 3. Create a second role without grant option 4. Create a new repository in GitHub 5. Generate a GitHub token 6. Connect your development project to GitHub 7. Add a remote origin via HTTPS connection

Learn more →