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.

Validity Restriction<br />

This restriction specifies the validity period of the analytic privilege. An analytic privilege must have exactly one<br />

validity restriction.<br />

Example: GT 2010/10/01, 01:01:00.000<br />

Note: All analytic privileges automatically become immediately valid and have unlimited validity when<br />

activated in the <strong>SAP</strong> <strong>HANA</strong> modeler. This restriction is therefore not configurable.<br />

Attribute Restriction<br />

This restriction specifies the value range that the user is permitted to access. Attribute restrictions are applied to<br />

the actual attributes of a view. Each attribute restriction is relevant for one dimension attribute, which can contain<br />

multiple value filters. Each value filter represents a logical filter condition.<br />

Value filters for attribute restrictions can be static or dynamic.<br />

● A static value filter consists of an operator and either a list of values as the filter operands or a single value as<br />

the filter operand. All data types are supported except those for LOB data types (CLOB, BLOB, and NCLOB).<br />

For example, a value filter (EQ 2006) can be defined for an attribute YEAR in a dimension restriction to filter<br />

accessible data using the condition YEAR=2006 for potential users.<br />

Note: Only attributes, not aggregatable facts (for example, measures or key figures) can be used in<br />

dimension restrictions for analytic views.<br />

● A dynamic value filter consists of an operator and a stored procedure call that determines the operand value<br />

at runtime.<br />

For example, a value filter (IN (GET_MATERIAL_NUMBER_FOR_CURRENT_USER())) is defined for the<br />

attribute MATERIAL_NUMBER. This filter indicates that a user with this analytic privilege is only allowed to<br />

access material data with the numbers returned by the procedure<br />

GET_MATERIAL_NUMBER_FOR_CURRENT_USER.<br />

Note: If you create an analytic privilege in the <strong>SAP</strong> <strong>HANA</strong> modeler, it is not possible to specify a<br />

procedure call when defining restrictions. If you want to create analytic privileges with dynamic filter<br />

conditions, you must do so using SQL.<br />

It is possible to combine static and dynamic value filters.<br />

An analytic privilege can have multiple attribute restrictions, but it must have at least one attribute restriction. An<br />

attribute restriction must have at least one value filter. Therefore, if you want to permit access to the whole<br />

content of a restricted view, then the attribute restriction must specify all attributes.<br />

Similarly, if you want to permit access to the whole content of the view with the corresponding attribute, then the<br />

value filter must specify all values.<br />

334<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 Roles and Authorizations

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

Saved successfully!

Ooh no, something went wrong!