Hierarchies are an important aspect of your SAP BW/4HANA implementation, and the need for security should be determined in collaboration with the business team. It's the responsibility of the SAP BW/4HANA developers to create and maintain hierarchies, and security can be enabled for hierarchies from a security perspective.
In setting up hierarchy security, there are various options to consider. This includes enabling users to view the entire hierarchy, only specific nodes, or the subtree below those nodes.
Before setting up hierarchy security, it's essential that the characteristic on which the hierarchy is based is authorization-relevant. For example, if the hierarchy is based on products, characteristic 0D_NW_PRID must be marked as authorization-relevant.
To maintain hierarchy authorizations within an Analysis Authorization, select the relevant characteristic (1), choose Details (2).
Then, choose the Hierarchy Authorizations (3) tab, and choose Create (4) for a new hierarchy authorization or Details (5) to open an existing one.
A Hierarchy Authorization is made up by the following settings:
- Hierarchy
- Nodes (not when Type of Authorization is 3)
- Type of Authorization
- Hierarchy Level (only when the Type of Authorization is 2 or 4)
- Validity Period
Hint
You do not have to create separate authorizations for hierarchical and nonhierarchical data, and you can enhance an existing (value) authorization with hierarchy authorizations.
Type of Authorization
Type of Authorization
This table provides an overview of the values available for the Type of authorization field.
0 | Only the Selected Nodes In the preceding figure: the user can display the node B only, he cannot expand it |
1 | Subtree Below Nodes In the preceding figure: the user can display node A and expand it completely |
2 | Subtree Below Nodes to Level (Incl.) In the preceding figure: the user can display node A and expand it until the absolute level 3 |
3 | Complete Hierarchy In the previous figure, the user can view the complete hierarchy, expanding it entirely, with the unassigned members also visible. |
4 | Subtree Below Nodes to (and Incl.) Level (Relative) In the preceding figure: the user can display node A and expand it by two more levels |
Note that when the authorization type is set to 2, the hierarchy level is considered an absolute value and refers to the entire hierarchy. The highest visible node of a hierarchy stands at level 1. For example, if you have entered the value 3 for the hierarchy level then the user can expand the hierarchy up to level 3.
Type 4 makes sense if an employee may only expand the hierarchy to a certain depth below a certain node. The node may be moved to a different level when the hierarchy is restructured, then the authorization remains the same.
Validity Period
Specify the exact criteria for aligning a hierarchy authorization with the chosen display hierarchy within the Validity Period field. This ensure other hierarchies are included in the authorization check.
The following options are available:
- 0 or blank: Name, version, and key date identical
- 1: Name and version identical
- 2: Name identical
- 3: None of the three properties have to match (least strict check)
You can use the validity period field to extend authorization to additional hierarchies based on the same characteristic.
Use 1 to set another hierarchy with the same technical name but a different validity period.
Use 2 to set another hierarchy with the same technical name but a different version number.
Or even to another hierarchy with a different technical name.
If you restrict the selection to hierarchy nodes, the hierarchy nodes in the other hierarchy must have the same technical name (see the following example).