Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
jan_zwickel
Product and Topic Expert
Product and Topic Expert
1,441

Within the time frame of 2024 Q2, several new calculation view features have been released in SAP Business Application Studio when connected to SAP HANA Cloud database QRC2. Some of these features are highlighted below. You can find examples that illustrate the individual features here. An overview of features of other releases can be found here.

Duplicate Window Function Definition

To create multiple window functions that differ only in small details the functionality "Duplicate" can be applied to a window function:

jan_zwickel_0-1717157369907.png

 

For example, if several window functions should be defined that only differ in one parameter value, this value can be modified after duplicating.

Where Used option for result columns of window functions

The Where Used option provides insights into where the result column of a window function is used within the current calculation view

jan_zwickel_1-1717157457587.png

 

Copy Calculated Columns to other nodes of the same calculation view

In addition to the option to duplicate calculated columns within nodes, calculated columns can now also be copied to other nodes within the same calculation view. Multiple calculated columns can be copied at the same time:

jan_zwickel_0-1719234121821.png
 
Copying elements might lead to inconsistent definitions if not all required objects are available at the target node. After pasting the copied elements inconsistent definitions can be detected by manually validating the expressions.
 

Return all values after ranking

With the new option All Values for Target Value of Rank nodesall records are returned after ranking and no upper limit definition is required anymore. This provides a means to sort values based on a generated rank column:

jan_zwickel_0-1717158506078.png

Further processing steps can change the sequence of records that is returned by the ranking node. Analogous to SQL, result sets of intermediate nodes do not have an inherent order. The sorting should therefore be defined in the requesting query based on the generated rank column or the result set sort option should be used.

More detailed Outline

The icons of the Outline now include information about the join type of a node.

jan_zwickel_1-1717158807664.png

 

By clicking on the respective outline node the respective node in the details area is brought into focus so that additional details about the join can be read from there.

Generated Documents with join and expression details

The generated documents now include information about expression definitions as well as more detailed information about the involved joins:
jan_zwickel_1-1719234288948.png

 

Enhanced Validate Syntax option

The option "Validate Syntax" is now also available for non equi join expressions and allows to validate expressions that include user-defined function:

jan_zwickel_3-1717159202045.png

Secure Calculation View by Structured Filters

Structured filters are an alternative option to structured privileges (.hdbanalyticprivilege) for securing calculation views. The main difference between structured privileges and structured filters is that structured filters are automatically effective for all database users; no assignment of the structured filter to database users is required.

A given view can only be secured by one type of privilege check. You can secure a calculation view 
in the Semantics node under View Properties using the option Structured Filter for field Apply Privileges:
jan_zwickel_2-1717159039979.png

 

Keyboard shortcut for metadata refresh

Metadata such as columns of underlying data sources are read when opening a calculation view. Using the metadata refresh option allows to update the metadata of underlying data sources, e.g., if columns have been added to the underlying data sources after opening the calculation view. The metadata refresh can now also be triggered by a keyboard shortcut which is per default CTRL+SHIFT+k.

An alternative keyboard shortcut can be configured under "Settings":

jan_zwickel_2-1717157866438.png

Add Data Source dialog offers last selected data source types

In the Add Data Source dialog a filter for different Data Source Types is used:

jan_zwickel_0-1719235030242.png

 

The last selected data source types are stored within the developer workspace and reused the next time the Add Data Source dialog is opened in a context that uses the same default data source types. For example, starting the Add Data Source dialog in the context of adding a data source to a node offers different data source types compared to when starting the Add Data Source dialog in the context of selecting a value help view.