Skip to Content
Technical Articles
Author's profile photo Sajith Rangama

Passing Values to HANA Input Parameters when using Free-hand SQL in WEBi 4.2

This blog will explain how one can use WEBi 4.2 Free-hand SQL feature to retrieve data into WEBi from a HANA Calculation View of type “DIMENSION”. This is purely based on the personal R&D done using WEBi 4.2 SP04 and HANA 2.0 SPS05, and noting down through this blog post since the above subject is hardly documented on the internet.

 

It is possible to call HANA Calculation Views of type “CUBE” into WEBi either using relational or OLAP connections however, Calculation Views of type “DIMENSION” are not natively visible in WEBi. An alternative way would be to use WEBi Free-hand SQL to retrieve the data from the views to create a WEBi report.

 

Although a simple Free-hand SQL statement like below is fairly simple and straightforward, complexity arises when we want to pass some values to the input parameters of the underlying Calculation View.

Simple%20Free-Hand%20SQL%20in%20WEBi

Simple Free-Hand SQL in WEBi

 

The answer is to use the @Prompt in WEBi and redirect the user input to the PLACEHOLDER directive as one would normally do in HANA SQL. An example is shown below.

 

Passing%20Value%20to%20Input%20Parameter%20via%20Prompt%20in%20Free-hand%20SQL%20in%20WEBi

Passing Value to Input Parameter via Prompt in Free-hand SQL in WEBi

 

Hope this helps someone who is looking for a similar solution with Free-hand SQL in WEBi.

For those who are interested in reading more about @Prompt and WEBi Support Matrix for HANA, kindly refer to these links below.

  1. Examples: Using the @Prompt function
  2. Another good article on @Prompt function
  3. SAP Integration Support Matrix for SAP BusinessObjects Web Intelligence on SAP HANA

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.