Codeunit "Service Warehouse Mgt."

ID 5995
Namespace: Microsoft.Service.Document

Methods

ServiceLineVerifyChange

procedure ServiceLineVerifyChange(var NewServiceLine: Record "Service Line", var OldServiceLine: Record "Service Line")

Parameters

Name Type Description
NewServiceLine Table Microsoft.Service.Document."Service Line"
OldServiceLine Table Microsoft.Service.Document."Service Line"

ServiceLineDelete

procedure ServiceLineDelete(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

ServiceHeaderVerifyChange

procedure ServiceHeaderVerifyChange(var NewServiceHeader: Record "Service Header", var OldServiceHeader: Record "Service Header")

Parameters

Name Type Description
NewServiceHeader Table Microsoft.Service.Document."Service Header"
OldServiceHeader Table Microsoft.Service.Document."Service Header"

FromServiceLine2ShptLine

procedure FromServiceLine2ShptLine(WarehouseShipmentHeader: Record "Warehouse Shipment Header", ServiceLine: Record "Service Line"): Boolean

Parameters

Name Type Description
WarehouseShipmentHeader Table Microsoft.Warehouse.Document."Warehouse Shipment Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

Returns

Type Description
Boolean

CheckIfFromServiceLine2ShptLine

procedure CheckIfFromServiceLine2ShptLine(ServiceLine: Record "Service Line"): Boolean

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

Returns

Type Description
Boolean

CheckIfFromServiceLine2ShptLine

procedure CheckIfFromServiceLine2ShptLine(ServiceLine: Record "Service Line", ReservedFromStock: Enum "Reservation From Stock"): Boolean

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"

Returns

Type Description
Boolean

Events

OnBeforeShowServiceLines

[IntegrationEvent(False,False)]
local procedure OnBeforeShowServiceLines(var ServiceLine: Record "Service Line", SourceSubType: Integer, SourceNo: Code[20], SourceLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
SourceSubType Integer
SourceNo Code[20]
SourceLineNo Integer
IsHandled Boolean

OnBeforeShowAttachedServiceLines

[IntegrationEvent(False,False)]
local procedure OnBeforeShowAttachedServiceLines(var ServiceLine: Record "Service Line", SourceSubType: Integer, SourceNo: Code[20], SourceLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
SourceSubType Integer
SourceNo Code[20]
SourceLineNo Integer
IsHandled Boolean

OnAfterServiceLineVerifyChange

[IntegrationEvent(False,False)]
local procedure OnAfterServiceLineVerifyChange(var NewRecordRef: RecordRef, var OldRecordRef: RecordRef)

Parameters

Name Type Description
NewRecordRef RecordRef
OldRecordRef RecordRef

OnAfterServiceLineDelete

[IntegrationEvent(False,False)]
local procedure OnAfterServiceLineDelete(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeServiceLineVerifyChange

[IntegrationEvent(False,False)]
local procedure OnBeforeServiceLineVerifyChange(var NewServiceLine: Record "Service Line", var OldServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
NewServiceLine Table Microsoft.Service.Document."Service Line"
OldServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnAfterCreateShptLineFromServiceLine

[IntegrationEvent(False,False)]
local procedure OnAfterCreateShptLineFromServiceLine(var WarehouseShipmentLine: Record "Warehouse Shipment Line", WarehouseShipmentHeader: Record "Warehouse Shipment Header", ServiceLine: Record "Service Line")

Parameters

Name Type Description
WarehouseShipmentLine Table Microsoft.Warehouse.Document."Warehouse Shipment Line"
WarehouseShipmentHeader Table Microsoft.Warehouse.Document."Warehouse Shipment Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeFromService2ShptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFromService2ShptLine(WarehouseShipmentHeader: Record "Warehouse Shipment Header", ServiceLine: Record "Service Line", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
WarehouseShipmentHeader Table Microsoft.Warehouse.Document."Warehouse Shipment Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
Result Boolean
IsHandled Boolean

OnFromServiceLine2ShptLineOnAfterInitNewLine

[IntegrationEvent(False,False)]
local procedure OnFromServiceLine2ShptLineOnAfterInitNewLine(var WarehouseShipmentLine: Record "Warehouse Shipment Line", WarehouseShipmentHeader: Record "Warehouse Shipment Header", ServiceLine: Record "Service Line")

Parameters

Name Type Description
WarehouseShipmentLine Table Microsoft.Warehouse.Document."Warehouse Shipment Line"
WarehouseShipmentHeader Table Microsoft.Warehouse.Document."Warehouse Shipment Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnFromServiceLine2ShptLineOnBeforeCreateShptLine

[IntegrationEvent(False,False)]
local procedure OnFromServiceLine2ShptLineOnBeforeCreateShptLine(var WarehouseShipmentLine: Record "Warehouse Shipment Line", WarehouseShipmentHeader: Record "Warehouse Shipment Header", ServiceHeader: Record "Service Header", ServiceLine: Record "Service Line")

Parameters

Name Type Description
WarehouseShipmentLine Table Microsoft.Warehouse.Document."Warehouse Shipment Line"
WarehouseShipmentHeader Table Microsoft.Warehouse.Document."Warehouse Shipment Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeFromService2ShptLineOnAfterGetServiceHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeFromService2ShptLineOnAfterGetServiceHeader(ServiceHeader: Record "Service Header", var WarehouseShipmentHeader: Record "Warehouse Shipment Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
WarehouseShipmentHeader Table Microsoft.Warehouse.Document."Warehouse Shipment Header"

OnSetFiltersOnSourceTablesOnBeforeSetServiceTableView

[IntegrationEvent(False,False)]
local procedure OnSetFiltersOnSourceTablesOnBeforeSetServiceTableView(var WarehouseSourceFilter: Record "Warehouse Source Filter", var WarehouseRequest: Record "Warehouse Request", var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
WarehouseSourceFilter Table Microsoft.Warehouse.Request."Warehouse Source Filter"
WarehouseRequest Table Microsoft.Warehouse.Request."Warehouse Request"
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeCalcCrossDockToServiceOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcCrossDockToServiceOrder(var WhseCrossDockOpportunity: Record "Whse. Cross-Dock Opportunity", ItemNo: Code[20], VariantCode: Code[10], LocationCode: Code[10], CrossDockDate: Date, var QtyOnPick: Decimal, var QtyPicked: Decimal, LineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
WhseCrossDockOpportunity Table Microsoft.Warehouse.CrossDock."Whse. Cross-Dock Opportunity"
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]
CrossDockDate Date
QtyOnPick Decimal
QtyPicked Decimal
LineNo Integer
IsHandled Boolean

OnCalcCrossDockToServiceOrderOnAfterServiceLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCalcCrossDockToServiceOrderOnAfterServiceLineSetFilters(var ServiceLine: Record "Service Line", var WhseCrossDockOpp: Record "Whse. Cross-Dock Opportunity", var QtyOnPick: Decimal, var QtyPicked: Decimal, ItemNo: Code[20], VariantCode: Code[10], LocationCode: Code[10], CrossDockDate: Date, LineNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
WhseCrossDockOpp Table Microsoft.Warehouse.CrossDock."Whse. Cross-Dock Opportunity"
QtyOnPick Decimal
QtyPicked Decimal
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]
CrossDockDate Date
LineNo Integer

OnCalcCrossDockToServiceOrderOnAfterInsertCrossDockLine

[IntegrationEvent(False,False)]
local procedure OnCalcCrossDockToServiceOrderOnAfterInsertCrossDockLine(ServiceLine: Record "Service Line", var WhseCrossDockOpp: Record "Whse. Cross-Dock Opportunity", var QtyOnPick: Decimal, var QtyPicked: Decimal, ItemNo: Code[20], VariantCode: Code[10], LocationCode: Code[10], CrossDockDate: Date, LineNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
WhseCrossDockOpp Table Microsoft.Warehouse.CrossDock."Whse. Cross-Dock Opportunity"
QtyOnPick Decimal
QtyPicked Decimal
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]
CrossDockDate Date
LineNo Integer

OnCalcCrossDockToServiceOrderOnBeforeInsertCrossDockLine

[IntegrationEvent(False,False)]
local procedure OnCalcCrossDockToServiceOrderOnBeforeInsertCrossDockLine(ServiceLine: Record "Service Line", var WhseCrossDockOpp: Record "Whse. Cross-Dock Opportunity", var QtyOnPick: Decimal, var QtyPicked: Decimal, ItemNo: Code[20], VariantCode: Code[10], LocationCode: Code[10], CrossDockDate: Date, LineNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
WhseCrossDockOpp Table Microsoft.Warehouse.CrossDock."Whse. Cross-Dock Opportunity"
QtyOnPick Decimal
QtyPicked Decimal
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]
CrossDockDate Date
LineNo Integer

See also