Calculating Travel Distance

Objective

After completing this lesson, you will be able to calculate travel distances in a warehouse

Travel Distance Calculation

Introduction to Travel Distance Calculation

Note

See the following video to learn more about travel distance calculation in the warehouse:

The executing resources is not known until the warehouse order is confirmed. Then, the system can access more detailed information, such as:

  • The last position of the resource prior to executing the warehouse order

  • The travel network allowed for the resource

The travel distance is calculated for the storage bin list. The system generates the list of storage bins from the warehouse order creation rules. The order is fixed, meaning the travel distance calculation does not change the sequence of storage bins.

The system differentiates between horizontal (X and Y coordinates) and vertical movements (Z coordinates). For the movements, we assume the following:The total travel distance in a vertical direction therefore corresponds to twice the Z distance of the storage bins to the floor (point of origin Z = 0).

  • The resource visits each storage bin in the sequence defined by the list.

  • The resource executes the horizontal movement first, meaning the resource first moves to the storage bin in a horizontal direction.

  • The resource then executes the vertical movement, namely the movement from the floor to the bin and back.

  • The resource then moves to the next storage bin in a horizontal direction.

Types of Distance

The image displays two rows of warehouse pallets with blue containers. In the top row, there are five stacks of pallets, each containing four containers. Two of these containers are highlighted with arrows indicating movement between them: a solid arrow goes from the left stack to the middle stack with dashed lines in between. In the bottom row, there are also five stacks, each containing four containers. Two containers are highlighted, and arrows show movement between them: a solid arrow goes from the left stack to the third stack with lines connecting the route taking a downward, then rightward, and finally upward direction. The arrows suggest a possible path of merchandise movement or selection within the pallets.

SAP EWM uses two different methods for the distance calculation:

  • Direct distance:

    The system calculates the travel distance using the direct distance, based on either the Euclidean metric or Manhattan metric. The upper part of the following figure shows the direct distance between two storage bins of a storage type. The solid line corresponds to the Euclidean metric; the dotted line represents the Manhattan metric.

  • Distance based on networks:

    The travel distance calculation can also be based on an existing valid network. The valid routes represent the edges. The lower part of the following figure shows the distance between two storage bins of a storage type. The resource moves across the valid routes.

Introduction to Networks

Networks define the valid routes (paths) in the warehouse on which the resources move. A network consists of edges and nodes. Edges are connected to each other by way of nodes. Edges represent the valid routes in the warehouse, and nodes represent crossings.

There are two different kinds of networks:

  • Storage-type-specific networks:

    These networks consist of edges that map the individual aisles, and edges that represent a connection of different aisles. You assign storage bins of a storage type to:

    - An edge, if the storage bins are located in an aisle, and an edge exists for the aisle.- A node that matches your X and Y coordinates, if you have not assigned an edge.
  • Global networks:

    The global network connects the defined, storage-type-specific networks to each other. If no storage-type-specific networks are defined, the network connects the storage bins to each other directly.

Diagram representing a layout in a warehouse. On the left side, there are five vertical green rectangles, each containing small squares, connected by blue lines to a central area. Below are four large yellow squares divided into smaller rectangles. A forklift image is placed below the yellow squares. On the right side, there are five large blue rectangles, each containing multiple smaller squares and connected to the central area by blue lines. At the bottom, horizontal blue lines link these sections to gray rectangular boxes. The layout represents the structure of a warehouse.

Edges have the following properties:

  • Each edge has a start node and end node.

  • An edge is usually passable in both directions, however it can also be defined as a one-way street. The direction is defined through the start and end nodes.

  • For each edge, you can define which resource types are allowed to pass.

  • You can assign an edge to an aisle.

  • An edge has a length that is used by the system to calculate the travel distance, if the edge is passed by a resource.

The Definition of Networks

You can use the program, Generating Storage-Type-Specific Networks to automatically generate storage- type-specific networks for the travel distance calculation in SAP EWM. On the SAP EWM Index screen, choose Extended Warehouse ManagementSettingsTravel Distance CalculationGenerate Network.

The edges generated for the aisles automatically have the following properties:

  • Edges are only created for aisles that have more than one storage bin.

  • Edges can be passed in both directions.

  • The length of the edges corresponds to the Euclidean distance between the start and end nodes.

  • If storage bins are located on both sides of the aisle, the edges are located in the center of the aisle.

  • If there are only storage bins on one side of the aisle, the edges lie half a bin depth away from the aisle.

  • The edges start and end outside the aisle (half a bin depth).

