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

Setting the Implementation Logic for the Replenishment Engine


Use the following procedure to set the Implementation Logic for the Replenishment Engine.

To set the Implementation Logic for the Replenishment Engine

  1. Obtain the system preferences from the system table.

    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 based on the Invoke mode 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 is Id/SQL, get the Source Inventory Location for the current Destination Inventory location.

    Get the On Hand, Min, and Max Qty for all the products in the Destination inventory location and the child locations whose On Hand Qty < Min Qty.

    For each product do the following:

    Calculate the EffectiveQty:
    Search existing orders and find the Qty on order.
    EffectiveQty = Qty + Qty on order.
    If EffectiveQty is less than the Min Qty:
    If the order header does not exist (first time only), generate the order
    header of type Internal order.
    Add a line item to the order header for the ReqQty =
    Max Qty - Effective Qty.

  4. Generate Purchase Order.

    Get the On Hand, Min, and Max Qty for all the products in the Destination inventory location and the child locations whose On Hand Qty < Min Qty.

    For each product do the following:

    Calculate the EffectiveQty:
    Search existing orders and find the Qty on order.
    EffectiveQty = Qty + Qty on order.
    If EffectiveQty is less than the Min Qty:
    Get the Vendor for this product.
    If Vendor exists in the user supplied Vendor list, then:
    If the order header does not exists (first time only), generate the
    order header of type Purchase order.
    Add a line item to the order header for the
    ReqQty = Max Qty - Effective Qty.

Siebel Field Service Guide