Ansicht
Dokumentation

MIRO_ERD_INVOICE - BAdI: Calculate Exchange Rate Differences When Invoices Are Posted

MIRO_ERD_INVOICE - BAdI: Calculate Exchange Rate Differences When Invoices Are Posted

TXBHW - Original Tax Base Amount in Local Currency   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Logistics Invoice Verification component in Materials Management (MM-IV).

You can use this BAdI to implement your own logic for calculating exchange rate differences for purchase order items and planned delivery costs when invoices are posted (in transaction MIRO).

The BAdI is called separately for each invoice item when you post an invoice or simulate the posting of the invoice. The invoice must have a purchase order reference and can refer both to goods items and freight items in the purchase order.

To implement this BAdI, the following prerequisites apply:

  • The transaction currency of the purchase order is a foreign currency.

Once you have implemented the BAdI, you need to execute the following activity in Customizing for Materials Management:

Select the Treatment of Exchange Rate Diffs. in Company Code Currency (CCCurr.) indicator for the corresponding company code.

Interface

The BAdI interface (interface IF_EX_MIRO_ERD_INVOICE) allows you to use the method MIRO_ERD_INVOICE, which is called in the context of invoice posting.

Import Parameters

I_SGNBU Interface for Logistics Invoice Verification posting logic
I_T169P Company-code-dependent parameters for invoice verification
I_T001 Company-Code-Specific Data
TI_CURRENCIES Logistics Invoice Verification: Currencies, one entry per CURTP (internal table)
I_T001K Valuation area data
I_DRSEG Complete invoice item data, including the freight condition key
(I_DRSEG-KSCHL)
IS_ERD_SETTING ERD settings based on table FMLC_ERD

Input and Output Parameters

EX_KRDIF The calculated exchange rate difference in local currency is transferred in this field.
E_XCHANGE This parameter must be set (= 'X') to allow the calculated exchange rate difference to be transferred to the document.

E_XCHANGE

E_XCHANGE
  • The BAdI is not implemented in the standard system.
  • The Business Add-In is filter-independent.
  • The Business Add-In cannot be used multiple times.

See the Enhancement Spot Element Definitions tab page in the BAdI Builder (transaction SE18).

E_XCHANGE

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 followed by the Application Help. In the Application Help, choose SAP NetWeaver Library: Function-Oriented View -> Application Server -> Application Server ABAP -> Application Development on AS ABAP -> ABAP Customer Development -> Enhancement Framework -> Enhancement Technologies -> Business Add-Ins (BAdIs).

E_XCHANGE






CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 4605 Date: 20240523 Time: 200752     sap01-206 ( 52 ms )