天天看點

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

在産品表中,資料是具有一定層次結構的

1. 在Content相應的package下面右鍵點選Attribute View,建立Attribute View

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

填寫相關資訊,注意:我們所建的依然是标準視圖:

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

點選Finish後得到如下設計界面:

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

2. 添加資料對象

點選Data Foundation

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

點選綠色+号,進入資料對象查詢窗體

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

輸入資料對象關鍵字,找到相應的資料對象,點選OK,則資料對象添加到Data Foundation中:

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

3. 選擇輸出列

點中Data Foundation, 選擇相應的列作為輸出列

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

4. 設定Key Attribute

點中Semantics,設定ProductID為Key Attribute

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

5. 設定Hierarchies

點中Semantics,點選Hierarchies中的添加按鈕

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

設定Hierarchy相關屬性,指定層結構相關的字段

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

點選OK後,得到如下結果:

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

6. 激活并預覽資料

[Step By Step]SAP HANA建立層次結構的屬性視圖(Hierarchy Attribute View)

專注于企業資訊化,最近對股票資料分析較為感興趣,可免費分享股票個股主力資金實時變化趨勢分析工具,股票交流QQ群:457394862

本文轉自滄海-重慶部落格園部落格,原文連結:http://www.cnblogs.com/omygod/archive/2013/04/30/3052082.html,如需轉載請自行聯系原作者