Table

TMSRouteSegment

Route segment

Holds one segment (leg) of a transportation route. It is identified by the route code and a sequence number. Each segment records the carrier, mode, origin and destination, planned and actual dates, rates and payment responsibility. It links to the route, the carrier set-up, hubs, vendors and the route segment configuration.

Table name
TMSRouteSegment
Module
Transportation management
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RouteCodeStartHubEndHubIdx
Replacement key
RouteCodeStartHubEndHubIdx
Key fields
RouteCode, Sequence
Model
Foundation

Fields (54)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RouteCodeRoute this segment belongs to. Part of the key.String (20)
TMSRouteCode
YesTMSRoute.RouteCodeNone
SequencePosition of the segment within the route. Part of the key.Integer
TMSSequence
YesNone
ActualArrivalUTCDateTimeDate and time the shipment actually arrived (UTC).UtcDateTime
TMSActualArrivalUTCDateTime
NoNone
ActualShipUTCDateTimeDate and time the shipment actually left (UTC).UtcDateTime
TMSActualShipUTCDateTime
NoNone
BookingNumBooking number for the segment.String (20)
TMSBookingNum
NoNone
CarrierCodeShipping carrier used for the segment.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeNone
CarrierGroupCodeCarrier group the carrier belongs to.String (20)
TMSCarrierGroupCode
NoTMSCarrierGroup.CarrierGroupCodeNone
CarrierServiceCodeCarrier service used for the segment.String (20)
TMSCarrierServiceCode
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency code for the segment, pointing to a currency record.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
CustomerRateRate value for the customer.Real
TMSCustomerRate
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DestinationHubCodeHub where the segment ends, pointing to a hub master.String (20)
TMSHubMasterCode
NoTMSHubMaster.HubMasterCodeNone
DestinationLocationDestination location, as a system record ID pointing to a logistics location.Int64
LogisticsLocationRecId
NoLogisticsLocation.RecIdNone
DestinationNameName of the destination.String (60)
TMSName
NoNone
DestinationResidentialShows whether the destination is a residential address (yes or no).Enum
TMSResidential
NoYes (enum)
NoNone
DestinationResponsibleForPaymentWho pays at the destination: company, customer or third party.Enum
TMSResponsibleForPayment (enum)
NoNone
DestinationVendorCodeVendor account used at the destination.String (20)
TMSVendorCode
NoVendTable.AccountNumNone
DestinationVendorInvoiceCodeVendor account used for invoicing at the destination.String (20)
TMSVendorInvoiceCode
NoVendTable.AccountNumNone
DlvTermIdDelivery terms code that applies to the segment.String
DlvTermId
NoDlvTerm.CodeNone
FirstReceivingUTCDateTimeEarliest date and time the goods can be received (UTC).UtcDateTime
TMSFristReceivingUTCDateTime
NoNone
LastReceivingUTCDateTimeLatest date and time the goods can be received (UTC).UtcDateTime
TMSLastReceivingUTCDateTime
NoNone
ManualShows whether the segment was entered manually (yes or no).Enum
TMSManual
NoYes (enum)
NoNone
MilesDistance of the segment in miles.Real
TMSMiles
NoNone
ModeCodeTransport mode used for the segment.String (20)
TMSModeCode
NoTMSMode.ModeCodeNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OriginHubCodeHub where the segment starts, pointing to a hub master.String (20)
TMSHubMasterCode
NoTMSHubMaster.HubMasterCodeNone
OriginLocationOrigin location, as a system record ID pointing to a logistics location.Int64
LogisticsLocationRecId
NoLogisticsLocation.RecIdNone
OriginNameName of the origin.String (60)
TMSName
NoNone
OriginResidentialShows whether the origin is a residential address (yes or no).Enum
TMSResidential
NoYes (enum)
NoNone
OriginResponsibleForPaymentWho pays at the origin: company, customer or third party.Enum
TMSResponsibleForPayment (enum)
NoNone
OriginVendorCodeVendor account used at the origin.String (20)
TMSVendorCode
NoVendTable.AccountNumNone
OriginVendorInvoiceCodeVendor account used for invoicing at the origin.String (20)
TMSVendorInvoiceCode
NoVendTable.AccountNumNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RateCurRate value for the segment; the currency is not stated in the metadata.Real
TMSRate
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ResponsibleForPaymentWho pays for the segment: company, customer or third party.Enum
TMSResponsibleForPayment (enum)
NoNone
SailUTCDateTimeDate and time the vessel sails (UTC).UtcDateTime
TMSSailUTCDateTime
NoNone
ScheduledArrivalUTCDateTimePlanned arrival date and time (UTC).UtcDateTime
TMSScheduledArrivalUTCDateTime
NoNone
ScheduledShipUTCDateTimePlanned ship date and time (UTC).UtcDateTime
TMSScheduledShipUTCDateTime
NoNone
ShipperRateRate value for the shipper.Real
TMSShipperRate
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TMSRouteSegmentConfigLink to the route segment configuration record this segment relates to, by system record ID.Int64
TMSRouteSegmentConfigRecId
NoTMSRouteSegmentConfig.RecIdNone
TransitTimeTransit time in days.Real
TMSTransitTime
NoNone
TransportationOrderNumNumber of the transportation order.String
TMSTransportationOrderNum
NoNone
VendorCodeVendor account for the segment, pointing to a vendor record.String (20)
TMSVendorCode
NoVendTable.AccountNumNone
VendorInvoiceCodeVendor account used for invoicing the segment.String (20)
TMSVendorInvoiceCode
NoVendTable.AccountNumNone
VesselArrivalUTCDateTimeDate and time the vessel arrives (UTC).UtcDateTime
TMSVesselArrivalUTCDateTime
NoNone
VesselNameName of the vessel.String (20)
TMSVesselName
NoNone
VoyageNumVoyage number of the vessel trip.String
TMSVoyageNum
NoNone

