cancel
Showing results for 
Search instead for 
Did you mean: 

Product Hierarchy replication from ECC to SRM

Former Member
0 Kudos

Dear Experts,

We are on ECC 6Ehp4 and SRM 7.0 Ehp2, please let me know how we can replicate the product hierarchy from ECC to SRM.

In ECC we have 3 levels of hierachy maintained for material groups and we wanted to replicate the same to SRM.

Thanks and Regards,

Jay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jay,

Please go through the belwo information whichy may fulfill your requirement

The BADI BBP_PRODCAT_HIER can be used to set up the categories in parent / child relationships.  It takes a category as input, and you set the GUID of its parent in the parent_guid output field.

This BADI is called during the initial replication of material groups from R3. It is only called when a material group is new (or maybe changed) - the point being that if you have already loaded your categories from material groups in R3 you will need to delete them and start again.  You can use COM_HIERARCHY_DELETE_SINGLE to delete the already loaded categories and start again.

You need to load the material groups in hierarchy node order - meaning you will need to do multiple loads, one for each level of the hierarchy, starting with the highest level, then the second level, and so on until you've loaded all the children.  As in real life, the parents must exist before the children.

To do this you need ensure that you dont bring across all the material groups from R3 in the first run - you need to ensure you only bring across those material groups that are the first level of your hierarchy.  To do this, you can use the filter function in R3AC3: set a filter on the T023 and T023T tables, so that you only load those material groups you want to bring across on each run.

For UNSPSC therefore 4 runs are needed, the first with filter MATKL CP '000000', then the second run with filter MATKL CP '0000', then MATKL CP '*00' then everything.

To enable use of product category hierarchies in the SRM system, you must set the appropriate indicator in the Implementation Guide
(IMG) activity in the IMG for Supplier Relationship Management: SRM
Server 
  Cross-Application Basic
Settings 

Activate Hierarchies for Product Categories, Vendors, and Contracts.

Also, look at the below note:

SAP Note 831808

Regards,
Govardhan