Skip to Content
Author's profile photo Ashok Mohan

Custom Level in Product Hierarchy

By default, SAP has 3 level product hierarchy. Sometimes, we need more than 3 levels of hierarchy. So, we must edit the standard hierarchy.

Below are the steps. The names and values may vary accordingly. Here, our business needs 6 level product hierarchy namely 1, 3, 3, 3, 2, 3 characters respectively. Maximum characters you can use is 18. So, at last, You may make necessary changes in the steps I describe according to the custom level you need. Since this is a modification operation, you need access key. Please contact your basis administrator.


The maximum allowed size for product hierarchy level is 18 characters. So, modify the include structure PRODHS so that the custom level must fit into 18 characters. Currently PRODHS contain 3 fields namely PRODH1 (CHAR 5), PRODH2 (CHAR 5) and PRODH3 (CHAR 8). After modification, the components of the PRODHS structure will be PRODH1 (CHAR 1), PRODH2 (CHAR 3), PRODH3 (CHAR 3), ZPRODH4 (CHAR 3), ZPRODH5 (CHAR 2), ZPRODH6 (CHAR 3), ZPRODH7 (CHAR 3).

Steps Involved

  1. Modify the include structure PRODHS.
  2. Edit the size of standard fields in the include structure.
  3. Add custom fields in the include structure.
  4. Save and activate the include structure.

Modify the structure PRODHS

The structure PRODHS include structure is specified in PRODH structure.


The components PRODH1, PRODH2, PRODH3 are of type CHAR and length 5, 5 and 8 respectively. Edit the size of the above fields according to the requirement specified.

Edit the size of standard components

For PRODH1 domain, change the size to 1.


Similarly, change the size of PRODH2 and PRODH3 to size 3 type CHAR.



Create additional elements in the structure PHODHS namely PRODH4, PRODH5, PRODH6, PRODH7 and manage the size accordingly to the requirement.





The structure PRODHS after the modification is


The 7th level here is the remaining 3 characters out of the 18 characters. You can use the group of leave as it is.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Andrés Galeano
      Andrés Galeano

      The procedure is described in NOTE 1070939 - Consulting: Changing the product hierarchy structure PRODHS

      Author's profile photo balakrishna t
      balakrishna t

      Thanks for the blog .. Modifying the PRODHS structure like modifying the domain of the standard data element how will it impact the where used as its been used at many standard programs and function modules