Processing of Custom Objects: Hierarchy Management

Objective

After completing this lesson, you will be able to process Custom Objects: Hierarchy Management

Hierarchy Management

The graphic gives an overview of the hierarchy application framework, the business value, and the MDG Hierarchy Capability. Hierarchy is often used as structured data to present the relationship of business objects, organizations, and so on. It is widely used in operative transactions and analytics among all of the master data domains. MDG Hierarchy management provides intuitive user interface to maintain hierarchy, approval process, and enables users to manage and analyze hierarchies efficiently.

The graphic gives an overview of the hierarchy application framework, the business value, and the MDG Hierarchy Capability. Hierarchy is often used as structured data to present the relationship of business objects, organizations, and so on. It is widely used in operative transactions and analytics among all of the master data domains. MDG Hierarchy management provides intuitive user interface to maintain hierarchy, approval process, and enables users to manage and analyze hierarchies efficiently.

Hierarchy Governance Process

Hierarchy Maintenance Overview

The graphic shows an overview of hierarchy maintenance. You can drag and drop to reassign items in collective processing and directly navigate to pending change request.

The graphic shows an overview of hierarchy maintenance. You can drag and drop to reassign items in collective processing and directly navigate to pending change request.

Work with Hierarchy Processing UI

Screenshot of the view and edit functions of the hierarchy processing UI.

The figure illustrates the view and edit functions of the hierarchy processing UI.

Screenshot of the hierarchy processing UI. Work with new objects and/or insert the. You can create a new hierarchy, new node, and new object from the menu. You can insert existing objects into the hierarchy as child or sibling. You can insert unassigned objects directly from a calculated list.

The figure explains how to work with the hierarchy processing UI. Work with new objects and/or insert the. You can create a new hierarchy, new node, and new object from the menu. You can insert existing objects into the hierarchy as child or sibling. You can insert unassigned objects directly from a calculated list. You find more information here:

The graphic shows how to work with the hierarchy process UI. The business value is a simplified maintenance process and improved user usability for hierarchy management.

The figure explains how to work with the hierarchy processing UI and, in more detail, the integrated object creation.

Screenshot of hierarchy processing and working with many nodes at once. You can move, add, or delete several nodes at once. Here, you select three airlines and drag and drop to other places as sibling or children nodes.

The figure explains how to work with the hierarchy processing UI, and in more detail, using cut, copy, paste, drag and drop.

Screenshot of working with moving. You can move selected nodes to upper level and lower level by left and right buttons, and to previous or after nodes by up and down buttons.

The figure explains how to work with the hierarchy processing UI, in more detail, the functions: Move down/up and lower/higher.

Screenshot of faster saving of changes in integrated change requests. As soon as you choose the Save button, you can create your own change request.

The figure explains how to work with the hierarchy processing UI, in more detail, the functions: Save and submit hierarchy change.

Hierarchy Change

Screenshot of the first step in approving a hierarchy change.

The figure explains the first steps of approving a hierarchy change.

Help Portal: Master Data Governance Working With Master Data Governance Working with MDG, Central Governance General Functions Master Data Processing Collective Processing

See the section on Change Documents.

Screenshot of the next steps in approving a hierarchy change.

The figure explains the next steps of approving a hierarchy change.

Hierarchy Maintenance Overview

Screenshot of the hierarchy maintenance overview.

The graphic focuses on step two of the hierarchy maintenance; directly navigate to pending change request.

The figure explains the steps to maintain a hierarchy assignment in a single object UI. You can assign single objects to a hierarchy using an attribute-based search that displays tree-like results.

The figure explains the steps to maintain a hierarchy assignment in a single object UI. You can assign single objects to a hierarchy using an attribute-based search that displays tree-like results. Find more details here:

Help Portal: Master Data Governance Working With Master Data Governance Working with MDG, Centraol Governance General Functions Master Data Processing Single-Object Processing

Help Portal: Master Data Governance Working With Master Data Governance Working with MDG, Central Governance General Functions Master Data Processing Single-Object Processing Hierarchy Assignments in Single-Object Processing

Check and Approve Hierarchy Assignment in Single Object UI

