Determining the Best Site/Warehouse to Fulfill an Order

When you fulfill customer orders, use the Multi-Site Item Sourcing form to determine the driving distance between each site/warehouse and the Ship To address, using the Google Distance API. You can use the distance, along with the quantity available at the warehouse and the planned production time, to select the best source site and warehouse for an order.

Note: The SyteLine client must be able to access the internet in order to display distance and map information.

Setup

The distance calculation service provided by Google is accessed via a Web service. Specify the connection information:

  1. On the Order Entry Parameters form, click the Integration tab.
  2. Specify this information:

    Note: If you leave the URL fields blank, the system uses the example URLs specified below. However, these URLs are subject to change. If the default values are not working, go to the Google Web site to verify the URLS, and then update these fields accordingly.

    Distance API URL

    Leave this field blank to use this URL for the Google Distance Matrix Web Service: http://maps.googleapis.com/maps/api/distancematrix. If the URL changes, specify the new value here.

    Map API URL

    Leave this field blank to use this URL for the Google Map API: http://maps.google.com/maps. If the URL changes, specify the new value here.

    Unit

    Specify KM to calculate the distance using kilometers, or MILE to calculate using imperial measure. KM is the default value.

  3. Save your changes.

From a Customer Order Line

To select a site and warehouse for a particular order line, based on distance and item availability:

  1. On the Customer Order Lines form, select an order line with a status of Ordered or Planned.
  2. Click Multi-Site Source to open the Multi-Site Item Sourcing form. The current item, Ship To address and current quantity ordered are passed to the Multi-Site Item Sourcing form. The Ship To address is the drop-ship, if available, or otherwise the customer Ship To.
  3. The distance between each site/warehouse and the Ship To address is calculated and displayed when the form opens. The grid is sorted by the distance, then by the quantity available, to place the warehouse with least distance on the top of the grid.

    If an error occurs when the system contacts the Google API, an error message is displayed in the Message field. If you see a message that you exceeded an allowed limit, see the section on "Notes About the API and Calculations" below.

  4. Optionally, select a row (site and warehouse) to display a map that shows the route from that site/warehouse to the specified Ship To address.
  5. Compare the requested order quantity to the quantity available at each warehouse.
  6. If the available quantity is not sufficient to meet the order quantity, click Get Projected Date to view the time required to manufacture this item at a selected site. This button is enabled when APS is configured and enabled, and when an item is specified and a site/warehouse is selected. (External supply or manufacturer time is not considered.)

    If an error occurs when the system makes a CTP call to the APS engine, an error message is displayed in the Message field, overwriting any previous message in that row.

  7. Based on the item availability at the various warehouses, and the distance from the warehouse to the Ship To address, select from the grid the best warehouse for this order line.
  8. Click Select to return the selected site and warehouse values to the Customer Order Lines form and close the Multi-Site Item Sourcing form.

Using the Multi-Site Item Sourcing Form Standalone

If you open this form by itself, you must specify the item number and the Ship To address. Then click the Filter-in-Place button to call the Google Maps API.

The Get Projected Date button is disabled in this mode.

Notes About the API and Calculations

Be aware of these notes about and restrictions on the use of the Google Distance API:


Related Topics