The system generates connecting edges between neighboring aisles by connecting both the start and end nodes of two neighboring aisles with an edge.

The storage-type specific network can also be created manually, but it is possible and therefore better to change settings like the direction (unidirectional, bidirectional) after the generation by the system. You can also exclude resource types from edges. In addition, you can add an average distance for a storage type. This is the distance that is used when the resource and the start point is not known. (Actually, this setting has to be done in Customizing of the storage type, it is only displayed here.)

You can define global networks manually and make the following settings for the edges:

  • Enter X and Y coordinates for the start of the edge.

  • Enter X and Y coordinates for the end of the edge.

  • Define edge direction (unidirectional, bidirectional).

  • Define edge length in the unit of length of the warehouse number.

  • Define excluded resource types.

Both types of networks (storage-type specific and global) can also be uploaded using a CSV file. This feature was introduced with SAP EWM 9.5.

Direct Movements

This system uses the direct distance for the following movements:

  • Movements between storage bins within a storage type, if no valid storage-type-specific network is available.

  • Movements between storage bins from different storage types, if no global valid network exists.

  • Movements within an aisle. Here, the direct distance between storage bins is used to calculate the travel distance.

Illustration of three vertical columns each containing four slots for pallets. The left column, labeled Column 1, has pallets in the top and bottom slots labeled 1 and 4 respectively. The middle column, labeled Column 2, has pallets in the top three slots labeled 1, 2, and 3. The right column, labeled Column 3, has pallets in the top two slots labeled 4 and 5. Blue dotted lines indicate movement between the columns, connecting pallet 1 from Column 1 to the same numbered pallet in Column 2, and pallet 4 from Column 1 to the respective numbered pallet in Column 3. Yellow solid lines indicate movement between pallets 3 in Column 2 and pallet 5 in Column 3.

The figure called Direct Movements within an Aisle, shows examples for travel distances between multiple storage bins within an aisle. The yellow line represents the Euclidean metric; the dotted blue line represents the Manhattan metric.

Connecting Storage Bins to the Network

Storage bins are connected to the network using either of the following:

  • Using the nearest node, if no edge has been assigned to the storage bin. The node comes from the storage-type-specific network, or if this does not exist, the global network.

  • With the nodes of an edge, if the storage bin is in an aisle, and an edge exists for the aisle. Fundamentally, four options exist. For a one-way route, only one option is allowed: entering the edge at the start node and leaving it at the end node.

The figure called Connections of Storage Bins with the Network displays how a bin sequence within an aisle can be connected with the node or nodes of the respective edge. As stated in the section above, the edge itself is not used for the calculation within an aisle, because the direct distance is used between these storage bins.

An illustration showing four vertical columns with gray squares arranged in a grid, representing storage units or racks. Each column has three blue trolley icons labeled with numbers 1, 2, and 3, positioned at different heights. Yellow lines with arrowheads connect the trolleys, demonstrating movement paths between them. The arrows indicate directions, suggesting a flow or process sequence. The assembly visually represents logistics or warehouse storage and retrieval systems.

Movements Within a Network

Movements within a network take place if the storage bins are located as follows:

  • In the same storage type but not in the same aisle, and a valid storage-type-specific network exists.

  • In different storage types and a valid global network exists.

For the calculation within the network (valid global network and any existing valid storage-type-specific networks), the system connects the storage bins with the nodes of the respective edge or with the next node. Then, the travel distance within the network between the storage bins is added to the assigned nodes. Four options are available for this calculation:

  • From the start node of the first edge to the start node of the second edge
  • From start node to end node
  • From end node to start node
  • From end node to end node

Heuristics for the Travel Distance Calculation Within a Network

Two heuristics exist for the travel distance calculation within a network. The system calls both by default. You can control the heuristics using the Business Add-Ins (BAdIs) for the travel distance calculation.

  • Depth-first search:

    This system attempts to find a route between the specified nodes of a network in the shortest time possible. Here, the search runs in the direction of start node to end node. The search finishes when the first complete route is found.

  • Breadth-first search:

    The system looks for all possible routes in the network, and selects the one that has the shortest distance. This heuristic is more performance intensive at runtime, and is only appropriate for small networks.