Indexes (3)

Relations (18)

Each relation joins TMSRouteSegment to another table on the fields shown.

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TMSRouteSegment records → exactly one Currency record

  • DlvTerm → DlvTerm

    Join on DlvTermId = DlvTerm.Code

    Many TMSRouteSegment records → zero or one DlvTerm record

  • LogisticsLocationDestination → LogisticsLocation

    Join on DestinationLocation = LogisticsLocation.RecId

    Many TMSRouteSegment records → zero or one LogisticsLocation record

  • LogisticsLocationOrigin → LogisticsLocation

    Join on OriginLocation = LogisticsLocation.RecId

    Many TMSRouteSegment records → zero or one LogisticsLocation record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSRouteSegment records → exactly one TMSCarrier record

  • TMSCarrierGroup → TMSCarrierGroup

    Join on CarrierGroupCode = TMSCarrierGroup.CarrierGroupCode

    Many TMSRouteSegment records → exactly one TMSCarrierGroup record

  • TMSCarrierService → TMSCarrierService

    Join on CarrierServiceCode = TMSCarrierService.CarrierServiceCode

    Many TMSRouteSegment records → zero or one TMSCarrierService record

  • TMSHubMasterDest → TMSHubMaster

    Join on DestinationHubCode = TMSHubMaster.HubMasterCode

    Many TMSRouteSegment records → exactly one TMSHubMaster record

  • TMSHubMasterOrigin → TMSHubMaster

    Join on OriginHubCode = TMSHubMaster.HubMasterCode

    Many TMSRouteSegment records → exactly one TMSHubMaster record

  • TMSMode → TMSMode

    Join on ModeCode = TMSMode.ModeCode

    Many TMSRouteSegment records → exactly one TMSMode record

  • TMSRoute → TMSRoute

    Join on RouteCode = TMSRoute.RouteCode

    Many TMSRouteSegment records → exactly one TMSRoute record

  • VendTable → VendTable

    Join on VendorCode = VendTable.AccountNum

    Many TMSRouteSegment records → zero or one VendTable record

  • VendTableDest → VendTable

    Join on DestinationVendorCode = VendTable.AccountNum

    Many TMSRouteSegment records → zero or one VendTable record

  • VendTableDestInvoice → VendTable

    Join on DestinationVendorInvoiceCode = VendTable.AccountNum

    Many TMSRouteSegment records → zero or one VendTable record

  • VendTableInvoice → VendTable

    Join on VendorInvoiceCode = VendTable.AccountNum

    Many TMSRouteSegment records → zero or one VendTable record

  • VendTableOrigin → VendTable

    Join on OriginVendorCode = VendTable.AccountNum

    Many TMSRouteSegment records → zero or one VendTable record

  • VendTableOriginInvoice → VendTable

    Join on OriginVendorInvoiceCode = VendTable.AccountNum

    Many TMSRouteSegment records → zero or one VendTable record

  • TMSRouteSegmentConfig → TMSRouteSegmentConfig

    Join on TMSRouteSegmentConfig = TMSRouteSegmentConfig.RecId

    Many TMSRouteSegment records → zero or one TMSRouteSegmentConfig record

Get this data out

No public entity reads from TMSRouteSegment. Its data is only reachable through the application, a custom entity or a database export.

Need help with TMSRouteSegment in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk