Ansicht
Dokumentation

IFW_CPE - BAdI: Update of CPE-related IFW Fields

IFW_CPE - BAdI: Update of CPE-related IFW Fields

CPI1466 during Backup   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this BAdI to change the fields in table IFW_ITEM that are related to the Commodity Pricing Engine (CPE).

This may be because you want to change the standard aggregation behavior of CPE dates and status, which is applied by the system when several CPE conditions or terms are assigned to an IFW item, or because you want to fill the CPE-related fields of an IFW item in cases where there is no standard logic at all to fill those fields. The latter occurs with invoice items of invoice category Differential Invoice.

The following parameters are provided as importing parameters at the interface:

  • IS_ITEM_UPD: Entry in table IFW_ITEM, that is currently to be inserted or updated. In the standard IFW implementation, this may have any of the standard invoice reference types.
  • IT_CPE_KOMV: Table with all CPE-relevant conditions of the item. If all CPE conditions are based on fixed terms only, the BAdI is not called.
  • IT_CPE_COM: Table with all terms which are assigned to the conditions of table IT_CPE_KOMV.
  • IS_DOCUMENT_COM: Organizational data and document types for checking CPE customizing and authorizations

The parameter is provided for changing the CPE-related fields:

  • CS_IFW_CPE: When the BAdI is called, this structure contains the result of the standard evaluation of the CPE quotation periods, and the status of the evaluation. If the fields of this structure are changed in the implementation of the BAdI, the changes are passed to table IFW_ITEM by the system.

To call this BAdI you have activated switch CPE_SFWS_FA_FE_ABAP. It can be switched on by any of the standard business functions LOG_CPE_FA_FE, LOG_SD_COMMODITY, or LOG_MM_COMMODITY.

Furthermore, CPE must be activated and configured in IMG:

  • For application SD under Sales and Distribution → Basic Functions → Commodity Pricing
  • For application MM under Materials Management → Purchasing → Commodity Pricing.






CL_GUI_FRONTEND_SERVICES - Frontend Services   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2607 Date: 20240523 Time: 220343     sap01-206 ( 49 ms )