The Business Add-Ins (BAdIs) that are available for you to define your own logic for the travel distance calculation are the following:

  • Change Storage Bin List for Travel Distance Calculation /SCWM/EX_TDC_BIN_LIST

    With this BAdI you can do the following:

    • Sort the list
    • Delete storage bins from the list
    • Add new storage bins to the list
    • Influence the default distance to the first storage bin in the storage bin list
  • Travel Distance Calculation Using Storage Bins /SCWM/EX_TDC_START

    The system calls this BAdI to calculate the travel distance of a warehouse order. If you implement this BAdI, you can define your own logic for calculating the travel distance along the sorted storage bin list transmitted to the BAdI.

Examples for the Travel Distance Calculation

The following are some examples for the calculation of the travel distance:

Travel Distance Calculation within a Storage Type

Illustration of the travel distance calculation within a storage type. The image depicts four design options labeled as Option one, Option two, Option three, and Option four, each featuring three rectangular structures arranged horizontally, representing windows or panels. Each structure is numbered in sequential order (1, 2, or 3), indicating their position. The connecting lines between the structures are marked with letters (A, B, C, and D) and arrows to show the direction of flow between these structures. The lines are colored blue with labels and arrows, and a single line labeled C is colored yellow in each option, indicating a special connection between two structures. The numbers are marked in blue circles for identification. This layout likely illustrates different configurations for connecting the structures, possibly representing different network or workflow setups.

Storage bins 1, 2, and 3 are within a storage type with a valid network. The travel distance comprises the following:

  • Direct distances A (within an aisle), B, and D (connection between storage bin and network)

  • Distance C (connecting edge) within the network

Of the four possible calculations, the system uses the first option as that represents the shortest travel distance.

Travel Distance Calculation Between Two Storage Types with Valid Networks

This example shows a travel distance calculation between two storage types that each have a valid storage-type-specific network and a valid global network. The travel distance comprises the following:

  • Direct distances A and C (connection between storage bin and network)

  • Distance B within the entire network (local and global)

Example that shows the travel distance calculation between two storage types with a valid global network. The image depicts a warehouse layout with a forklift operator moving pallets labeled with numbers 1 and 2. The layout is divided into three sections with numbered routes marked A, B, and C. Route A leads from section one, where pallet 1 is located, to section two. Route B connects section two to section three. Route C leads to pallet 2 in section three. On the bottom left, there is a photograph of a warehouse employee driving a forklift with pallets in motion, suggesting efficiency in handling goods. The shelves within each section contain stacks of pallets.

Travel Distance Calculation Between Two Storage Types with a Global Valid Network

Diagram illustrating a data exchange via labeled arrows. On the left, three columns depict server racks filled with multiple servers. Each column contains two vertical rows of four servers. The middle column displays a blue circle labeled 1 next to one of the servers. Arrow A proceeds from this circle, intersecting an arrow labeled B that moves downward and exits the structured area, representing internal server communication. To the right, two sections with two horizontal rows of servers each are shown, mimicking the racks. The upper section features a blue circle labeled 2 beside one of the servers. Arrow C moves horizontally from arrow B, leading to a server in the upper section, symbolizing external data transfer.

This example shows the travel distance calculation between two storage types with a valid global network. Only one storage type has a valid network. The travel distance comprises the following:

  • Direct distances A and C (connection between storage bin and network)

  • Distance within network B

Summary

  • The travel distance calculation calculates the travel distance that a warehouse worker must travel to execute a warehouse order. The system calculates the travel distance when a warehouse order is created for planning purposes and again when a warehouse order is confirmed for evaluation purposes.
  • The travel distance is calculated for the storage bin list: the direct distance and the distance based on networks can be calculated.
  • Networks define the valid routes (paths) in the warehouse on which the resources move. There are two types of networks: global networks and storage type-specific networks. You can manually create storage type-specific networks, or you can automatically generate them for the travel distance calculation in SAP EWM.
  • A network consists of edges and nodes. Edges are connected to each other by way of nodes. Edges represent the valid routes in the warehouse, and nodes represent crossings. The edges can be generated automatically for the aisles. The system generates connecting edges between neighboring aisles by connecting both the start and end nodes of two neighboring aisles with an edge.

How to Set Up the Travel Distance Calculation

Set Up Travel Distance Calculation