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.

If you create restrictions on columns CUST_ID and CUST_GROUP such as CUST_ID = 1 and<br />

CUST_GROUP = 1, the conditions are combined with AND, and the data available for a user is:<br />

CUST_ID CUST_GROUP SALES<br />

1 GRP1 1000<br />

Note:<br />

○ The technical name used for attributes of calculation views and private attributes of<br />

analytic views, is the same as that of the attribute name. Hence any restriction applied to<br />

a private attribute of an analytic or calculation view attribute is also applied to any other<br />

private attribute of an analytic view and calculation view attribute having the same name.<br />

In the above example, if there is any other analytic view or calculation view, which is part<br />

of a privilege’s secured list of models, and has a field called “CUST_ID” (not coming from<br />

any attribute view), the data for these privileges also gets restricted.<br />

○ If Applicable to all information models is selected, any analytic view/calculation view (even<br />

if not part of the secured models) which has a (private) attribute called “CUST_ID”, the<br />

data for these privileges also get restricted.<br />

○ The behavior for the calculation view is the same as that of the analytic view described<br />

above.<br />

● Consider an attribute view CUSTOMER which is part of an analytic privilege’s secured list of models<br />

having the following data.<br />

CUST_ID COUNTRY MANDT<br />

1 IN 1<br />

2 IN 1<br />

3 US 1<br />

1 DE 2<br />

If you create a restriction on column CUST_ID to filter data for CUST_ID 1 and 2, the conditions are<br />

combined with OR and the data is shown as follows:<br />

CUST_ID COUNTRY MANDT<br />

1 IN 1<br />

2 IN 1<br />

1 DE 2<br />

If you create restrictions on columns CUST_ID and COUNTRY such as CUST_ID = 1 and COUNTRY =<br />

IN, the conditions are combined with AND, and the data available for a user is:<br />

CUST_ID COUNTRY MANDT<br />

1 IN 1000<br />

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

Setting Up Roles and Authorizations<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!