Ansicht
Dokumentation

MIGO_ERD_ITEM - BAdI: Calculate Exchange Rate Differences for PO Item at Goods Receipt

MIGO_ERD_ITEM - BAdI: Calculate Exchange Rate Differences for PO Item at Goods Receipt

Addresses (Business Address Services)   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Inventory Management 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 when goods receipts are posted (in transaction MIGO).

The BAdI is called separately for each goods receipt item when you post the goods receipt.

To implement this BAdI, the following prerequisites apply:

  • The transaction currency of the purchase order is a foreign currency.
  • You are posting a goods receipt with purchase order reference.
  • A reversal posting is not involved: The BAdI is not run for a reversal.

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_MIGO_ERD_ITEM) allows you to use the method MIGO_ERD_ITEM, which is called in the context of goods receipt posting.

Import Parameters

TI_EBEFU Purchasing Fields, Inventory Management (internal table)
I_YEEBEFU_CR Purchasing Fields in Inventory Management (Currencies)
I_MSEG Material Document Item Data
I_DM07M Dialog Control Fields for Module Pool SAPMM07M
I_VM07M Fields: Update Control of Module Pool SAPMM07M
I_XEKWS Lock Table for Purchasing Document Values
I_RETURN_DELIVERY Indicator for return deliveries (X = yes, ' ' = no)
I_YCURTP Structure with currency type, currency, and translation information
I_WE_RE_MENGE Open Quantity on GR/IR Account: Difference Between GR Quantity/IR Quantity
I_VWERE00 GR/IR amount in local currency (CURTP = 00)
I_NETWR00 Net purchase order value in local currency (CURTP = 00)
I_WEWRT00 Goods receipt value in local currency (CURTP = 00)

Input and Output Parameters

EX_KUDIF 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






General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 5315 Date: 20240523 Time: 201509     sap01-206 ( 49 ms )