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

Enhance Your Project with Services, Synonyms and Grants

Create a user-provided service, grant privileges to the service and create a synonym to allows users of the template project to access data.

Overview

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

You will learn

  • โœ”How to create a user-provided service in SAP Business Application Studio
  • โœ”How to grant privileges using a user-provided service
  • โœ”How to create a synonym
Unknown U Unknown July 18, 2024
Created by October 19, 2021
Contributors

Prerequisites

Prerequisites

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. Prepare your SAP HANA Database Project for collaboration

  5. Generate users and roles for assigning privileges

  6. You are here โ˜› Enhance your project with services, synonyms and grants

  7. Collaborate on an SAP HANA Database Project template

This tutorial will show you how to enhance your project with services, synonyms, and grants.


Step 1 Create a User-Provided Service in SAP Business Application Studio
โ€”

The user-provided service will be responsible for granting privileges to the project in the future.

  1. Go back to your SAP Business Application Studio tab and to your project WS3_3. If it is not open already, you can find it on the Welcome screen.

  2. Navigate to the explorer if you are still in the source control view. You can get there by clicking on the File Explorer icon at the top of the vertical menu bar on the left of the screen.

  3. On the bottom left corner, you can see the project folder WS3_3/db in the SAP HANA Projects panel. Click on the deploy icon for the file to deploy the changes to your HDI container.

  4. Next, click on the plus icon for adding database connections.

    Add database connection
    Add database connection

  5. The Add Database Connections window will open.

  6. In the field Select connection type, select Create a user-provided service instance from the drop-down menu.

    Create UPS instance
    Create UPS instance

  7. Enter the name of the service instance as UPS_GENERIC.

  8. Under Connect to database, select Use deployment target container database.

  9. Under Enter username, enter UPS_GRANTOR.

  10. Under Enter password, enter the password DnATBG!1 that you used while creating the user in the SAP HANA Database Explorer using SQL.

  11. Click on Add to complete the creation of the user-provided service instance. You will see this addition in the SAP HANA PROJECTS panel.

    UPS instance view
    UPS instance view

Step 2 Grant privileges using user-provided service
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Create a User-Provided Service in SAP Business Application Studio 2. Grant privileges using user-provided service

Learn more →