SAP ABAP IMG Activity COM_PROD_MNT_UPD (React to Product Changes)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   AP-MD-PRO (Application Component) Central Part of Product Master
     COM_PRODUCT_CUST (Package) Product Master Customizing - General
IMG Activity
ID COM_PROD_MNT_UPD React to Product Changes  
Transaction Code S_PAB_37000017   (empty) 
Created on 20031029    
Customizing Attributes COM_PROD_MNT_UPD   React to Product Changes 
Customizing Activity COM_PROD_MNT_UPD   React to Product Changes 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name COM_PROD_MNT_UPD    

Use

This enhancement can be used to publish changes to products. It contains the method CHANGE_AFTER_UPDATE, which is called when a product is created or changed.

Create an implementation for the Business Add-In COM_PROD_MNT_UPD if you are interested in changes to the product (for example you may wish to pass on the changes to a separate interface).

Caution
This enhancement is not suitable for modifying product data. If you do modify or delete product data, this can result in database inconsistencies for which SAP is not liable. If a customer implementation causes a program termination, the product changes are not written to the database.

All additional data that is posted to the database in implementations of the Business Add-In should be written to the database in the same update task (directly or indirectly). You may otherwise run the risk of losing product changes. (See also parameter IV_UPDATE_TASK.)

If you delete references to the product in your implementation or make other changes to the database, this may result in data inconsistencies.

The parameters available in the interface method are described below:

IV_DIALOG
Specifies whether the product was processed in dialog mode ('X') or in the background (' ').

IV_UPDATE_TASK
Specifies whether data is posted directly to the database (' ') or in update task (V1 update).

All data that is posted to the database in implementations of the Add-In should be written to the database in the same update task (directly or indirectly). If the product data is written asynchronously all other data should also be written asynchronously, and vice versa.

IT_CHANGED_PRODUCTS
Table with modified or newly created products. A table entry has the following structure:

  • COM_PRODUCT
    General product data (product header data)
  • UPDATE_TYPE
    Specifies whether the product was created ('I') or changed ('U').
  • CHANGED_COMPONENTS
    Table with modified product components. Each entry contains the following information:
    • PROD_COM_TYPE
      Type of product component. Possible values are defined in the domain COM_PROD_COMP_TYPE:
    • 00 Single-Line Set Type
      01 Multi-Line Set Type
      10 Multi-Line Extension
      11 Single-Line Extension
      30 Product Header (COMM_PRODUCT)
      50 Product Status
      53 Configurable Attributes
      54 Configurable Attributes - Org. Selection
      Specifics in CRM
      20 Long Texts
      51 Conditions
      52 Documents (Content Management)
      55 ERP Configuration
    • PROD_ORG_TYPE
      Type of organizational dependency for the modified entry. The possible values are defined in the Customizing table COMS_PR_ORG. At present the only value available in the system is 00 (Organization-Independent).
    • Specifics in CRM
      The value 01 (Distribution-Chain-Dependent) is also available.
    • UPDATE_TYPE
      Type of modification to the product component. This can be Created ('I'), Changed ('U'), and Deleted ('D').
    • COMP_KEY
      Key of the modified product components. The key is passed as a data reference (type REF TO DATA).
      The structure of this parameter is determined at runtime from the combination of PROD_COMP_TYPE and ORG_TYPE in the table COMS_PR_COMP_ORG, for example:
      00 00 COMT_CHANGED_PR_SET_REL_PR
      10 00 COMT_CHANGED_EXTENSIONS
      11 00 COMT_CHANGED_EXTENSIONS
      30 00 COMT_PRODUCT_GUID
      50 00 CRMT_OBJECT_GUID
    • Specifics in CRM
      For example:
      00 01 COMT_CHANGED_PR_SET_REL_OD
      20 00 COMT_PRLGTEXT_STXH_CB

Requirements

Standard settings

Activities

Example

This enhancement contains example code which can be used as a basis for creating your own implementation.

In the example code, modifications made to product descriptions are detected for products with the product type Material.

Caution

You must not change data in the source code of the implementation (delete data records, for example).

Business Attributes
ASAP Roadmap ID 153   Design enhancements 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG COM_PROD_MNT_UPD 0 A4C0000261 Central Part of Product Master 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20031029 
SAP Release Created in 640