Siebel Field Service Guide > Cycle Counting and Replenishment > About the Replenishment Engine >

Processing Logic for the Replenishment Engine


The processing logic for the Replenishment Engine follows:

  1. Obtain the system preferences from the system preference table. For more information, see System Preference Table for the Cycle Counting Engine.

    Obtain the user defined parameters to determine the defaults for the Replenishment Engine.

  2. Obtain the destination inventory location.

    Obtain the value of the destination inventory location by using the InvokeMode parameter from one of the following sources:

    • Input Parameter - DestId
    • Input Parameter - Where Clause
    • Temp Table
  3. Generate internal orders for all the destination inventory locations.

    If the InvokeMode parameter is Id or SQL, then get the source inventory location for the current destination inventory location.

    Get the on hand, minimum quantity (Min Qty), and maximum quantity (Max Qty) for all the products in the destination inventory location and the child locations with an on hand quantity less than the minimum quantity. For each product complete the following steps:

    1. Calculate the effective quantity (EffectiveQty).

      Search the existing orders and find the quantity on order (Qty on order). The effective quantity is the quantity (Qty) plus the quantity on order.

      Complete the next 2 steps if the effective quantity is less than the minimum quantity.

    2. If the order header does not exist (first time only), then generate the order header with an Internal Order type.
    3. Add a line item to the order header for the required quantity (ReqQty). The required quantity is the maximum quantity less the effective quantity.
  4. Generate the purchase order.

    Get the on hand, minimum quantity, and maximum quantity for all the products in the destination inventory location and the child locations with an on hand quantity less than the minimum quantity. For each product complete the following steps:

    1. Calculate the effective quantity.

      Search the existing orders and find the quantity on order. The effective quantity is the quantity plus the quantity on order.

      Complete the next 3 steps if the effective quantity is less than the minimum quantity.

    2. Get the vendor for the product if vendor exists in the user supplied Vendor list.
    3. If the order header does not exist (first time only), then generate the order header with a Purchase Order type.
    4. Add a line item to the order header for the required quantity. The required quantity is the maximum quantity less the effective quantity.
Siebel Field Service Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.