In this weblog I am covering the remaining steps of my last published Extend the Material Master BDOC-Part 1. This weblog will focus on configuration needs to be done in CRM for triggering the CRM middleware download of data. In order to populate these fields in CRM there are a number of development objects which are needed in CRM:
Every additional field from the Material Master in ECC must be created as an Attribute in CRM. Use transaction COMM_ATTRSET to create the Attributes for all those fields:
Set Types must be created to handle all of the Attributes created. Set types can only handle 22 Attributes. Create multiple Set Types if needed to handle all of the Attributes. Use transaction COMM_ATTRSET to create the Attributes for the following Set Types: ZPROD_XPORT
This will be the ZZxxxx fields on the BDOC:
ZMARA_BRGEW - Gross weight - ZZ0011NOTE:If you make changes to the Set Type, then there is a possibility that the field mappings in BADI PRODUCT_CUSTOMER2, method MAP_R3_TO_CRM_MATERIAL on the CRM side will have to be changed. Please check the mappings after a set type change to ensure they are still correct.
Extend the complex data structure of the product master in CRM with the set type ZPORD_XPORT and thus enable download from ECC into the CRM database.
Assign all of the Attributes to the Set Types created. Assign each Set Type to the Hierarchy Category MAT_HALB using transaction COMM_HIERARCHY.
If you defined custom fields in ECC you need to create additional structure tables called in CRM. These tables will match the same table names in ECC. The tables should have the same field lengths as the table-fields in R/3.
The BADI PRODUCT_CUSTOMER2, method MAP_R3_TO_CRM_MATERIAL will have all of the code changes needed to map the additional fields to the Set Types in CRM. Use transaction SE18. An Implementation will be created called Z_PRODUCT_EXT (Used to populate extended product data). We will need to add the Category MAT_HALB to the Product Master. The Category MAT_HALB has all of the Set Types assigned to it which will map all of the custom fields from ECC into the Product Master in CRM.