Ansicht
Dokumentation

MEV_REPRICE_CHK_SD_C - BAdI: Ignored Fields During the Comparison Step of a Revaluation

MEV_REPRICE_CHK_SD_C - BAdI: Ignored Fields During the Comparison Step of a Revaluation

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   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

This Business Add-In (BAdI) is used in the Commodity Management in Logistics(LO-CMM) component. The system calls this BAdI when the user revaluates a valuation result. You can use this BAdI to ignore fields during the comparison step of the revaluation of a valuation result.

On the sales side, a valuation result is linked to an item or a pair of items of a billing document with billing document types F2DM or IVDM.

When you revaluate a valuation result, the system usually rebuilds the pricing conditions of the corresponding billing document item, in the same way as when creating a new billing document. If the header data, item data, or partner data in the underlying sales order has changed, meaning it requires different billing document data, the system cancels the old billing document and creates a new one. The valuation result then refers to these new billing document items.

To decide whether the existing billing document can be used or a new one has to be created, the system simulates the header, item, and partner data of a new billing document and compares these against the data of the existing billing document. During this comparison, the system must ignore certain fields because they will always change, for example the billing document number:

  • The standard coding takes care of the standard fields that are to be ignored. It also makes sure that all currency fields (data type CURR) are ignored.
  • Within the methods of this BAdI, you initialize the customer-specific fields that are to be ignored during the comparison.

The following results of the comparison are possible:

  • If the simulation results in the same billing document data as in the existing billing document, the system rebuilds the pricing conditions of the existing billing items.
  • If the simulation does not result in the same billing document data as in the existing billing document, the system cancels the existing billing document and creates a new one.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

The BAdI provides the following methods:

CLEAR_CHANGING_FIELDS_VBRK: Initialize header fields

CLEAR_CHANGING_FIELDS_VBRP: Initialize item fields

CLEAR_CHANGING_FIELDS_VBPA: Initialize partner fields

For information about implementing BAdIs as part of the enhancement framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View -> Application Server -> Application Server ABAP -> Application Development on AS ABAP -> ABAP Customer Development -> Enhancement Framework.






PERFORM Short Reference   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3679 Date: 20240523 Time: 214801     sap01-206 ( 105 ms )