CL_EXM_IM_BADI_ENDING_INV - Example Implementation for BAdI Definition BADI_ENDING_INV
TXBHW - Original Tax Base Amount in Local Currency TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
Functionality
- Method SET_ACTIVE_FLAG: Parameter USE_BADI is set to 'X'. This means that the BAdI for ending inventory valuations will be used and data is procured for the interface.
- Method SET_ALTN_FLAG: Parameter READ_ALTN is set to 'X', meaning that the procurement alternatives are read and delivered to Method GET_INVENTORY.
- Method GET_INVENTORY: Export parameters ENDINV_VALUE (ending inventory value) and ENDINV_VALUE_CCS (cost component split for ending inventory value) are populated according to the following logic:
- If a (multilevel) procurement alternative of type 'Production' or Stock transfer' exists the endinginventory is valuated explicitly on the basis of the receipts. Correspondingly, if the receipt quantityis larger or equal to the ending inventory value, the cost component split for the receipts is alsotransferred to the ending inventory. In order to avoid an unrealistic valuation of consumption, the FIFO valuation method can also be used.
- All other materials are valuated using the FIFO method.
- In addition to the above, you can also predefine the valuation method to be used for a material using Classification.
Relationships
Class CL_DEF_ENDING_INVENTORY is the default implementation class for Business Add-In ENDING_INVENTORY.
Example
Notes
FIFO Valuation:
- If the balance sheet valuation procedures for a material deliver a transaction-based FIFO value,this value will be used for the ending inventory valuation. The corresponding cost component split will, however, be generated according to the periodic FIFO method.
- The periodic FIFO method will be used for currencies/valuations, where no transaction-based FIFO values can be generated.
- If cumulation is used, data from the final period of cumulation will be used as the basis for the FIFO valuation.
- Note: If the receipt quantity is larger or equal to the ending Inventory quantity, then the periodic FIFO valuation method is the same as the valuation based on receipts.
- In order to be able to use the FIFO values delivered by the balance sheet valuation procedures inthe Business Add-In for valuating the ending inventory, the costing run must use a procurement alternativethat is set up to include Method 'Price from FIFO Valuation' and Result 'Relevant for Business Add-In for Ending Inventory Valuation in ML'.
Negative Ending Inventory or Consumption Price:
- If the ending inventory or consumption price, calculated during any of the strategies above is negative, the weighted average price will be used so that unrealistic valuations are avoided.
- If, with a consumption quantity of zero, the ending inventory price does not match the weighted average price, the resulting differences will not be distributed.
Before you can define the valuation method for a material, you must create the Class VALUATION and the Characteristics ENDING_INVENTORY and PLANTS:
- Logistics -> Central Functions -> Classification -> Master Data -> Classes
- Create Class VALUATION with Class Type 001
- Basic Data: Description ' Material Valuation'
- Characteristic ENDING_INVENTORY
- Basic Data: Description ' Ending Inventory'
- Format Entries: Data type ' Character format', Number of Characters '1'
- Valuation: Single-Value
- Values: R (Valuation based on Receipts), F (FIFO Valuation), O (Valuation without Business Add-In)
- Characteristic PLANTS
- Basic Data: Description ' Plants'
- Format Entries: Data type ' Character format', Number of Characters '4'
- Valuation: Multivalue
- Values: Check values against check table T001K
You can now set the valuation method in the material master record, on the Classification tab:
- Class Type: 001, Class: VALUATION
- Characteristic ENDING_INVENTORY: Select the required valuation method
- Characteristic PLANTS: Select the plants in which the selected valuation method should be used. If you do not select any plants, this valuation method will be used for the material in all plants.
Further information
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 5126 Date: 20120526 Time: 120945 triton ( 177 ms )






