Ansicht
Dokumentation

CRM_PRODUCT_HISTORY2 - BAdI: Changes to History Data

CRM_PRODUCT_HISTORY2 - BAdI: Changes to History Data

Addresses (Business Address Services)   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Use

You can use this Business Add-In (BAdI) to add, change, or remove lines within the history blocks of the change history. It can be used, for example, to convert internal technical values to values that can be understood by the user.

Technically the BAdI is called in the function module CRM_PRODUCT_HISTORY_GET, or in terms of the UI, whenever the Change History assignment block is opened.

The BAdI CRM_PRODUCT_HISTORY_1 can be used to add, remove, or change complete history blocks of the change history.

Requirements

Standard settings

The BAdI definition is filter-dependent. The filter consists of two parts:

  • COMT_FRGTYPE_ID (16 characters)
  • For set types, this is the set type ID as in the field FRGTYPE_ID in the table COMC_SETTYPE, for example, CRMM_PR_SALESG.

  • For relationships, this is the relationship ID as in the field RELTYPE in the table COMC_IL_TYPE, for example, ACCESS.

  • COMT_PROD_COMP_TYPE (2 characters)
  • For set types, this is the product component type as in the field PROD_COMP_TYPE in the table COMC_SETTYPE, for example, '00' for single-line set types.

  • For relationships, this is always the fixed value '90' (see ABAP include COM_SETTYPE_ATTRIBUTE_CONST03).

Both parameters should be set for each implementation. When defining a new combination of filter values, you should select all lines to set the filters.

The standard system contains an active BAdI implementation (IMPL_CRMM_PR_SALESG) for sales data. A reference to a product category is converted from the technical GUID to the category ID.

The BAdI definition is designed for multiple use.

Note that the BAdI PRODUCT_GET_HISTORY is not called in the function module CRM_PRODUCT_HISTORY_GET, which is the basis for the change history in the CRM WebClient UI.

Activities

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Further information

Interface IF_CRM_PRODUCT_HISTORY_2

BAdI CRM_PRODUCT_HISTORY_1






ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3291 Date: 20240523 Time: 175945     sap01-206 ( 102 ms )