Ansicht
Dokumentation

/AFS/SIMGARUN_ALLCTN - Allocation Logic

/AFS/SIMGARUN_ALLCTN - Allocation Logic

BAL_S_LOG - Application Log: Log header data   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

In this section you specify the procedures for allocating existing stock quantities during an allocation run. If there is not enough stock available, the allocation can take place according to the FIFO principle or the principle of equal distribution.

  • In FIFO (first-in-first-out) allocation, existing stock will be allocated to the requirements based on the existing sorting. Requirements that have a higher priority due to the requirements sorting receive the full allocation. Requirements with lower priority may not receive any stock or only a small quantity, and therefore cannot be released.
  • In equal distribution allocation, existing stock can be distributed equally among the individual requirements of an allocation group, based on specific rules.
Before you can assign stock using equal distribution rules, you must have already created allocation groups using requirements grouping. Equal distribution can only take place within such a group.
  1. Define your allocation rule by assigning an alphanumeric key with a maximum of four characters as well as an informative text.
  2. Select a function module for preparing the allocation. The sorting of the requirements and stock elements occurs within each of these modules according to the sorting rules you have specified. The sorting is based on data at header, item, and/or schedule line level, depending on which function module you use to prepare the allocation.
  • If you choose J_3AR_ALLOCATION_PREPARE_1, the sorting will take place at schedule line level at first. This function module fills the header and item data as well as the schedule line data in the internal sort table.

Make sure that schedule lines are sorted according to specific criteria when you use this module, independent of order to which they belong. In most cases, this means splitting up the orders as well as diminished performance.
  • If you choose J_3AR_ALLOCATION_PREPARE_2, the sorting takes place at the order header level and item level first. This function module fills only the header and item data in the internal sort table. However. it is still possible to sort according to fields at schedule line level within an order.

  1. Select a function module for controlling the process flow of the allocation.
  • If you choose J_3AR_ALLOCATION_STRATEGY_FIFO, the allocation takes place according to the FIFO principle.

  • If you choose J_3AR_ALLOCATION_STRATEGY_SPRD, the allocation takes place according to the equal distribution principle.

  1. If necessary, enter a shortage logic and a remaining quantity logic as well.





Addresses (Business Address Services)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3083 Date: 20240420 Time: 182135     sap01-206 ( 78 ms )