The graphic shows the first part in checking and approving a hierarchy assignment in a single object UI. Hierarchy related validation is executed when you save or check the hierarchy assignment, and the validation result can be easily checked and corrected in single object UI.

The graphic shows the first part in checking and approving a hierarchy assignment in a single object UI. Hierarchy related validation is executed when you save or check the hierarchy assignment, and the validation result can be easily checked and corrected in single object UI.

The graphic shows the second part in checking and approving a hierarchy assignment in a single object UI. Before you approve the object, you simply check where the object has been assigned to in the hierarchy in a graphic way by clicking Display Hierarchy assignment.

The graphic shows the second part in checking and approving a hierarchy assignment in a single object UI. Before you approve the object, you simply check where the object has been assigned to in the hierarchy in a graphic way by clicking Display Hierarchy assignment.

The graphic shows the third part in checking and approving a hierarchy assignment in a single object UI. Before you approve, you can easily see what has been changed by the requester by the highlighted color. In a tooltip, you can see Old values and New values. The deleted entries are still visible but with a strike-through.

The graphic shows the third part in checking and approving a hierarchy assignment in a single object UI. Before you approve, you can easily see what has been changed by the requester by the highlighted color. In a tooltip, you can see Old values and New values. The deleted entries are still visible but with a strike-through.

Search and Display Hierarchy in Generic Search Application

Screenshot of an example in a generic search application.

The figure explains, that the generic application USMD_SEARCH can also be used to search and display hierarchies with UI configuration USMD_SEARCH_02.

Hierarchy Properties

Screenshot of synchronization properties - synchronized (cross-name) and unsynchronized (not cross- name). The following Hierarchy Property settings are possible: Not a hierarchy, synchronized and versioned, synchronized and not versioned, unsynchronized and versioned, and unsynchronized and not versioned.

The figure explains which Hierarchy Property settings are possible: Not a hierarchy, synchronized and versioned, synchronized and not versioned, unsynchronized and versioned, and unsynchronized and not versioned.

Screenshot of versioning properties: version dependent, not version dependent, no hierarchy.

Hierarchy Type Examples

Screenshot of hierarchy type examples. In SAP MDG out-of-the-box content, we have delivered several hierarchies with different hierarchy types: Not Version-Dependent/Synchronized, Not Version-Dependent/Not Synchronized, and Version-Dependent/Not Synchronized.

The figure provides an overview of the out-of-the-box content of delivered hierarchies.

Hierarchy Configuration Example: Cost Center

Screenshot of a hierarchy configuration example: Cost Center.

The figure explains the hierarchy configuration for a Cost Center.

Hierarchy Interlocking

Screenshot of hierarchy interlocking. Information about the setting is provided in the following text.

The figure explains the two interlocking mechanism: strict interlocking, which is the default and loose interlocking.

The setting can be found in IMG: Tx: MDGIMG→Master Data Governance→Classic Mode in SAP MDG→Central Governance→General Settings→Process Modeling→Hierarchies→Define Scope for Changes.

Interlocked: You must use the pending change request to add, delete, move, or change the attributes of this node.

Not Interlocked: You can add, delete, move, or change the attributes of this node in a separate change request.

The figure explains the of hierarchy validity. This is displayed by a new column Next Change. You can choose the date link to move to the next version of the hierarchy.

The figure explains the hierarchy validity which is displayed by a new column Next Change. Use the data link to move to the next version of the hierarchy.

The graphic gives an overview of the MDG Hierarchy Setup: download, upload, and working and replication hierarchy.

The graphic gives an overview of the MDG Hierarchy Setup: download, upload, and working and replication hierarchy.

Screenshot of downloadable financial hierarchies from SAP backend systems.

This figure describes the process of downloading financial hierarchies from SAP backend systems using two specific reports. The goal is to extract this data for use in SAP Master Data Governance for Financials (MDG-F)

Report KBAS_MDGF_SET_DOWNLOAD is used to download set based hierarchies:

  • Cost Center Group Hierarchy
  • Profit Center Group Hierarchy
  • Cost Element Group Hierarchy

Report FBS_MDGF_FRS_DOWNLOAD is used to download the Financial Reporting Structure (Financial Statement Version).

Users run these reports within the SAP ERP system.

The reports extract the specified hierarchy data (both the structure and attributes) and save it into files.

