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 Calculation View

Learn how to create your own calculation views in SAP HANA Cloud, SAP HANA database with SAP Business Application Studio using Join and Rank nodes.

Overview

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

You will learn

  • โœ”How to create a calculation view in SAP Business Application Studio
  • โœ”How to use join nodes
  • โœ”How to use rank nodes
  • โœ”How to preview the output

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 create a calculation in SAP Business Application Studio, in which you will join tables and rank results to get Alex the business insights they need.


Step 1 Create the calculation view
โ€”

  1. Within your project in the SAP Business Application Studio, click on View from the side menu. Then click on Command Palette. Alternatively, use Ctrl+Shift+P to access it.

  2. Type SAP HANA: Create HANA database artifact and press Enter or click on the right option.

  3. Under Path, ensure that the path to the calculation view is created inside the src folder of your project.

  4. You will see a form appear on the right-side of the screen. Select Calculation View as your artifact type.

  5. Type a name for your calculation view, such as calculationView.

  6. Leave the rest of the options as they are. Finally, click on Create.

    Create calculation view
    Create calculation view

Step 2 Create a join node
+
Step 3 Define the mapping of the join node
+
Step 4 Add a rank node
+
Step 5 Deploy the calculation view
+
Step 6 Add a third table to the view
+
Step 7 Add another rank node
+
Step 8 Deploy the view and access the output
+
Step 9 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 9
1. Create the calculation view 2. Create a join node 3. Define the mapping of the join node 4. Add a rank node 5. Deploy the calculation view 6. Add a third table to the view 7. Add another rank node 8. Deploy the view and access the output 9. Knowledge Check

Learn more →