Distribution Processing:
Methods of Adjustment
When you adjust a distribution, the system distributes the quantities actually delivered among the recipients. In Customizing for Merchandise Distribution, in the adjustment profile for each processing method you can enter function modules that control how the adjustment is made. A number of methods have been defined in the standard system. You can also enter function modules that you develop yourself for your own methods.
The function modules contained in the standard system belong to function group WFR4. The following methods are available:
· Proportional distribution
The quantity actually delivered is distributed among the recipients in proportion to their open quantities.
· Proportional distribution with rounding off to unit of issue
The quantity actually delivered is distributed among the recipients in proportion to their open quantities. The system rounds off to complete units of issue (in line with the unit of issue defined in the article master).
· Distribution in accordance with the schedule line sequence
You can tailor the adjustment logic to your own requirements without having to change the source code by entering your own function modules in the relevant adjustment profile. The following options are available for this:
· You can enter your own function module for adjusting the distribution data when underdeliveries / overdeliveries exit. The interface of this module must be the same as that of module W_FRM_DISTR_PROPORTIONAL in the standard system.

The quantity you specify for the adjustment cannot be any greater than the quantity actually delivered.
· You can define your own function module that checks if a special situation exists that requires a special type of adjustment. The interface of this module must be the same as that of module W_FRM_DETERMINE_PREPACK in the standard system. If you enter a function module for this and the function module identifies a special situation, you can:
¡ have the function module return a second function module for use for the adjustment.
¡ use the function module defined in the adjustment profile concerned for use in special situations. The interface of this module must be the same as that of module W_FRM_DISTR_PROPORTIONAL in the standard system.
Delivery generation is started automatically after a manual adjustment in the following situations:
...
1. The automatic adjustment is called at goods receipt.
2. Because the permitted difference between the goods receipt quantity and the order quantity is exceeded, automatic adjustment cannot be carried out.
3. You carry out a manual adjustment; when you save, the system starts the generation of deliveries.
Required Customizing settings in the site profile for distributing articles:
· Time of the adjustment: Goods receipt when checking the size of the deviation
· Time of delivery generation: Goods issue
It is triggered using the BAdI WFRM_CRE_FOLLON_DOC. In the standard system, the BAdI is active and the sample coding is executed. This BAdI enables you to access the procedure delivered in the standard system and adjust it to meet your requirements.