Simulate Route Pre-Selection (MTS028)

Route pre-selection can have a complicated setup and it is important to test that the logic and basic data are correct. The purpose of this program is to give the user a good tool for tests and simulation of route pre-selection.

Outcome

  • Route information based on route pre-selection (mainly based on settings in (CRS727) and (DRS011)) can be retrieved.
  • Order line date and time information based on different scenarios can be calculated.

MTS028 is used for testing DRRTVRDE.

Before you start

Settings for route pre-selections are done as specified in Define Settings for Transportation Management.

Purpose

The purpose of this program is to give the user a good tool for tests and simulation of route pre-selection.

Description of input parameters

Date type (D4DTTP mandatory):

Tells DRRTVRDE what date/time to use as a starting point for the calculation.

  • –1 = Use planning date/time (D4DPLDT/D4PLHM); planning date/time is also used as a filter value
  • 1 = Use planning date/time (D4DPLDT/D4PLHM)
  • 2 = Use departure date/time (D4DSDT/D4DSHM)
  • 3 = Use requested delivery/date time (D4DWDT/D4DWHM).

Place of load (D4SDES mandatory):

You must enter at least one of these requested dates/times based on what date type you have entered:

  • Date type –1 and 1: Planning date/time (D4DPLDT/D4PLHM)
  • Date type 2: Departure date/time (D4DSDT/D4DSHM)
  • Date type 3: Requested delivery/date time (D4DWDT/D4DWHM)

Other fields

Fill in the following fields: DRRTVOBJ, Customer (D8CUNO), Address number (D8ADID), Delivery day number (D8DEWD), From warehouse (D8FWLO), To warehouse (D8TWLO) or Place of unloading (D8EDES mandatory if route type is 2, 3, 4 or 5). This is also used to find a route pre-selection in (DRS011), so one or more values must be entered.

Operation codes

  • *BEC: Get ‘best choice’ departure. Retrieves the best possible route/departure according to the setup in (DRS011). This is the most widely used operation. Used in OIS101/OOLINEPI and MMS101/MMRTVROU.
  • *ALT: Get ‘best choice’ alternatives. Finds and stores the eight best route/departures according to the setup in (DRS011). Results are presented in (DRS146).
  • *ALTRR: Calculates a departure date/time based on a route (Route/departure D4ROUT/D4RODN. No setup required in DRS011). Used in OIS101/OOLINEPI.
  • *ALTR: Calculates the eight best departures based on a route (Route/departure D4ROUT/D4RODN. No setup required in DRS011). Results are presented in (DRS146).
  • *CHK: Check whether a route/departure exists and that the place of load/unloading matches that route. Used in OIS101/OOLINEPI and (MWS410).

Examples

Example of route pre-selection setup in DRS011:

Enter the place of loading, requested delivery date/time (based on using date type 3), requested delivery/date time (D4DWDT/D4DWHM), customer number and place of unloading. This should produce the same result as entering a customer order line for customer 7500, from warehouse 001, with requested delivery date 20050127 16:00.

The result of the route pre-selection and the date calculations is presented at the bottom of the panel.

You can use the different dates/times together with the lead times presented to check the date calculation.

  • Planing date/time + Internal lead time should equal Departure date/time.
  • Departure date/time + Transport lead time should equal Confirmed delivery date/time.

If you have a customer or distribution order line, you can use the data from the order as a template instead of entering basic data yourself.