SAP HANA - Attribute views

15
ATTRIBUTE VIEWS - Yasmin Banu A

Transcript of SAP HANA - Attribute views

Page 1: SAP HANA - Attribute views

ATTRIBUTE VIEWS

- Yasmin Banu A

Page 2: SAP HANA - Attribute views

Introduction to Attribute View:Attribute Views are dimensions, BW

characteristics or master dataIt is used to join a dimension or attribute viewIts mostly used to model master data like

entities Ex. Product, Employee, Business PartnerThey can be highly re-used and shared in

Analytic and Calculation views

Page 3: SAP HANA - Attribute views

Steps to Create Attribute View: Step 1 : Open HANA Studio and we have to ensure

we are in Modeler perspective Step 2 : Create a new package under the content

folder. Right-click on the content folder and choose "New" -> "Package." Fill the fields "Name" and "Description" and click "OK”.

If the new package doesn’t appear after this, try right- clicking on the content folder and refreshing

Page 4: SAP HANA - Attribute views

Step 3 : Right click on the created Package and select the option “New Attribute View”. Give a name and a description and Choose ‘Finish’

Page 5: SAP HANA - Attribute views
Page 6: SAP HANA - Attribute views

Step 4 : Attribute view will be opened in the HANA studio editor. Choose "+" sign in "Data Foundation”

Page 7: SAP HANA - Attribute views

Step 5 : Search for table "REGION" and choose it

Page 8: SAP HANA - Attribute views

Step 6 : Add the columns from the REGION table to output. Right click on the column and select "Add to Output". Add all 3 columns REGION_ID, REGION_NAME, SUB_REGION_NAME to the output.Once it is done, you will see the selected column in right side pane

Page 9: SAP HANA - Attribute views
Page 10: SAP HANA - Attribute views

Step 7 : Now choose ‘Semantics’. All 3 columns appears under Column pane as attribute

Page 11: SAP HANA - Attribute views

Step 8 : The system automatically defines each field as attributes/measures. In our case, all are attributes. Every attribute view must have at least one key attribute. Check the key Box to assign the key

Page 12: SAP HANA - Attribute views

Step 9 : Click on the Save & Activate button to activate the view

Page 13: SAP HANA - Attribute views

Step 10 : In the "Job log" Pane we can see a message stating the activation status

Step 11 : In order to view the data, choose ‘Data Preview’ button as highlighted

Page 14: SAP HANA - Attribute views

Step 12 : Choose the raw data tab

Page 15: SAP HANA - Attribute views

THANK YOU