Вы находитесь на странице: 1из 4

2/15/2017 SAPHANASQLAnalyticPrivilegesSAPStudent

SAP HANA SQL Analytic Privileges


HANA 6,615 Views

HelloEveryone,

DataSecurity/Restrictiondependingontheuserloggedintothesystemisoneoftheintegralpartofanydatawarehousingsystemor

reportingsolution.

InthisarticlewearegoingdiscussabouttheprocessofdatasecurityinSAPHANA.

ThedatasecurityonHANAmodelingobjectscanbedonewiththehelpofAnalyticPrivileges.

WhatisanAnalyticPrivilege?

AnalyticPrivilegeisusedtorestrictaccessingofentiredatapresentininformationmodels(modelingobjects)inSAPHANA.Alsowecan

defineasimplerestrictiontoasetofcomplexrestrictionswiththehelpofAnalyticPrivilegesandassignthemtoindividualusersorrolesto

restrictthedatawhentheyexecutethoseobjects.

Wecanalsosay,

Analyticprivilegeshelprestrictdataaccesstoinformationviewsbasedonattributesorprocedures.Wecancreateandapplyanalytic

privilegesforaselectedgroupofmodelsorapplythemtoallmodelsacrosspackages.

Afterwecreateanalyticprivileges,weassignthemtousers.Thisrestrictstheuserstoaccessonlythedataofcertaincombinationsof

dimensionattributesforwhichtheyareauthorized.

FromSAPHANASP10,wecancreatetwotypesofAnalyticPrivilegesinSAPHANA.Theyare

ClassicalAnalyticPrivileges(XMLAnalyticalPrivileges)

SQLAnalyticPrivileges

Eventhoughtheprocessofcreatingboththeanalyticprivilegesaresame,theoptionsandflexibilitywehaveineachofthesediffers.Before

westartbuildinganalyticprivileges(rowleveldatasecurity),weneedtodecidewhichtypeofprivilegeissuitablebasedonthebusiness

scenario.

LookingforOnlineTra
SQLbasedanalyticprivilegesallowustoeasilyformulatecomplexfilterconditionsthatmightbedifficulttomodelusingXMLbasedanalytic
Checkoutoneofthebest
SAPHANACourse
privileges(Classical).
CourseContent

http://www.sapstudent.com/hana/saphanasqlanalyticprivileges 1/4
2/15/2017 SAPHANASQLAnalyticPrivilegesSAPStudent

BelowarethedifferencesbetweenClassicalandSQLbasedAnalyticPrivileges.

Scenario:

BasedonthemodelwehavediscussedinIntroductiontoSAPHANAModeling,wehavealreadycreatedalltherequiredattributeviews,

analyticviewsandcalculationviews.

Pleasegothroughthebelowarticles,ifyouwouldliketolearnmoreabouttheprocessofcreatingmodelingobjectsinSAPHANA.

AttributeViewcreationinSAPHANA.

AnalyticViewcreationinSAPHANA.

CalculationViewcreationinSAPHANA.

NowletssaybusinesswantstoapplydatarestrictiononORDER_YEARtospecificuserswhentheylogintoanyreportingtooltoexecutethe

report.

Inthearticle,wewillseehowtocreateSQLanalyticprivilegestorestrictdataonORDER_YEARtospecificusersfromcalculationview

CA_SALES_PAYMENTS.

HowtocreateSQLAnalyticalPrivileges?

NowletslookatthestepbystepprocessofcreatingSQLanalyticalprivilegesinSAPHANAusingHANAStudio.

Step1:

LookingforOnlineTra
Tocreateanewanalyticprivilege,weneedtogotocontent,rightclickonyourpackageNewAnalyticPrivilegeasshownbelow.

Checkoutoneofthebest
SAPHANACourse
CourseContent

http://www.sapstudent.com/hana/saphanasqlanalyticprivileges 2/4
2/15/2017 SAPHANASQLAnalyticPrivilegesSAPStudent

Step2:

Inthisscreenwehavetoenterthedetailsliketechnicalname,label(description)andthenselectthetypeofanalyticprivilegewewouldlike

tocreate.

ClickNexttoproceedfurther.

Step3:

LookingforOnlineTra
Inthisstepwewillbeselectingtheinformationmodelsonwhichwewouldliketoapplyanalyticprivileges.
Checkoutoneofthebest
SAPHANACourse
SQLAnalyticPrivilegescanbeappliedonbelowmodelsinSAPHANA
CourseContent

http://www.sapstudent.com/hana/saphanasqlanalyticprivileges 3/4
2/15/2017 SAPHANASQLAnalyticPrivilegesSAPStudent

AttributeView

AnalyticView

CalculationView

Views

Inourscenario,wewouldliketoapplyanalyticprivilegesonourfinalcalculationviewCA_SALES_PAYMENTSforattributeORDER_YEAR.

SelectthecalculationviewCA_SALES_PAYMENTS,addtotherightsideandclickFinishasshownbelow.

Proceedtothenextpagetocontinuereading

Pages: 1 2 3

LookingforOnlineTra
Checkoutoneofthebest
SAPHANACourse
CourseContent

http://www.sapstudent.com/hana/saphanasqlanalyticprivileges 4/4