28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

a. Enter a name and description.<br />

b. Select the required attribute from the dropdown list.<br />

Note: At runtime, the value for the variable is fetched from the selected attribute's data.<br />

c. Choose the required Selection Type from the dropdown list.<br />

d. If you want to specify a default value that is used to filter attribute data, enter the value in the Default<br />

Value field.<br />

e. Choose OK.<br />

Note: You can also choose to create a variable using the Create Variable option from the context menu of<br />

an attribute. In this case, the details of the variable are pre-filled.<br />

2. Assign a Variable to a Filter<br />

1. On the Output panel, right-click the attribute.<br />

2. In the context menu, choose Apply Filter.<br />

3. In the Operator dropdown list, choose Variable.<br />

4. In the Variable dropdown list, choose the required variable.<br />

5. Choose OK.<br />

Note: You can also choose to create a variable and apply a filter using the Create Variable - Apply Filter<br />

option from the context menu of an attribute.<br />

6.2.9 Creating Input Parameters<br />

Use this procedure to allow you to provide input for the parameters within stored procedures, in order to obtain a<br />

desired functionality when the procedure is executed.<br />

In an analytic view you use input parameters as placeholders during currency conversion and formulas like<br />

calculated columns. When used in formulas, the calculation of the formula is based on the input that you provide<br />

at runtime during data preview. Input parameters are not used for filtering attribute data in analytic views that can<br />

be achieved using variables.<br />

In calculation views you can use input parameter during currency conversion, calculated measures, input<br />

parameters of the script node, and to filter data as well.<br />

You can apply input parameters in analytic and calculation views. If a calculation view is created using an analytic<br />

view with input parameters, those input parameters are also available in the calculation view but you cannot edit<br />

them.<br />

The following types of input parameters are supported:<br />

Type Description<br />

Attribute Value/ Column Use this when the value of a parameter comes from an<br />

attribute.<br />

Currency (available in Calculation View only) Use this when the value of a parameter is in a currency<br />

format, for example, to specify the target currency during<br />

currency conversion.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up the Analytic Model<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!