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 decision table is based on information views and parameter(s) as action.<br />

6.3.1 Changing the Layout of a Decision Table<br />

Use this procedure to change the decision table layout by arranging the condition and action columns. By default,<br />

all the conditions appear as vertical columns in the decision table. You can choose to mark a condition as a<br />

horizontal condition, and view the corresponding values in a row. The evaluation order of the conditions is such<br />

that first the horizontal condition is evaluated and then the vertical ones.<br />

Note: You can only change the layout of a decision table if it has more than one condition. You can select<br />

only one condition as horizontal condition.<br />

Procedure<br />

1. In the context menu of the Decision Table editor, choose Change Layout.<br />

2. If you want to view a condition as a horizontal condition, in the Change Decision Table Layout dialog, select<br />

Table has Horizontal Condition (HC) checkbox.<br />

Note: By default the first condition in the list of conditions is marked as horizontal.<br />

3. In the Conditions and Actions sections, choose options on the right-hand side of the dialog box to arrange the<br />

conditions and actions in the desired sequence.<br />

4. Choose OK.<br />

5. Save the changes.<br />

Note: The available options to arrange the conditions in a sequence are:<br />

○ Move Condition to Top<br />

○ Move Condition Up<br />

○ Move Condition Down<br />

○ Move Condition to Bottom<br />

Note: You can also set a condition as horizontal from the context menu of the condition in the Output view.<br />

You can also arrange the conditions and actions in the desired sequence in the Output view using the<br />

respective buttons.<br />

6.3.2 Using Parameters in a Decision Table<br />

You use this procedure to create a parameter that can be used to simulate a business scenario. You can use<br />

parameters as conditions and actions in the decision table at design time. Parameters used as conditions,<br />

determine the set of physical table rows to be updated based on the condition value that you provide at runtime<br />

during procedure call. Parameters used as actions, simulate the physical table without updating to it.<br />

The following parameter types are supported:<br />

Type Description<br />

Static List Use this when the value of a parameter comes from a userdefined<br />

list of values.<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. 139

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

Saved successfully!

Ooh no, something went wrong!