Ansicht
Dokumentation

MIGO_ERD_CONDITION - BAdI: Calculate Exchange Rate Differences for Conditions at Goods Receipt

MIGO_ERD_CONDITION - BAdI: Calculate Exchange Rate Differences for Conditions at Goods Receipt

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
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 determining exchange rate differences for the freight cost portion/condition key when goods receipts are posted for a purchase order (in transaction MIGO). If there are multiple freight costs/condition keys, the BAdI is run multiple times.

The BAdI is also called for goods issue postings with delivery costs in foreign currency.

To implement this BAdI, the following prerequisites apply:

  • The transaction currency of the purchase order is a foreign currency.
  • Delivery costs are defined in the purchase order.
  • A freight invoice must have been posted already for the purchase order (condition: freight invoice quantity > 0).
  • 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_CONDITION) allows you to use the method MIGO_ERD_CONDITION, which is called in the context of goods receipt posting.

Import Parameters

TI_XEKBNK_KDM Purch. Fields Inventory Mgmt Overheads Exch. Rate Difference (internal table)
I_MSEG Material Document Item Data
I_DM07M Dialog Control Fields for Module Pool SAPMM07M
I_YEKBNK Purchasing Fields, Inventory Management, Delivery Costs
I_RETURN_DELIVERY Indicator for return deliveries (X = yes, ' ' = no)
I_WAFLG Goods receipt = ' '/Goods issue = 'X'
I_YCURTP Structure with currency type, currency, and translation information
I_VM07M Fields: Update Control of Module Pool SAPMM07M
I_YEKBNK_CR Purchasing Fields: Inventory Mgmt. Deliv. Costs (Currencies)
I_XEKBN Blocking Table for Delivery Cost Values
I_WE_RE_MENGE Open Quantity on Freight Clearing Account: Difference Between GR Quantity/IR Quantity

Input and Output Parameters

EX_KUDIF_BNK The calculated exchange rate difference for delivery costs 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






ROGBILLS - Synchronize billing plans   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 5377 Date: 20240523 Time: 195742     sap01-206 ( 52 ms )