Ansicht
Dokumentation

CRM_TM_MD_NOTIF_PROD - BAdI: Implement Business Logic for Changes in Product Data

CRM_TM_MD_NOTIF_PROD - BAdI: Implement Business Logic for Changes in Product Data

BAL Application Log Documentation   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this Business Add-In (BAdI) in specific business cases to track changes in the master data of the Products application and update the product-territory relationship when you define additional attributes to assign products to territories, apart from the standard SAP-delivered attributes.

It contains BAdI interface IF_EX_CRM_TM_MASTER_NOTIFY_PR, and the interface contains the following methods:

  • IS_PROD_ATTRIBUTE

This method checks if additional territory attributes have been defined for the Products application. The details of the additional attributes are passed as parameters to this method.

For example, if ZPRD_SUBGROUP is the additional attribute, implementation of this method will check if this attribute is defined for the Products application. The value of the return parameter is set to either 'true' or 'false.'

  • GET_ATTRIBUTE_VALUE

This method is invoked to get the value of the field to which an additional attribute has been mapped. The globally unique identifier (GUID) of the product and information about the additional attribute are passed as parameters to this method. The value of the return parameter specifies the value of the field to which the additional attribute has been mapped.

For example, if ZPRD_SUBGROUP is the name of the additional attribute and it is mapped to the field Sub-Group of the Products application, implementation of this method returns the sub-group of the product identified using the import parameter, IV_PROD_GUID.

  • GET_SETTYPE_ATTRIB_INFO

This method is used to get details of the set-type ID and the attribute ID for the additional attributes if they are not found in the Reference Table and Reference Field. It is not required to implement this method if correct values are maintained in the Reference Table and Reference Field.

The details that you maintain in the IMG activity Maintain Territory Attributes are passed as inputs to this method. Each additional attribute defined for the Products application corresponds to an attribute or a set-type. This method finds the ID of the set-type and of the attribute associated with the additional attribute passed as argument.

For example, ZPROD_GROUP is an additional attribute you defined for Product Group, and the set-type for Product Group is COMM_PR_MAT and the attribute is CRMT_ITEM_CAT_GROUP. Implementation of this method will return the set-type ID of COMM_PR_MAT and the attribute ID of CRMT_ITEM_CAT_GROUP, if the additional attribute ZPROD_GROUP is passed as input to this method.






ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2986 Date: 20240523 Time: 170714     sap01-206 ( 56 ms )