The data is automatically converted into the MDG-F format, which allows it to be easily uploaded into the SAP MDG system.

Screenshot of the first part in uploading hierarchy into MDG. Variant is supported to save all selection and setting for reuse. You can choose Conversion and Upload Mode.
Screenshot of the second part in uploading hierarchy into MDG. Create change request on ad-hoc basis, simplify the change request view, upload master data first and hierarchy second, select a valid start date when compatible, and all checks are executed before it's uploaded into a change request.

Facts about replicating MDG Hierarchies:

Export generated MDG Hierarchy Data Source to BW

Support for analytical reporting by a simplified generation of model-specific Data Sources for master data and hierarchy.

Replication of domain hierarchy to ERP or SAP S/4 HANA

All MDG-Financial hierarchies can be replicated to ERP and S/4HANA using SOA or IDoc.

For example: Financial Reporting Structure (Financial Statement Version) and Cost Center/Profit Center/Cost Element Group Hierarchy.

Export to File

You can export hierarchies (for example, the Business Partner hierarchy) in .CSV format.

MDG Hierarchies

Screenshot of the first part in MDG Financial Hierarchies. Hierarchy processing is delivered for: cost center group hierarchy, profit center group hierarchy, cost element group hierarchy, financial reporting structure, financial consolidation group, and item hierarchy. All features from the framework are available.

Screenshot of the first part in MDG Financial Hierarchies. Hierarchy processing is delivered for: cost center group hierarchy, profit center group hierarchy, cost element group hierarchy, financial reporting structure, financial consolidation group, and item hierarchy. All features from the framework are available.

Screenshot of the second part in MDG Financial Hierarchies. In addition to ERP and SAP S/4HANA functions, MDG can also provide an overview of all assignment in all hierarchies and display and maintenance of alternative hierarchies in the master data screen.

Screenshot of the second part in MDG Financial Hierarchies. In addition to ERP and SAP S/4HANA functions, MDG can also provide an overview of all assignment in all hierarchies and display and maintenance of alternative hierarchies in the master data screen.

Screenshot of the key features of MDG-BP/Customer/Supplier Hierarchy. These are BP and Structure nodes can be maintained in parallel/multiple MDG BP hierarchies. BP Hierarchy assignment can be maintained in BP Object UI under the same governance process. BP Hierarchy can be configured as loose interlocking to enable parallel processing of same hierarchy. User friendly Processing UI to maintain BP Hierarchy with integrated Change Request Process. BP Hierarchy can be downloaded into a .CSV file.

The above figure shows screenshots of the key features of MDG-BP/Customer/Supplier Hierarchy. These are BP and Structure nodes can be maintained in parallel/multiple MDG BP hierarchies. BP Hierarchy assignment can be maintained in BP Object UI under the same governance process. BP Hierarchy can be configured as loose interlocking to enable parallel processing of same hierarchy. User friendly Processing UI to maintain BP Hierarchy with integrated Change Request Process. BP Hierarchy can be downloaded into a .CSV file.

Screenshot of the key features and data modeling of MDG-M Product Hierarchy. The key features are the Product Hierarchy is presented in a tree view for product assignment and can be replicated to ERP or SAP S/4HANA using IDoc. In Data Modeling, the MDG-M Product Hierarchy is an attribute of the MM data model and not modeled like the other domains. Optionally, you can govern the Product Hierarchy using reference data.

The screenshot shows the key features and data modeling of MDG-M Product Hierarchy. The key features are the Product Hierarchy is presented in a tree view for product assignment and can be replicated to ERP or SAP S/4HANA using IDoc. In Data Modeling, the MDG-M Product Hierarchy is an attribute of the MM data model and not modeled like the other domains. Optionally, you can govern the Product Hierarchy using reference data.

The graphic shows reporting on airline groups as a use case example. Airlines are under central governance in a flat list, implemented as a flex model, and reporting of bookings per airline are possible. The requirement is to extend reporting on airline groups. Consideration is needed for ownership and airline alliances. The solution is to create an airline hierarchy by arranging airlines in hierarchies, based on ownership or cooperation and introducing airline alliances as additional grouping element in hierarchy.

