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.

5. Optional Step: To filter and view the table data in the modeled view, which is relevant to a specific client as<br />

specified in the table fields, such as, MANDT or CLIENT, at runtime perform the following:<br />

1. Select the Semantics node, in the Properties panel edit the Default Client property.<br />

Note: The default value for the property is the one that is specified as a preference. At runtime, if the<br />

property is set to Dynamic then, the value set for the Session Client property is used to filter table<br />

data. The Session Client property is set while creating a user.<br />

Note: You can choose to create hierarchies in order to define relationships between attributes.<br />

Note:<br />

You can choose to associate an attribute with another attribute, which describes it in detail. For<br />

example, when reporting via Label Mapping (also known as Description Mapping), you can associate<br />

Region_ID with Region_Text.<br />

Before SP05, you could associate an attribute with another attribute in a model. In the runtime<br />

object an .description column is generated and is shown during data preview. Now, from<br />

SP05 onwards the behavior is as follows:<br />

○ For an attribute (CUSTOMER) you can now maintain label mapping by selecting another<br />

attribute (TEXT) from the same model as "Label Column" in the Semantics node. The result is<br />

"TEXT" displaying as the label column in data preview. Note that the CUSTOMER.description<br />

column is not generated and is not shown in data preview anymore.<br />

○ If you have created an object using the old editor (which supported the old style of description<br />

mapping) and try to open it using the new editor you will see a new column<br />

CUSTOMER.description (as an attribute) which is hidden and disabled because this column<br />

cannot be used in other places such as parameter/variable, calculated column, restricted<br />

column and so on. You cannot maintain properties for this attribute for example, description.<br />

CUSTOMER.description displays in the data preview as long as you do not change it in the<br />

editor. You can change its name. After changing the name you can maintain its properties and<br />

use it like other attributes.<br />

6. Activate the view using one of the following options in the toolbar:<br />

○ Save and Activate - to activate the current view and redeploy the affected objects if an active version of<br />

the affected object exists. Otherwise only current view gets activated.<br />

○ Save and Activate All - to activate the current view along with the required and affected objects.<br />

Note: You can also activate the current view by selecting the view in the Navigator panel and choosing<br />

Activate in the context menu.<br />

You can find the activated model in the related package. If you want to modify this model, from the context menu,<br />

choose Open and make the necessary changes.<br />

108<br />

Restriction: The behavior of attribute views with the new editor is as follows:<br />

● When an object (a table of an attribute view) is removed and added again in an attribute view in order<br />

to reflect the recently modified columns with its data type, it reflects the previous state of the columns<br />

alone. For more information, see <strong>SAP</strong> Note 1783668.<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!