How to Update SAP Product Hierarchy Category on SAP CRM with full ABAP Code

How to Update Product Hierarchy & ?Category on SAP CRM will guide through updating ( Creation, Updating and Deletion ) of SAP CRM Product Category using ABAP Code.?

SAP CRM Product Hierarchy and Category

In this section, the technical information of the SAP CRM Hierarchy and SAP CRM Category is explained.

For SAP CRM Hierarchy, the main SAP CRM Table is 😕COMM_HIERARCHY for?Hierarchy and the main fields are:

  • HIERARCHY_GUID: Category Hierarchy GUID
  • HIERARCHY_ID ? ? ?:?Category Hierarchy ID

For SAP CRM Category, the main Table is COMM_CATEGORY for?Category and the main fields are:

  • CATEGORY_GUID ? ? ?:?Category GUID
  • CATEGORY_ID ? ? ? ? ? ?: Category ID
  • HIERARCHY_GUID ?:?Category Hierarchy GUID
  • PARENT_GUID ? ? ? ? ?: Parent Category GUID.

The First step is retrieve the corresponding guids for CATEGORY_ID and HIERARCHY_ID.

SAP CRM Product Category and Hierarchy BAPI

The Two main BAPI to use when dealing with Updation Product Category are:

    • Read All the Product Categories for a SAP CRM Product
    • Update the Product Categories of CRM Product.


Update SAP CRM Product Category ABAP Snippet

This ABAP Code will handle the job to assign SAP CRM Product Categories to a SAP CRM Product.
You can handle the deletion and updation with the flag of?ls_set_maintainupdate_type ( D for Deletion and U for Update ).


Check more detail about?Assign Product Categories to Products

SAP and SAP logo are registered trademarks of SAP AG. is not associated with SAP AG.
We have made every effort to make sure provide relevant search results, use the content on this site at your own risk.

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to and affiliated sites.