Codeunit 18126590 EOS092 Route Plan Management
Codeunit 18126590 EOS092 Route Plan Management
Methods
LookupSalesDocument
procedure LookupSalesDocument(RoutePlanHeader: Record "EOS092 Route Plan Header"; ReturnOrder: Boolean): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
ReturnOrder
Boolean
Returns
Boolean
LookupSalesShipment
procedure LookupSalesShipment(RoutePlanHeader: Record "EOS092 Route Plan Header"): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Boolean
LookupReturnReceipt
procedure LookupReturnReceipt(RoutePlanHeader: Record "EOS092 Route Plan Header"): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Boolean
LookupPurchaseDocument
procedure LookupPurchaseDocument(RoutePlanHeader: Record "EOS092 Route Plan Header"; ReturnOrder: Boolean): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
ReturnOrder
Boolean
Returns
Boolean
LookupPurchaseReceipt
procedure LookupPurchaseReceipt(RoutePlanHeader: Record "EOS092 Route Plan Header"): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Boolean
LookupReturnShipment
procedure LookupReturnShipment(RoutePlanHeader: Record "EOS092 Route Plan Header"): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Boolean
LookupTransferDocument
procedure LookupTransferDocument(RoutePlanHeader: Record "EOS092 Route Plan Header"; Shipment: Boolean): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Shipment
Boolean
Returns
Boolean
LookupTransferShipment
procedure LookupTransferShipment(RoutePlanHeader: Record "EOS092 Route Plan Header"): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Boolean
LookupTransferReceipt
procedure LookupTransferReceipt(RoutePlanHeader: Record "EOS092 Route Plan Header"): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Boolean
InsertDocumentLine
procedure InsertDocumentLine(RoutePlanHeader: Record "EOS092 Route Plan Header"; DocVariant: Variant; SourceSubtype: Integer)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
DocVariant
Variant
SourceSubtype
Integer
CheckDocumentIsAlreadyAssigned
procedure CheckDocumentIsAlreadyAssigned(RoutePlanHeader: Record "EOS092 Route Plan Header"; RecRef: RecordRef; SourceSubtype: Integer): Boolean
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
RecRef
RecordRef
SourceSubtype
Integer
Returns
Boolean
GetDocumentSourceNo
procedure GetDocumentSourceNo(RecRef: RecordRef) SourceNo: Code[20]
Parameters / Return Value
RecRef
RecordRef
Returns
Code[20]
TransferSalesHeader
procedure TransferSalesHeader(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferSalesShipment
procedure TransferSalesShipment(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferReturnReceipt
procedure TransferReturnReceipt(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferPurchaseHeader
procedure TransferPurchaseHeader(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferPurchReceipt
procedure TransferPurchReceipt(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferReturnShipment
procedure TransferReturnShipment(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferTransferHeader
procedure TransferTransferHeader(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferTransferShpt
procedure TransferTransferShpt(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
TransferTransferRcpt
procedure TransferTransferRcpt(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
RecRef
RecordRef
GetWhseShipments
procedure GetWhseShipments(RoutePlanLine: Record "EOS092 Route Plan Line"; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
TempWhseShptHeader
Record "Warehouse Shipment Header"
GetWhseReceipts
procedure GetWhseReceipts(RoutePlanLine: Record "EOS092 Route Plan Line"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
TempWhseRcptHeader
Record "Warehouse Receipt Header"
RecalculateValues
procedure RecalculateValues(RoutePlanHeader: Record "EOS092 Route Plan Header"; Weight: Boolean; Pallet: Boolean)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Weight
Boolean
Pallet
Boolean
RecalculateValues
procedure RecalculateValues(RoutePlanHeader: Record "EOS092 Route Plan Header"; var RoutePlanLine: Record "EOS092 Route Plan Line"; Weight: Boolean; Pallet: Boolean)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
RoutePlanLine
Record "EOS092 Route Plan Line"
Weight
Boolean
Pallet
Boolean
PrintRoutePlan
procedure PrintRoutePlan(var RoutePlanHeader: Record "EOS092 Route Plan Header")
Parameters / Return Value
- RoutePlanHeader
Record "EOS092 Route Plan Header"
CreateWarehouseShipments
procedure CreateWarehouseShipments(RoutePlanHeader: Record "EOS092 Route Plan Header"): Integer
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Integer
GetRequireShipRqst
procedure GetRequireShipRqst(var WarehouseRequest: Record "Warehouse Request")
Parameters / Return Value
- WarehouseRequest
Record "Warehouse Request"
GetRequireRcptRqst
procedure GetRequireRcptRqst(var WarehouseRequest: Record "Warehouse Request")
Parameters / Return Value
- WarehouseRequest
Record "Warehouse Request"
CreateWarehouseReceipts
procedure CreateWarehouseReceipts(RoutePlanHeader: Record "EOS092 Route Plan Header"): Integer
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Returns
Integer
PostWarehouseShipments
procedure PostWarehouseShipments(RoutePlanHeader: Record "EOS092 Route Plan Header")
Parameters / Return Value
- RoutePlanHeader
Record "EOS092 Route Plan Header"
RetrieveGeoLocation
procedure RetrieveGeoLocation(RoutePlanLine: Record "EOS092 Route Plan Line"): Code[50]
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Returns
Code[50]
MapSourceDocument
procedure MapSourceDocument(RoutePlanLine: Record "EOS092 Route Plan Line"): Enum "EOS092 Route Document Type"
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Returns
Enum "EOS092 Route Document Type"
CalculateRoute
procedure CalculateRoute(var RoutePlanHeader: Record "EOS092 Route Plan Header")
Parameters / Return Value
- RoutePlanHeader
Record "EOS092 Route Plan Header"
OptimizeRoute
procedure OptimizeRoute(var RoutePlanHeader: Record "EOS092 Route Plan Header")
Parameters / Return Value
- RoutePlanHeader
Record "EOS092 Route Plan Header"
OpenRouteUrl
procedure OpenRouteUrl(var RoutePlanHeader: Record "EOS092 Route Plan Header")
Parameters / Return Value
- RoutePlanHeader
Record "EOS092 Route Plan Header"
GetRouteLineSourceSysId
procedure GetRouteLineSourceSysId(RoutePlanLine: Record "EOS092 Route Plan Line"): Guid
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Returns
Guid
Events
OnBeforePrintRoutePlanHeader
local procedure OnBeforePrintRoutePlanHeader(var RoutePlanHeader: Record "EOS092 Route Plan Header"; var ReportId: Integer; var IsHandled: Boolean)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
ReportId
Integer
IsHandled
Boolean
OnAfterFilterSourceDoc
Obsolete
Pending: Replaced by the event for the specific document (23.0)local procedure OnAfterFilterSourceDoc(RoutePlanHeader: Record "EOS092 Route Plan Header"; DocVariant: Variant)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
DocVariant
Variant
OnBeforeInsertDocumentLine
Obsolete
Pending: Replaced by the event “OnBeforeInsertRoutePlanDocumentLine” (23.0)local procedure OnBeforeInsertDocumentLine(RoutePlanHeader: Record "EOS092 Route Plan Header"; var RoutePlanLine: Record "EOS092 Route Plan Line"; IsHandled: Boolean)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
RoutePlanLine
Record "EOS092 Route Plan Line"
IsHandled
Boolean
OnBeforeInsertRoutePlanDocumentLine
local procedure OnBeforeInsertRoutePlanDocumentLine(RoutePlanHeader: Record "EOS092 Route Plan Header"; var RoutePlanLine: Record "EOS092 Route Plan Line"; var IsHandled: Boolean)
Raised before insert the Route Plan Line from the source document.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Route Plan Header
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Line to insert
IsHandled
Boolean
If true, doesn’t insert the Route Plan Line
OnAfterMapSourceDocument
local procedure OnAfterMapSourceDocument(RoutePlanLine: Record "EOS092 Route Plan Line"; var SourceDocumentType: Enum "EOS092 Route Document Type")
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
SourceDocumentType
Enum "EOS092 Route Document Type"
OnBeforeRetrieveGeoLocation
Obsolete
Pending: Use OnBeforeRetrieveGeoLocationOnRoutePlanLine (22.0)local procedure OnBeforeRetrieveGeoLocation(RoutePlanLine: Record "EOS092 Route Plan Line"; GeoLocationCode: Code[50]; IsHandled: Boolean)
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
GeoLocationCode
Code[50]
IsHandled
Boolean
OnBeforeRetrieveGeoLocationOnRoutePlanLine
local procedure OnBeforeRetrieveGeoLocationOnRoutePlanLine(RoutePlanLine: Record "EOS092 Route Plan Line"; var GeoLocationCode: Code[50]; var IsHandled: Boolean)
Raised before get the geolocation for the Route Plan Line.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Line
GeoLocationCode
Code[50]
The Geolocation Code found or created
IsHandled
Boolean
If true, no following app code will be executed and returns the GeoLocationCode
OnBeforeDisplayMsg_CheckDocIsAssigned
local procedure OnBeforeDisplayMsg_CheckDocIsAssigned(RoutePlanHeader: Record "EOS092 Route Plan Header"; RecRef: RecordRef; SourceSubtype: Integer; var IsHandled: Boolean)
Raised before showing the message if the document is already assigned to the current Route Plan Header. Use it to hide message.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
RecRef
RecordRef
Source RecRef
SourceSubtype
Integer
SourceSubtype
IsHandled
Boolean
if true, it will not show the message
OnBeforeRecalculateValues
local procedure OnBeforeRecalculateValues(RoutePlanHeader: Record "EOS092 Route Plan Header"; var RoutePlanLine: Record "EOS092 Route Plan Line"; Weight: Boolean; Pallet: Boolean; var IsHandled: Boolean)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
RoutePlanLine
Record "EOS092 Route Plan Line"
Weight
Boolean
Pallet
Boolean
IsHandled
Boolean
OnAfterRecalculateValues
local procedure OnAfterRecalculateValues(RoutePlanHeader: Record "EOS092 Route Plan Header"; var RoutePlanLine: Record "EOS092 Route Plan Line"; Weight: Boolean; Pallet: Boolean)
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
RoutePlanLine
Record "EOS092 Route Plan Line"
Weight
Boolean
Pallet
Boolean
OnBeforeInsertWhseShptHeader
local procedure OnBeforeInsertWhseShptHeader(var WhseShptHeader: Record "Warehouse Shipment Header"; WarehouseRequest: Record "Warehouse Request"; RoutePlanHeader: Record "EOS092 Route Plan Header")
Raised before insert the Warehouse Shipment Header.
Parameters / Return Value
WhseShptHeader
Record "Warehouse Shipment Header"
Warehouse Shipment Header to insert
WarehouseRequest
Record "Warehouse Request"
The Warehouse Request
RoutePlanHeader
Record "EOS092 Route Plan Header"
The Route Plan Header
OnBeforeInsertWhseRcptHeader
local procedure OnBeforeInsertWhseRcptHeader(var WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseRequest: Record "Warehouse Request")
Raised before insert the Warehouse Receipt Header.
Parameters / Return Value
WhseRcptHeader
Record "Warehouse Receipt Header"
Warehouse Receipt Header to insert
WarehouseRequest
Record "Warehouse Request"
The Warehouse Request
OnAfterFilterSalesHeader
local procedure OnAfterFilterSalesHeader(RoutePlanHeader: Record "EOS092 Route Plan Header"; var SalesHeader: Record "Sales Header")
Raised in the LookupSalesDocument procedure, after setting filters on the Sales Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
SalesHeader
Record "Sales Header"
Record “Sales Header”
OnAfterFilterSalesShipment
local procedure OnAfterFilterSalesShipment(RoutePlanHeader: Record "EOS092 Route Plan Header"; var SalesShptHeader: Record "Sales Shipment Header")
Raised in the LookupSalesShipment procedure, after setting filters on the Sales Shipment Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
SalesShptHeader
Record "Sales Shipment Header"
Record “Sales Shipment Header”
OnAfterFilterReturnReceipt
local procedure OnAfterFilterReturnReceipt(RoutePlanHeader: Record "EOS092 Route Plan Header"; var ReturnRcptHeader: Record "Return Receipt Header")
Raised in the LookupReturnReceipt procedure, after setting filters on the Return Receipt Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
ReturnRcptHeader
Record "Return Receipt Header"
Record “Return Receipt Header”
OnAfterFilterPurchaseHeader
local procedure OnAfterFilterPurchaseHeader(RoutePlanHeader: Record "EOS092 Route Plan Header"; var PurchHeader: Record "Purchase Header")
Raised in the LookupPurchaseDocument procedure, after setting filters on the Purchase Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
PurchHeader
Record "Purchase Header"
Record “Purchase Header”
OnAfterFilterPurchaseReceipt
local procedure OnAfterFilterPurchaseReceipt(RoutePlanHeader: Record "EOS092 Route Plan Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header")
Raised in the LookupPurchaseReceipt procedure, after setting filters on the Purch. Rcpt. Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
PurchRcptHeader
Record "Purch. Rcpt. Header"
Record “Purch. Rcpt. Header”
OnAfterFilterReturnShipment
local procedure OnAfterFilterReturnShipment(RoutePlanHeader: Record "EOS092 Route Plan Header"; var ReturnShptHeader: Record "Return Shipment Header")
Raised in the LookupReturnShipment procedure, after setting filters on the Return Shipment Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
ReturnShptHeader
Record "Return Shipment Header"
Record “Return Shipment Header”
OnAfterFilterTransferHeader
local procedure OnAfterFilterTransferHeader(RoutePlanHeader: Record "EOS092 Route Plan Header"; var TransferHeader: Record "Transfer Header")
Raised in the LookupTransferDocument procedure, after setting filters on the Transfer Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
TransferHeader
Record "Transfer Header"
Record “Transfer Header”
OnAfterFilterTransferShipment
local procedure OnAfterFilterTransferShipment(RoutePlanHeader: Record "EOS092 Route Plan Header"; var TransferShptHeader: Record "Transfer Shipment Header")
Raised in the LookupTransferShipment procedure, after setting filters on the Transfer Shipment Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
TransferShptHeader
Record "Transfer Shipment Header"
Record “Transfer Shipment Header”
OnAfterFilterTransferReceipt
local procedure OnAfterFilterTransferReceipt(RoutePlanHeader: Record "EOS092 Route Plan Header"; var TransferRcptHeader: Record "Transfer Receipt Header")
Raised in the LookupTransferReceipt procedure, after setting filters on the Transfer Receipt Header record.
Parameters / Return Value
RoutePlanHeader
Record "EOS092 Route Plan Header"
Record “EOS092 Route Plan Header”
TransferRcptHeader
Record "Transfer Receipt Header"
Record “Transfer Receipt Header”
OnGetDocumentSourceNo
local procedure OnGetDocumentSourceNo(RecRef: RecordRef; var SourceNo: Code[20])
Raised in the procedure GetDocumentSourceNo. Use it to return the Document No. for custom tables.
Parameters / Return Value
RecRef
RecordRef
The Document RecRef
SourceNo
Code[20]
The Document No. to return
OnInsertDocumentLineOnTransferFromSourceDoc
local procedure OnInsertDocumentLineOnTransferFromSourceDoc(var RoutePlanLine: Record "EOS092 Route Plan Line"; RecRef: RecordRef)
Raised in the procedure InsertDocumentLine, after set fields on Route Plan Line from the souce document. Use it to set the Route Plan Line from custom documents.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Line to insert
RecRef
RecordRef
Source Document RecRef
OnFilterGeolocationForSourceDocument
local procedure OnFilterGeolocationForSourceDocument(RoutePlanLine: Record "EOS092 Route Plan Line"; var RecRef: RecordRef)
Raised in the procedure RetrieveGeoLocation, to open and filter the RecRef according to the geolocation type of the document. Use it for custom documents.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Line specifies the souce document
RecRef
RecordRef
RecRef to open and filter
OnBeforeWhsePostShipment
local procedure OnBeforeWhsePostShipment(var WhseShptLine: Record "Warehouse Shipment Line"; RoutePlanHeader: Record "EOS092 Route Plan Header"; var IsHandled: Boolean)
Raised before posting Whse Shipment from Route Plan.
Parameters / Return Value
WhseShptLine
Record "Warehouse Shipment Line"
Current Whse Shipment Line to post
RoutePlanHeader
Record "EOS092 Route Plan Header"
The Route Plan Header
IsHandled
Boolean
if true, skip posting of whse shipment from route plan.
OnFindWhseShipmentToPostFromRoutePlan
local procedure OnFindWhseShipmentToPostFromRoutePlan(RoutePlanLine: Record "EOS092 Route Plan Line"; var ToShip: Boolean)
Raised before posting the warehouse shipments on the delivery route plan lines. Use it to specify whether warehouse shipment should be posted by setting the ToShip parameter to true.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
The Route Plan Line
ToShip
Boolean
if false, skip next code
OnFilterRoutePlanLineOnPostWarehouseShipments
local procedure OnFilterRoutePlanLineOnPostWarehouseShipments(var RoutePlanLine: Record "EOS092 Route Plan Line"; RoutePlanHeader: Record "EOS092 Route Plan Header")
Raised after filtering the Route Plan Lines to post the warehouse shipments. Use it to filter the Route Plan Lines.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Lines to filter
RoutePlanHeader
Record "EOS092 Route Plan Header"
The Route Plan Header
OnFilterRoutePlanLineOnCreateWarehouseShipments
local procedure OnFilterRoutePlanLineOnCreateWarehouseShipments(var RoutePlanLine: Record "EOS092 Route Plan Line"; RoutePlanHeader: Record "EOS092 Route Plan Header")
Raised after filtering the Route Plan Lines to create the warehouse shipments. Use it to filter the Route Plan Lines.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Lines to filter
RoutePlanHeader
Record "EOS092 Route Plan Header"
he Route Plan Header
OnAfterTransferSalesHeader
local procedure OnAfterTransferSalesHeader(var RoutePlanLine: Record "EOS092 Route Plan Line"; SalesHeader: Record "Sales Header")
Raised after setting the Route Plan Line from the Sales Header and before inserting it. Use it to modify the Route Plan Line.
Parameters / Return Value
RoutePlanLine
Record "EOS092 Route Plan Line"
Route Plan Line to insert
SalesHeader
Record "Sales Header"
The Sales Header to copy
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.