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: 
0 Kudos


In SAP ERP the media product hierarchy is shipped as part of the Media business function set (“IS-Media”) and does not provide any flexibility regarding the number of hierarchy levels.

In SAP S/4HANA the media product hierarchy can be configured based on the generic concept for the Classification Based Product Hierarchy. This allows you to define the number of hierarchy levels and in addition provides the possibility to define more than one hierarchy type – if required.

In this concept the hierarchy level is defined by the class assigned to the product master and the product number of the parent product is stored in a characteristic which is assigned to the class. This requires that during the configuration phase you define in an IMG activity the class and characteristic used for each of the hierarchy levels.

In this blog you will see, as an example, how to define a hierarchy type with three levels similar to the media product hierarchy in SAP ERP. In the table below you will see the required classes and characteristics and how they are assigned to the hierarchy levels:

Hierarchy Level Class Characteristic


There are 3 steps involved in the configuration of a hierachy type:

  1. Create Characteristics
    Create characteristics for the product number of the parent product

  2. Create Classes
    Create a class for each hierarchy level and assign the characteristic

  3. Configure Hierarchy Type
    Define the hierachy type and assign the classes and characteristics to the hierarchy levels

Step 1: Create Characteristics

In a first step, you create the required characteristics MEDIAPRODUCTFAMILY and MEDIAPRODUCT.

  1. Call transaction CT04, enter the name of the characteristic (MEDIAPRODUCTFAMILY or MEDIAPRODUCT) and click on Create.

  2. On tab Basic data enter the description for the characteristic, Character Format as Data Type and 40 as Number of chars. Do not select the Case Sensitive flag.
    Hint: If your S/4HANA system is in compatibility mode (see SAP note 2232396), you are not allowed to create characteristics with more than 30 characters. In this case you can use 18 characters, since the material number will be limited to 18 characters.

  3. On tab Values click on Other Value Check, select Function Module and enter Function HPC_CHARACT_CHECK.

  4. Save the characteristic.

Step 2: Create Classes

Next, you need to create three classes, one per hierarchy level.

  1. Call transaction CL02, enter the name of the class (MEDIA_PR_FAMILY, MEDIA_PRODUCT or MEDIA_ISSUE), class type 001 and click on Create.

  2. On tab Basic data enter the description for the class.

  3. On tab Char. enter the characteristic MEDIAPRODUCTFAMILY for class MEDIA_PRODUCT and the characteristic MEDIAPRODUCT for class MEDIA_ISSUE. For class MEDIA_PR_FAMILY you do not enter any characteristic.

  4. Save the class.

Step 3: Configure Hierarchy Type

You will now use these classes and characteristics to define the hierarchy type for the media product hierarchy.

  1. Go to IMG activity Define Product Master Hierarchy Type (Logistics – General → Material Master → Product Master Hierarchy → Define Product Master Hierarchy Type)

  2. Click on New Entries. Enter a key for the Hierarchy Type, for example  ZMPM, enter Media Product Hierarchy as the description in the second column, select Classification as the Technology and enter 194 as the BO Type.

  3. Click on New Entries.

  4. Enter for each hierarchy level the level, class and characteristic (see table above). Enter class type 001 for all entries.

  5. Save your settings.


After you have finalized these configuration steps you can create a media product hierarchy using the Product Master app.

To create the root node of a hierarchy (media product family) you have to assign the class manually or use a specific product type as explained in Create Product Types for each Hierarchy Level.