Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert
This blog post is valid for SAP S/4HANA On Premise and Private Cloud Customers only.

Hierarchies in SAP S/4 HANA are an argument frequently debated and some blog posts have already been written.

Here I would like to use this blog post to reply to questions coming from Controlling Business Users and Process Owners on how to reproduce, synchronize and use Set Controlling Hierarchies (Cost Centers, Profit Centers, Internal Orders Activity Types, Statistical Key Figures) in SAP Fiori for SAP S/4HANA.

SAP S/4HANA Master Data Hierarchies are manageable in two different ways:

  1. Some Customers would like to create (and import) their Hierarchies in SAP Fiori for SAP S/4HANA and to manage them only there. These Customers use only SAP Fiori for SAP S/4HANA for their reporting.

  2. Some other Customers would like to manage Hierarchies in SAPGUI and in SAP Fiori for SAP S/4HANA and keep them aligned. These customers usually have different motivations, and it is not the subject of this post to clarify them.

No matter what kind of category of SAP S/4HANA Customers you belong to (or you are involved to),  I strongly suggest to study and experiment new Hierarchies functionalities in SAP Fiori for SAP S/4HANA.

Manage Global Hierarchy and Manage Flexible Hierarchies tiles are there for you to learn. Flexible hierarchies functionalities are explained with videos in this help.

Personal Opinion: I think SAP covered in SAP S/4HANA most of the ECC customers requirements about Hierarchies, among others:

  • Integration of Spreadsheets Import and Export.

  • Creation of Hierarchies from standard and Custom Master data fields. e.g creating Cost Center Hierarchy by standard Field Responsible Person or Profit Center Hierarchy by custom Field Market.

  • Automatic Generation of Hierarchies when master fields are changed.

  • Relevancy by date.

As said, if you are interested in these apps, many different blog posts have already been written, some examples:





Instead, if you are among customers of "category 2" and you want to continue to create and use your Set hierarchies in SAPGUI while having these hierarchies synchronized in SAP Fiori for SAP S/4HANA, please go ahead in reading this blog post.

Please have a look to the example I have created  without using the mentioned Global and Flexible Hierarchies Fiori Apps.

I have started with a simple creation of a Cost Center Group (please be aware that for the peculiar context of this blog post, I used SAPGUI but these functionalities are available in SAP Fiori for SAP S/4HANA as well).

Change Cost Center Group

Then I used Transaction Code HRY_REPRELEV (Set Report Relevancy for Set Based Hierarchies) to transform the Set as "report relevant" and automatically replicable.

Please be aware this Transaction Code and the next one are available in this customizing path too

Customizing Path

Set Report Relevancy for Set based Hierarchies

Set Report Relevancy for Set based Hierarchies


This Functionality is available for the following financial hierarchies:

0101      Cost Center Group

0102      Cost Element Group

0103      Order Group

0104      Statistical Key Figure Group

0105      Activity Type Group

0106      Profit Center Group

0109      Account Group

0110      WBS Element Group

As you can see in this example I used Cost Center Groups Set (0101).

Even if in SAP S/4HANA (due to the unification of concept of Cost Elements and General Ledger Accounts) some sets (e.g 0102) may not make much sense anymore, I believe the example can be extended to other set classes (e.g. Profit Centers Groups)

Then I used HRRP_REP tcode to replicate the set (please be aware I used this transaction only after the Set Creation and not every time the set changes).

Manually Replicate Runtime Hierarchy


Please be aware that both functionalities have also corresponding Fiori Tiles.

APP ID (valid as of SAP S/4HANA 2021):


After this step I can use the SET in SAP Fiori for SAP S/4HANA.

Profit Centers Actuals


Please find further documentation here.

Please be aware that for some specific master data (Cost Centers, Profit Centers and Accounts) SAP has released a specific OSS note on how to synchronize Set Hierarchies with the Global Hierarchies app.

This is my experience with Set Hierarchies in SAP Fiori for SAP S/4HANA;  if you have had different experiences and want to share them, please write them down in the comments section.

Brought to you by the SAP S/4HANA RIG

Gianluca Taccone

Product Expert SAP S/4HANA Regional Implementation Group