Material Creation With Product Hierarchy
Material Creation With Product Hierarchy
In this document, I will share how to map product grouping ( Brand-Category- Sub category level
wise) in material master
Introduction:
A product hierarchy is used in the SD area for analysis and price determination. The Prod.hierarchy
field is an alphanumeric character string that groups together materials by combining different
characteristics. In a standard SAP system, the product hierarchy can have up to three levels. Levels 1
and 2 have five characters each, and level 3 has eight. The product hierarchy is defined using
Transaction V/76 (SPRO).
Refer below link also one of our friends shared product hierarchy blogs it also helpful……
https://blogs.sap.com/2017/08/29/product-master-hierarchy/
https://blogs.sap.com/2019/11/19/introduction-to-product-hierarchy-in-sap-s-4hana-cloud/
https://blogs.sap.com/2019/11/19/setting-up-using-the-product-hierarchy-functionality-in-sap-s-
4hana-cloud-1911/
1|P a g e
Mickaël QUESNOT https://www.linkedin.com/in/mickaelquesnot/
2|P a g e
Mickaël QUESNOT https://www.linkedin.com/in/mickaelquesnot/
3|P a g e
IMG → Logistics – General → Material Master → Setting for Key
Fields → Data Relevant to Sales and Distribution → Define
Product Hierarchies
In this step, you define product hierarchies which you can use for statistical analysis or pricing, for example,
or you can change their structure. The product hierarchy groups materials by combining different
characteristics. Each characteristic is represented by a specific product hierarchy level.
Example
4|P a g e
Standard settings
In the standard system, the product hierarchy consists of up to 3 levels. The first and second levels have 5
digits and the third level has 8. The maximum number of digits is 18 and the maximum number of levels is
9.
You can define hierarchy nodes at the individual levels of the product hierarchy.
From the initial screen you can branch to the following steps:
In the Data Dictionary, you can change the structure of the product hierarchy (e.g. the number of
levels).
• Data entry/display
Here you define the display of the product hierarchy and the format of the accompanying text.
• Product hierarchy
Here you make fields of the product hierarchy structure available for use in pricing.
Here you make fields of the product hierarchy structure available for use in the Logistics
Information System.
The product hierarchy can be structured via DDIC structure PRODHS. In the standard system, a product
hierarchy can be created with up to three levels. The individual levels can contain the following number of
digits:
15
25
38
This can be changed as of Release 3.0, where it is possible to extend the maximum number of levels to 9.
5|P a g e
If you want to change the standard setting of PRODHS, e.g. you want to change the number of levels,
proceed as follows:
1. Create an appropriate domain in the Data Dictionary (type CHAR with the required length).
2. Assign these domains to the standard data elements PRODH1, PRODH2, ..., PRODH9.
Please note that you should use these standard data elements.
3. Change the structure PRODHS by creating or deleting fields with reference to the data elements.
Choose ZZPRODHN as field name, where n is the position of the field in the structure PRODHS.
Example
You want to change the structure of the product hierarchy from 5/5/8 digits to 5/5/5/3. Proceed as follows:
Note
The structure PRODHS and the data elements PRODH1, ..., PRODH9 are only provided by SAP with
Release 3.0 and can be changed by the customer from this point onwards.
The product hierarchy can be assigned to a conversion routine. The name of the conversion routine is
PRODH. The output template can be defined in Customizing (see below).
The separators used in the template are not allowed for maintaining the product hierarchy nodes.
Mickaël QUESNOT https://www.linkedin.com/in/mickaelquesnot/
6|P a g e
Example:
The symbol "/" cannot be used when maintaining the product hierarchy nodes. In this case, the following
entry would not be allowed: 123456/79012345678
Text concatenation
Proceed as follows:
The text concatenation is valid for the entire product hierarchy, the concatenated text has a length of 20.
Text concatenation can be activated/deactivated in Customizing (see below).
Note
Make sure during text concatenation that the text of the product hierarchy does not come from table T179T.
In this case function module RV_PRODUKTHIERARCHIE_TEXT_GET is available.
If you have stored a template for the conversion routine, the separators in the template are not allowed.
You can make two settings regarding the layout of the product hierarchy and the format of the product
hierarchy text:
1. Enter a template for displaying the product hierarchy. This template defines the length of the
individual levels and the separators.
Note that the character used to separate the levels in the template cannot be used in the product
hierarchy nodes.
2. The description of a product hierarchy node can be determined by concatenation if required.
If you activate text concatenation, the text for one level is added to the description of the higher
level and then output. The text of the first level appears at the beginning followed by the text of the
second and third levels. Text concatenation applies to the complete product hierarchy. The
concatenated text can have a maximum of 20 characters.
Do not activate text concatenation if you only want to issue the description of the hierarchy levels
created for these levels when the product hierarchy was defined.
The product hierarchy can be freely defined and include up to three levels. The SAP System checks the
entry in the field product hierarchy during master data maintenance and copies it to the SD document. The
separators used in the template cannot be used in the product hierarchy.
7|P a g e
Note
Via a matchcode you can search specifically for material master records with a product hierarchy.
Analyze the product hierarchies in your organization and define their representation in the SAP System.
1. Assign a characteristic value to the individual levels of your product hierarchy: a 5-character
value to levels 1 and 2, and an 8-character value to level 3. The level number is determined
automatically.
A product hierarchy node encompasses a characteristic value of a maximum of 18 characters.
2. Enter a description for the product hierarchy.
The product hierarchy can be used for functions in pricing. Then the fields of the product hierarchy structure
must be entered into the field catalog for pricing.
The product hierarchy can be used for statistical analyses in the Logistics Information System. The fields of
the product hierarchy structure must then be entered in a field catalog for the Logistics Information System.
Enter the product hierarchy in a field catalog. You can refer to field catalog 'VPHI', which displays the
standard settings.
8|P a g e
Mickaël QUESNOT https://www.linkedin.com/in/mickaelquesnot/
9|P a g e
Based on the requirement create Product hierarchy structure
Structure:
Now create Level 1 – Its brand here enter hierarchy code and description
XXXXX – Brand
10 | P a g e
AGR Emballages EMA Emballages
AGR Emballages EMA Emballages
AGR Emballages EMA Emballages
AGR Emballages EMA Emballages
AGR Emballages EMA Emballages
AGR Emballages EMA Emballages
AGR ACHATS AGRICOLE ENG Engrais
AGR ACHATS AGRICOLE PHY Produits Phytosanitaires
AGR ACHATS AGRICOLE PRA Sous-traitance agricole
AGR ACHATS AGRICOLE PRA Sous-traitance agricole
AGR ACHATS AGRICOLE PRA Sous-traitance agricole
11 | P a g e
Now create Level 2 – Its Category here enter hierarchy code and description
YYYYY – Category
12 | P a g e
Now create Level 3 – Its Sub-Category here enter hierarchy code and description
ZZZZZ – Sub-Category
13 | P a g e
We created product hierarchy master.
14 | P a g e
Mickaël QUESNOT https://www.linkedin.com/in/mickaelquesnot/
15 | P a g e
Now specify product hierarchies code to Material Master Data
Now go to the material master basic data 1 view and select product hierarchy field now it shows
brand
16 | P a g e
If you want 1st level then choose only one level
17 | P a g e
If you want 2nd level then choose
18 | P a g e
Here select level 3 Sub – Category
19 | P a g e
Conclusion:
I believe, It will be helpful and will provide sufficient information to the readers
20 | P a g e
Thanks & Regards
21 | P a g e