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

Adding Our Union Calculation View into the Converted Data Model

Replacing old information model with new calculation view

Overview

🎓 beginner 15 min. SAP HANA Dynamic TieringBeginnerSAP HANASAP HANA StudioBig DataSql

You will learn

  • โœ”How to add extended tables to an existing information model
Unknown U Unknown November 1, 2022
Created by August 23, 2017
Contributors

Prerequisites

Prerequisites

  • Tutorials: “Creating a Calculation View from the Union of In-Memory and Extended Tables”

Steps

Time to Complete

15 Min


Step 1 Adding Our Union Calculation View into the Converted Data Model
โ€”

We have converted the original information into all calculation views so that they can support other calculation views. We then created a new calculation view which was a union between hot and warm data. Now we will replace ORDERS_CS with the new calculation view inside of AV_ORDERS.

Under the tutorial_All_Calc package, open up AV_ORDERS in the graphical viewer. Under Projection, right click ORDERS_CS and click Remove.

Note: You may need to expand Projection by clicking the + button beside its name.

Remove ORDERS_CS
Remove ORDERS_CS

You will receive a warning that column references will get removed because of this action. Click Yes and OK to confirm.

Similar to the previous tutorial, we will drag CA_UNION view over from the Systems panel, and drop it into the Projection node.

Drag CA_UNION
Drag CA_UNION

Afterwards, select the Projection node to edit its details in the Details panel. Click the gray dots for O_CUSTERKEY, O_ORDERSTATUS, O_TOTALPRICE, and O_ORDERDATE. This will add them to the output and the color of the dots will change to orange to indicate that they are now included in the output.

Select Columns to Output
Select Columns to Output

Now, select the Star Join node to edit it. Toggle all the gray circles to become orange, except for the O_CUSTKEY from Projection. Then, connect O_CUSTKEY with C_CUSTKEY. This is done by clicking anywhere on one row, and dragging your cursor to another row.

Connecting O_CUSTKEY and C_CUSTKEY
Connecting O_CUSTKEY and C_CUSTKEY

You may see a warning sign above the Projection node. If it reads “No columns added to the output” when you have already done so (denoted by the orange dots), you may ignore this warning.

Next, we will select the Semantics, to ensure each column is set as the right type. Toggle the type so that O_ORDERDATE and ORDERSTATUS are attributes (denoted by a blue diamond), and O_TOTALPRICE is a measure (denoted by an orange bar) with a “Sum” aggregation.

Check Semantics Type
Check Semantics Type

Step 2 Activate View
+

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. Adding Our Union Calculation View into the Converted Data Model 2. Activate View

Learn more →