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.

Function Syntax Purpose Example<br />

meaning that both arg2 and<br />

arg3 are evaluated in any<br />

case. This means you cannot<br />

use if to avoid a divide by zero<br />

error which has the side<br />

effect of terminating<br />

expression evaluation when it<br />

occurs.<br />

in in(arg1, ...) return 1 (= true) if arg1 is<br />

equal to any of the remaining<br />

args, return 0 else<br />

case<br />

case(arg1, default) case(arg1,<br />

cmp1, value1, cmp2,<br />

value2, ..., default)<br />

return value1 if arg1 == cmp1,<br />

value2 if arg1 == cmp2 etc,<br />

default if there no match<br />

isnull isnull(arg1) return 1 (= true), if arg1 is set<br />

to null and null checking is on<br />

during Evaluator run<br />

(EVALUATOR_MAY_RETURN<br />

_NULL)<br />

6.5.12 Searching Tables, Models and Column Views<br />

case("CATEGORY", 'A', 'LV',<br />

'B', 'MV', 'HV')<br />

You use this feature to search for tables, models and column views in a system. You can search these objects in<br />

any system from the list of systems added in the Navigator panel that has all services started, and is up and<br />

running.<br />

In the search results, for a matching object you can perform the following actions:<br />

● Tables - you can open the table definition and add the table in the analytic and attribute view editor.<br />

Note: You can add a table only if the editor is open otherwise it results in error.<br />

● Models - you can open the models in the editor and in case of attribute view, you can add it in the view editor<br />

of an analytic view.<br />

Note: You can add a model only if the editor is open otherwise it results in error.<br />

● Column Views - you can only open and view the definition.<br />

1. Enter the object that you want to search in the Modeler toolbar search field.<br />

2. Select the system in which you want to search the object from the dropdown option next to the Search<br />

button.<br />

3. To execute the search, choose Search.<br />

The matching objects are listed in the expanded results pane with three tab pages, Tables, Models, and<br />

Column Views. You can select each to view the matching objects and corresponding actions that you can<br />

perform on them, for example, Open and Add.<br />

152<br />

P U B L I C<br />

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

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

Setting Up the Analytic Model

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

Saved successfully!

Ooh no, something went wrong!