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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note:<br />

Definer's right: If you want system to use the rights of the definer while executing the view or<br />

procedure for any user.<br />

Invoker's right: If you want system to use the rights of the current user while executing the view or<br />

procedure .<br />

4. Choose Finish.<br />

5. Define the Output Structure<br />

a. Choose Define Output Parameter from the Output pane.<br />

b. To add the output parameters with the required data type and length, from the Output pane toolbar,<br />

choose Define Output Parameter button.<br />

c. Choose OK.<br />

6. Define the Function<br />

Note: The order and data types of the output parameters should match the table columns order<br />

and data type which is used in the select query.<br />

a. Define the function using SQL Script commands.<br />

Note:<br />

7. Save and Activate<br />

○ You can create variables, and bind them to attributes for filtering data. The values you provide<br />

for the variables at runtime determine which data records are selected for consumption.<br />

○ You can create input parameters for the calculation view that works as a placeholder in a<br />

query.<br />

○ You can create a hierarchy between attributes of the view.<br />

a. To save the view, choose File Save .<br />

b. From the context menu of the calculation view, choose Activate.<br />

Create a Graphical Calculation View<br />

1. Choose Graphical.<br />

2. Select the required schema from the Schema for Conversion dropdown list.<br />

Note: The schema selected for conversion is used during the currency conversion. It list down all the<br />

schemas which has currency related tables and the same can be changed during design time from the<br />

properties.<br />

3. Choose Next.<br />

4. Follow the instructions in the wizard to select the required tables and content models.<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. 117

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

Saved successfully!

Ooh no, something went wrong!