-
Book Overview & Buying
-
Table Of Contents
SAP HANA Cookbook
Variables are used when values are to be determined dynamically. Variables can be created in analytic and calculation views on any field in the output definition of the view.
In order to create variables, we should have analytic or calculation views on hand. Having created one of these models, let us start creating variables.
In this recipe, we will see how to create variables in SAP HANA that enable end users to change values dynamically at the time of executing reports. Follow the given steps:
Open an analytic or calculation view and click on the Semantics section.
Under Variables/Input Parameters, click on the plus sign in the right corner of the screen and select Create Variable, as shown in the following screenshot:

Enter information in all the fields and click on OK. The Default Value field is optional.

After creating a variable, we can see the variable against the field we selected in the Semantics section, as shown in the following screenshot...
Change the font size
Change margin width
Change background colour