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

Parameters for the Replenishment Engine


All engines can be invoked from the Workflow Manager or from the client. These engines require certain parameters to be passed. These parameters are set for the component FSRepl in the Server Component Requests screen, My Component Requests view. Table 104 lists the parameters for the Replenishment engine, and what they mean.

Table 104.  Parameters for the Replenishment Engine
Parameter
Value
Comments
InvokeMode
Id
In this mode, specify the inventory location to be replenished and the engine will replenish the specified location.
SQL
In this mode, specify the WHERE clause, meaning specify some criteria and replenish the inventory locations which meet that criteria.
TEMP
In this mode, put all the required parameters into a temporary table with a particular Client Request ID and pass that ID to the server to retrieve the parameters from Temp Table.
ClientId
A row ID for retrieving parameters from the temp table
Required when InvokeMode = TEMP.
SourceType
I (Inventory Location)
V (Vendor)
Required when InvokeMode = TEMP. Defaults to I when InvokeMode = Id or SQL.
DestId
Destination Inventory ID
Required when InvokeMode = Id.
WhereClause
SQL Where Clause
Business Component search spec. Required when InvokeMode = SQL.

To set the Implementation Logic for the Replenishment Engine

  1. Obtain the system preferences from the system table.
  2. Obtain the user defined parameters to determine the defaults for the Replenishment Engine.

  3. Obtain the destination inventory location.
  4. Obtain the value of the destination inventory location based on the Invoke mode from one of the following sources:

  5. Generate Internal Orders for all the Destination Inventory Locations.
  6. 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.

  7. Generate Purchase Order.
  8. 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 
 Published: 21 April 2003