SAP BLOG HOW-TO: Activate Master Data Hierarchies for SAP Analytics Cloud (SAC)

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,925
Tepki puanı
7
Puanları
6
Introduction


SAP Analytics Cloud enables to create dynamic visual stories based on key business areas with trusted data that is managed by IT. (Source: https://www.sapanalytics.cloud/product/#businessintelligence )

There are many introductions and learning materials for creating powerful reports and dashboards for SAC. All the information shows how to visually deal with data derived from various sources. Since the BW live connection via BW queries does not have all the required features yet, we are using live connection via External SAP HANA Views. The External SAPA HANA views are query-based. This is the only way it does work with the master data hierarchies right now.

Although we are using live connection via External SAP HANA views there are some limitations for SAC. For further information on this, please refer to the SAP help.

Unfortunately, all is not as straight forward as we are used to with Bex Reporting.

What I want to show you here is how to activate master data hierarchies from your BW InfoObjects for usage in SAC from External SAP HANA Views only.

If you have one or more hierarchies on an InfoObject as master data in your SAP BW system and you want to use it within a SAC Model/Story, you need to go through the following steps.

How-To: Activate Master Data Hierarchies

First Step:


Open Transaction RSRV in SAP BW (this step must be done for all your BW systems for example: development, testing and production)

There you must do two checks if the hierarchy is ready to use within SAC.

In Section All Combined Tests choose Hierarchies -> Characteristic hierarchy.

RSRV_Chk1a.png


Double click for transfer to target area

Double click on characteristic hierarchy and choose the InfoObject you’d need the hierarchies from.

RSRV_Chk1b.png


Afterwards execute.

If all is green, go to next check.

RSRV_Chk1c.png
If there are SID errors on nodes click on Correct Error and execute again. These errors are easy to repair. All others must be looked at individually.

RSRV_Chk1d.png


Afterwards choose from All Elementary Tests –> Hierarchies –> Check individual hierarchy: BW Hierarchy in SAP HANA

RSRV_Chk1dd.png


Double click for transfer to target area

Double click on Check individual hierarchy: BW Hierarchy in SAP HANA and choose the Characteristic, Hierarchy Name and Valid to date (31129999)

RSRV_Chk1e.png


Afterwards Execute

If all is green Hierarchy is fine for publishing in SAC.

Second Step:


Go to the InfoObject within Eclipse and mark “External SAP HANA View for Master Data”.

Iobj_1a.png


Iobj_1b.png


Assign Hierarchy within the Query. Transport InfoObject/Query.

Iobj_1c.png


Hint: Transport InfoObject first, then Query!

Third Step:


After transport to the target system go to transaction RS2HANA_ADMIN repair IOBJ, HCPR and ELEM view separately as well as save the model within SAC on dimensions.

Chk_1a.png


In the background a new object is created which is probably not within your existing general privilege for the view.

Which could therefore lead to an error message when opening an existing story. If you get the following message …

Auth_err-1.png


Go to transaction RS2HANA_GEN, add the InfoObject, Composite Provider and Query and replicate authorization for all users –> Hint: just to be sure do this step twice.

auth_repl.png
Within the model a new Dimension with the ending –> (Hierarchy) has been created.

Hier_dim_1a.png


Fourth Step:


In the story the newly created dimension, which you will only find within the model but NOT within your base query, should look like this. The first dimension shows the InfoObject you have within your model view the second dimension is the hierarchy dimension from this object.

Hier_dim_1b.png


You are now able to work with your master data hierarchies within SAC reports and dashboards.

Hier_dim_1c.png


Conclusion


Overall, although it seems as no big deal this should not be taken lightly.

Every InfoObject master data hierarchy should be considered very carefully.

Last but not lease I want to tell you some tips & tricks we encountered along the way.

Tips & Tricks

  • Not all hierarchies are possible to use.
  • If you have multiple hierarchies on an InfoObject – all will be displayed in SAC when using a hierarchy variable on the InfoObject properties within the model – BUT all hierarchies which are not suitable for SAC are not shown until they are fixed.
  • If you get only a warning while the RSRV check not all can be repaired.

RSRV_Chk1f.png


In this case one hierarchy has several nodes identical or multiple parents with not assigned, it is not working – Hierarchies need to be checked & changed otherwise they are not usable in SAC and is not visible within the selection in SAC.

  • In case there are troubles like Hierarchy formatting within the story not working –
    • Check with transaction RSRV on the target system again and repair if necessary
    • Go again to RS2HANA_ADMIN repair IOBJ, HCPR and ELEM view
    • Go back to SAC Model – Save Model on Dimensions
    • Try again within the Story

Okumaya devam et...
 
Üst