The graphic shows reporting on airline groups as a use case example. Airlines are under central governance in a flat list, implemented as a flex model, and reporting of bookings per airline are possible. The requirement is to extend reporting on airline groups. Consideration is needed for ownership and airline alliances. The solution is to create an airline hierarchy by arranging airlines in hierarchies, based on ownership or cooperation and introducing airline alliances as additional grouping element in hierarchy.

The graphic shows the implementation of the example use case through data modeling, UI modeling, process modeling, and activating data sources for analytical scenarios.

The graphic shows the implementation of the example use case through data modeling, UI modeling, process modeling, and activating data sources for analytical scenarios.

Data Modeling–Decide on Hierarchy Type

Screenshot of an existing data model and hierarchy types. Information is provided in the next paragraph.

Further facts on Data Modeling–Decide on Hierarchy Type:

  • Requirements for the hierarchy:

    • Airline (CARRX), is the basic element that you want to arrange in a hierarchy
    • Alliance (ALLIANCE) as additional grouping element
    • Note: Decision to use CARRX as the hierarchy type
  • Note: The generation of BW data sources requires that an OTC is assigned to the entity type.

To perform changes in the data model:

  1. Create entity type CARRXH to provide the name of the hierarchy(you can have multiple hierarchies of the type CARRX).
  2. Create entity type ALLIANCE.
  3. Enable CARRX as hierarchy type.
  4. Include CARRX and ALLIANCE as possible nodes in hierarchy.
  5. Choose CARRXH as entity type for hierarchy name.

Create Entity Type

Screenshot of how to create the Entity Type CARRXH.
Screenshot of how to create the Entity Type ALLIANCE.

Enable CARRX as Hierarchy Type

Screenshot of how to enable CARRX as the Hierarchy Type. Set the property Is Hierarchy Type to Yes and choose whether it is version-dependent and/or synchronized. Hierarchies can be edition-dependent, but all entity types used as nodes, must then be edition-dependent too.
Screenshot of how to enable possible entity types as nodes. Include CARRX and ALLIANCE as possible nodes in hierarchy, choose CARRXH as entity type for hierarchy name, and also enable ranges on end notes (leaves in the hierarchy) to auto-assign entities with an ID in this range.
Screenshot of the attributes on the node-level. List of attributes that are available for each node of this type. Attributes of entity type: each entity has a set of attributes with values. Attributes on node-level: each assignment of an entity as a node has its own set of attributes with values. Example:When assigning an airline to the hierarchy, three attributes are available for each assignment of the airline to the hierarchy.

Structure Generation

Screenshot of multiple structures and automatic structure generation. Multiple structures are used for various purposes. Depending on the properties of the entity type, there are ten different purposes. If the namespaces and package for generated structures are entered for the data model, all required structures are automatically generated with default names after the model activation.
Screenshot of the data model-specific structures. A list of structures in the data model view appear with an overview of generated structures and chosen names.
Screenshot of advanced structure generation. Names, namespaces, and packages for generated structure can still be adjusted in the IMG activity. Generation can be triggered from this view, independently of the data model activation. You can set user profile parameter MDG_FORCE_STRUCT_GEN to X to force the regeneration of all structures.

UI Modeling

Screenshot of the airline hierarchy assignments in single-object processing.

UI Modeling–Facts about GenIL Components:

  • Are the basis for configuring UIs with FPM that are based on the generic BOL/GenIL MDG UI framework
  • Are automatically created for data models in customer namespace (ID starts with X, Y, or Z) after the activation of the data model
  • Component ZSP_<DM> for single-object processing
  • Component ZMP_<DM> for multirecord processing
  • Component ZHP_<DM> for hierarchies in single-object processing UIs
  • Tip: Use TA genil_model_browser to examine the components

For details and in particular when using a data model in SAP or partner namespace: see documentation Creating genIL Components and Transaction Handler Manually on help.sap.com.

To configure Master Data Governance for Custom Objects, see UI Modeling→Creating User Interfaces for Single Object Processing.

Screenshot of the automatically created GenILcomponentZSP_<DM> used in OVP and UIBB configurations.
Screenshot of the automatically created GenILcomponentZSP_<DM> used in the configuration of UIBB for hierarchy assignments.
Screenshot of the automatically created GenILcomponentZSP_<DM> used in the configuration of Multirecord Processing UI not required for hierarchy processing listed here for completeness.

