Ansicht
Dokumentation

FSH_BADI_DPR_ROUND - BAdI: Rounding Distributed Quantities

FSH_BADI_DPR_ROUND - BAdI: Rounding Distributed Quantities

Addresses (Business Address Services)   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 Fashion (LO-RFM) component. You can use this BAdI to implement the rounding techniques after you have distributed the quantities using distribution curves. By default, SAP delivers the following rounding techniques through standard implementations.

  • Complete Rounding of Distributed Quantities
  • Rounding Down Distributed Quantities
  • Rounding Up Distributed Quantities
  • Mathematical Rounding of Distributed Quantities

You can activate one of the standard implementations of this BAdI or define your own implementation for rounding the distributed quantities. By default, the standard implementation for complete rounding of distributed quantities is active.

Round Distributed Quantities

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).

BAdI Implementations

  • FSH_IM_DPR_ROUND_COMPLETE - Complete Rounding of Distributed Quantities: The system distributes the source requirements completely to the target requirements, according to the following algorithm:
  • The first target quantity is rounded.

  • The rounding difference is subtracted from the second target quantity.

  • The second target quantity is rounded and continues with the other target quantities.

The result of distribution depends on the sorting sequence and it may therefore lead to distortions in the distribution of requirements. However, the total target quantity is always equal to the total source quantity.
The following table illustrates the distribution of planned quantities according to the rounding techniques:
Variant Distr. Distr. Qty after subtracting   After Rounding Difference
Ratio Qty rounding difference
var001 4 33.7 33.73   34 0.266666667
var002 4 33.7 33.46   33 -0.466666667
var003 4 33.7 34.2   34 -0.2
var004 6 50.6 50.8   51 0.2
var005 6 50.6 50.4   50 -0.4
var006 6 50.6 51   51 0
30 253   253

  • FSH_IM_DPR_ROUND_DOWN - Rounding Down Distributed Quantities: The system rounds down the value towards zero, to the smaller round figure.
  • FSH_IM_DPR_ROUND_UP - Rounding Up Distributed Quantities: The system rounds up the value away from zero, to the larger round figure.
  • FSH_IM_DPR_ROUND_MATH - Mathematical Rounding: The system rounds the value to the nearest whole number.
253

253

You can use the standard implementation as a template to adapt the coding to suit your requirements.

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classes section.






Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 5509 Date: 20240523 Time: 185704     sap01-206 ( 48 ms )