Ansicht
Dokumentation

COM_PROD_MNT_UPD - React to Product Changes

COM_PROD_MNT_UPD - React to Product Changes

CL_GUI_FRONTEND_SERVICES - Frontend Services   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

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

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.

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






CL_GUI_FRONTEND_SERVICES - Frontend Services   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4714 Date: 20240523 Time: 173730     sap01-206 ( 62 ms )