Add Hierarchy Assignment List

Steps to add a hierarchy assignment list to a single-object processing UI:

  1. Create a configuration for a list UIBB (FPM_LIST_UIBB_ATS).
  2. Choose columns and actions.
  3. Add hierarchy assignment list to overview page (OVP).
The graphic shows the steps of how to create a configuration for a list UIBB.
Screenshot of the first action: add columns for a base configuration.
Screenshot of the second action: add at least the HRY_ASSIGN row action. This action will show the details of the assignment and allows you to select the position for new assignments.
Screenshot of the third action: add at least the _CREA_ event as a button to the toolbar, so that the new assignment can be created.
Screenshot of the first step to adding a hierarchy assignment list to the overview page: add the list to the OVP configuration.

In the first step of adding a hierarchy assignment list to the overview page, add the list to the OVP configuration.

Screenshot of the second step to adding a hierarchy assignment list to the overview page: create a wire to the list from the UIBB that displays the main entity type. Use Hras<Entity Type>2<Hierarchy Type>Rel as the relation name. Replace <Hierarchy Type> with the hierarchy type for which you want the assignments of the entities specified with <Entity Type> to be processed. Hras stands for hierarchy assignments.

Second step to adding a hierarchy assignment list to the overview page: create a wire to the list from the UIBB that displays the main entity type. Use Hras<Entity Type>2<Hierarchy Type>Rel as the relation name. Replace <Hierarchy Type> with the hierarchy type for which you want the assignments of the entities specified with <Entity Type> to be processed. Hras stands for hierarchy assignments.

Screenshot of the third step to adding a hierarchy assignment list to the overview page: add at least the FPM__LOCAL_EDIT event as a button to the toolbar, so that the list can be switched into edit mode.

In the third step of adding a hierarchy assignment list to the overview page: add at least the FPM__LOCAL_EDIT event as a button to the toolbar, so that the list can be switched into edit mode.

Search in Hierarchy

Screenshot of the search in hierarchy. The generic configuration USMD_SEARCH_02 of the search application has been extended. The search offers the possibility for hierarchy search and display, if started for an object that is configured as a node of a hierarchy type (parameter USMD_OTC).

The generic configuration USMD_SEARCH_02 of the search application has been extended. The search offers the possibility for hierarchy search and display, if started for an object that is configured as a node of a hierarchy type (parameter USMD_OTC).

Hierarchy Processing

Screenshot of hierarchy processing. Add Web Dynpro application USMD_ENTITY with parameters DISPLAY_TYPE=HIERARCHY and PROCESS=<BizAct> to the role menu to offer hierarchy processing to the users. Replace <BizAct> with a business activity that links to a change request type with a scope that included the entity types of the hierarchy type to be processed.

Add Web Dynpro application USMD_ENTITY with parameters DISPLAY_TYPE=HIERARCHY and PROCESS=<BizAct> to the role menu to offer hierarchy processing to the users. Replace <BizAct> with a business activity that links to a change request type with a scope that included the entity types of the hierarchy type to be processed.

Process Modeling

Screenshot of process modeling. Change request types that should be used to process hierarchy assignments in single-object processing must include all entity types that can be nodes in the hierarchy type to be processed, including the entity type for the hierarchy name. In the following examples, the change request types/business activities ZXZ1 and ZXZ2 are to be used in single-object processing, and ZXZ3 for hierarchy processing.

Change request types that should be used to process hierarchy assignments in single-object processing must include all entity types that can be nodes in the hierarchy type to be processed, including the entity type for the hierarchy name. In the following examples, the change request types/business activities ZXZ1 and ZXZ2 are to be used in single-object processing, and ZXZ3 for hierarchy processing.

Screenshot of process modeling. There can be multiple change requests that affect a hierarchy. Furthermore, hierarchy assignments can be processed with parallel change requests. The interlocking rules for the hierarchy type determine what can be processed in parallel.

There can be multiple change requests that affects a hierarchy. Furthermore, hierarchy assignments can be processed with parallel change requests. The interlocking rules for the hierarchy type determine what can be processed in parallel.