ROUTEHDR – Route Header

System
Warehouse (WH)
Prefix
RTE
Primary key
COMPANY, LOCATION, DATE, ROUTE
Fields
12
Updated by
229 programs
Referenced by
1 program

ROUTEHDR is the Route Header table in Lawson Warehouse (prefix RTE). It is indexed by COMPANY, LOCATION, DATE, ROUTE (RTESET1); alternate indexes: RTESET2. It is related 1:1 to ICCOMPANY and ICLOCATION and 1:M to ROUTESTOP. It is updated by AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 and 221 more and referenced by WH210. The table has 12 fields, 2 indexes and 3 documented relations.

About ROUTEHDR

For all routes created, a header record is added to the Route Header file.

Fields (12)

Column = COBOL field name without the RTE- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
RTE-COMPANY PK
COMPANY
Numeric 4This field contains the company number.WH120, WH21.1, WH21.3, WH21.4
RTE-LOCATION PK
LOCATION
Alpha 5This field contains a valid stock location within the company inventory.WH120, WH21.1, WH21.3, WH21.4
RTE-ROUTE PK
ROUTE
Numeric 4This field contains the route number. The route assigned to the ship-to customer defaults from the Route file.WH120, WH21.1, WH21.3, WH21.4
RTE-DATE PK
DATE
Numeric 8 (yyyymmdd)This field contains the route's delivery date. This delivery date is found on the order lines that are to be delivered on this route. The delivery date is used by the system when determining which orders should be delivered on the day's route. When a route is built, the user determines which delivery date is used. Only those lines with that delivery date are printed on WH120 (Route Creation) and the pick list for processing.WH120, WH21.1, WH21.3, WH21.4
RTE-DAY-OF-WEEK
DAY_OF_WEEK
Numeric 1This field contains the day of the week this route is delivered.
  • 1 Sunday
  • 2 Monday
  • 3 Tuesday
  • 4 Wednesday
  • 5 Thursday
  • 6 Friday
  • 7 Saturday
WH120, WH21.3, WH21.4
RTE-STATUS
STATUS
Numeric 1This field contains status, which indicates whether the route is released and is available for printing on the pick list. Routes are released on WH21.1 (Routes).
  • 0 Edit
  • 1 Released
WH120, WH21.1
RTE-CUBIC-FEET
CUBIC_FEET
Signed 9.3This field contains the total cubic feet of all items on all orders to delivered along the route.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
RTE-WEIGHT
WEIGHT
Signed 9.3This field contains the total weight of all the items on all the orders that are delivered on this route.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
RTE-PIECES
PIECES
Signed 13.4This field contains the total number of items to deliver along this route.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
RTE-STOPS
STOPS
Numeric 6This field contains the number of stops along the route. Each customer ship to or bill to location where orders are dropped off is considered a stop. Stops are defined using OE60.1 (Routes).AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
RTE-DOCUMENTS
DOCUMENTS
Numeric 4This field contains the number of documents to be delivered on this route.AP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +52 more (list truncated in source)
RTE-IN-USE
IN_USE
Alpha 1This field indicates if the route is currently in use.
  • Y Yes
  • N No
WH130, WH21.3, WH21.4

Indexes (2)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
RTESET1COMPANY, LOCATION, DATE, ROUTEPrimaryAP125, AP126, AP131, AP20.1, AP20.2, AP20.3, AP20.4, AP20.5 +22 more (list truncated in source)
RTESET2COMPANY, LOCATION, ROUTE, DATEKeyChangeWH130

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
IccompanyICCOMPANYRequiredRTE-COMPANYICC-COMPANY
IclocationICLOCATIONRequiredRTE-COMPANYICL-COMPANY, RTE-LOCATIONICL-LOCATION

One to many (1) — child tables

RelationTableRulesConditionField map
RoutestopROUTESTOPRTE-COMPANYRTS-COMPANY, RTE-LOCATIONRTS-LOCATION, RTE-DATERTS-DATE, RTE-ROUTERTS-ROUTE, RTS-STOP

Programs

Updated by (229)

Referenced by (1)