TMS Scan Function RoutingStrat
Overview
This document provides a detailed overview of the functions available in the "TMS Scan Function RoutingStrat" codeunit. Each function is listed with its purpose and parameters, which can be expanded for more details.
Function List
1. Determine Plan Box via Routing Strategy
Purpose: Determine the Plan Box using the TMS Routing Strategy without a TMS order. The function uses the supplied addresses, date, document type, order type and attributes to evaluate the routing strategy. If no result is found, the output is left empty unless 'ERRORIFNOTFOUND' contains an error message.
Parameters
- 'FROMADDRESS': From Address No. (mandatory)
- 'TOADDRESS': To Address No. (mandatory)
- 'DATE': Optional: Date for the Routing Strategy; empty = Work Date
- 'ATTRIBUTE1': Optional: Attribute 1
- 'ATTRIBUTE2': Optional: Attribute 2
- 'ATTRIBUTE3': Optional: Attribute 3
- 'ATTRIBUTE4': Optional: Attribute 4
- 'ATTRIBUTE5': Optional: Attribute 5
- 'ATTRIBUTE6': Optional: Attribute 6
- 'ATTRIBUTE7': Optional: Attribute 7
- 'ATTRIBUTE8': Optional: Attribute 8
- 'ATTRIBUTE9': Optional: Attribute 9
- 'ATTRIBUTE10': Optional: Attribute 10
- 'ERRORIFNOTFOUND': Optional: Error text when no routing match is found; empty = leave the output empty
- 'Plan Box No.': Output: Plan Box No.
- 'ORDERTYPE': Optional: Order type for the Routing Strategy; empty = no order type
- 'DOCUMENTTYPE': Optional: TMS Document Type value; empty or 0 = Order
2. Determine Plan Department via Routing Strategy
Purpose: Determine the Plan Department using the TMS Routing Strategy without a TMS order. The function uses the supplied addresses, date, document type, order type and attributes to evaluate the routing strategy. If no result is found, the output is left empty unless 'ERRORIFNOTFOUND' contains an error message.
Parameters
- 'FROMADDRESS': From Address No. (mandatory)
- 'TOADDRESS': To Address No. (mandatory)
- 'DATE': Optional: Date for the Routing Strategy; empty = Work Date
- 'ATTRIBUTE1': Optional: Attribute 1
- 'ATTRIBUTE2': Optional: Attribute 2
- 'ATTRIBUTE3': Optional: Attribute 3
- 'ATTRIBUTE4': Optional: Attribute 4
- 'ATTRIBUTE5': Optional: Attribute 5
- 'ATTRIBUTE6': Optional: Attribute 6
- 'ATTRIBUTE7': Optional: Attribute 7
- 'ATTRIBUTE8': Optional: Attribute 8
- 'ATTRIBUTE9': Optional: Attribute 9
- 'ATTRIBUTE10': Optional: Attribute 10
- 'ERRORIFNOTFOUND': Optional: Error text when no routing match is found; empty = leave the output empty
- 'Plan Department': Output: Plan Department
- 'ORDERTYPE': Optional: Order type for the Routing Strategy; empty = no order type
- 'DOCUMENTTYPE': Optional: TMS Document Type value; empty or 0 = Order
3. Determine Department via Routing Strategy
Purpose: Determine the Department using the TMS Routing Strategy without a TMS order. The function uses the supplied addresses, date, document type, order type and attributes to evaluate the routing strategy. If no result is found, the output is left empty unless 'ERRORIFNOTFOUND' contains an error message.
Parameters
- 'FROMADDRESS': From Address No. (mandatory)
- 'TOADDRESS': To Address No. (mandatory)
- 'DATE': Optional: Date for the Routing Strategy; empty = Work Date
- 'ATTRIBUTE1': Optional: Attribute 1
- 'ATTRIBUTE2': Optional: Attribute 2
- 'ATTRIBUTE3': Optional: Attribute 3
- 'ATTRIBUTE4': Optional: Attribute 4
- 'ATTRIBUTE5': Optional: Attribute 5
- 'ATTRIBUTE6': Optional: Attribute 6
- 'ATTRIBUTE7': Optional: Attribute 7
- 'ATTRIBUTE8': Optional: Attribute 8
- 'ATTRIBUTE9': Optional: Attribute 9
- 'ATTRIBUTE10': Optional: Attribute 10
- 'ERRORIFNOTFOUND': Optional: Error text when no routing match is found; empty = leave the output empty
- 'Department': Output: Department
- 'ORDERTYPE': Optional: Order type for the Routing Strategy; empty = no order type
- 'DOCUMENTTYPE': Optional: TMS Document Type value; empty or 0 = Order
4. Determine Carrier via Routing Strategy
Purpose: Determine the Carrier using the TMS Routing Strategy without a TMS order. The function uses the supplied addresses, date, document type, order type and attributes to evaluate the routing strategy. If no result is found, the output is left empty unless 'ERRORIFNOTFOUND' contains an error message.
Parameters
- 'FROMADDRESS': From Address No. (mandatory)
- 'TOADDRESS': To Address No. (mandatory)
- 'DATE': Optional: Date for the Routing Strategy; empty = Work Date
- 'ATTRIBUTE1': Optional: Attribute 1
- 'ATTRIBUTE2': Optional: Attribute 2
- 'ATTRIBUTE3': Optional: Attribute 3
- 'ATTRIBUTE4': Optional: Attribute 4
- 'ATTRIBUTE5': Optional: Attribute 5
- 'ATTRIBUTE6': Optional: Attribute 6
- 'ATTRIBUTE7': Optional: Attribute 7
- 'ATTRIBUTE8': Optional: Attribute 8
- 'ATTRIBUTE9': Optional: Attribute 9
- 'ATTRIBUTE10': Optional: Attribute 10
- 'ERRORIFNOTFOUND': Optional: Error text when no routing match is found; empty = leave the output empty
- 'Carrier No.': Output: Carrier No.
- 'ORDERTYPE': Optional: Order type for the Routing Strategy; empty = no order type
- 'DOCUMENTTYPE': Optional: TMS Document Type value; empty or 0 = Order