Skip to content

KVSKBADispatchLib#

Procedures#

ExistsDispHandLineForWhseShpt(Record Warehouse Shipment Line) : Boolean#

Summary: Checks if a dispatch handling line already exists for the given warehouse shipment line.

procedure ExistsDispHandLineForWhseShpt(WarehouseShipmentLine: Record "Warehouse Shipment Line"): Boolean

Parameters:

  • WarehouseShipmentLine: The warehouse shipment line to check

Returns: True if a dispatch handling line exists, false otherwise

Remarks: This function searches for existing dispatch handling lines linked to the specified warehouse shipment line using the warehouse document type, number, and line number.

InsertDispHandLineFromWhseShpt(Record Warehouse Shipment Header, Record Warehouse Shipment Line, Record KVSKBADispatchHandlingHeader, Boolean) : Boolean#

Summary: Inserts a dispatch handling line from a warehouse shipment line.

procedure InsertDispHandLineFromWhseShpt(WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; OnRegisterPick: Boolean): Boolean

Parameters:

  • WarehouseShipmentHeader: The warehouse shipment header
  • WarehouseShipmentLine: The warehouse shipment line to create the dispatch line from
  • DispatchHandlingHeader: The dispatch handling header to add the line to
  • OnRegisterPick: Indicates if this is called during pick registration

Returns: True if a line was created, false otherwise

Remarks: This function creates dispatch handling lines from warehouse shipment lines, handling item tracking, quantity calculations based on location settings, and updating the dispatch header with shipping information.

CheckWhseShpt(Record Warehouse Shipment Line, Record KVSKBADispatchHandlingHeader) : Boolean#

Summary: Checks if a warehouse shipment line can be used for creating dispatch handling lines.

procedure CheckWhseShpt(WarehouseShipmentLine: Record "Warehouse Shipment Line"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"): Boolean

Parameters:

  • WarehouseShipmentLine: The warehouse shipment line to check
  • DispatchHandlingHeader: The dispatch handling header

Returns: True if the line can be used, false otherwise

Remarks: This function validates warehouse shipment lines for dispatch creation, checking quantities, item tracking requirements, and location settings without actually creating the lines.

InsertDispHandLineFromInvtPick(Record Warehouse Activity Line, Record KVSKBADispatchHandlingHeader, Code[10]) :#

Summary: Inserts a dispatch handling line from an inventory pick line.

procedure InsertDispHandLineFromInvtPick(WarehouseActivityLine: Record "Warehouse Activity Line"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DispatchLocationCode: Code[10]): 

Parameters:

  • WarehouseActivityLine: The inventory pick line to insert from
  • DispatchHandlingHeader: The dispatch handling header
  • DispatchLocationCode: The dispatch location code

Remarks: The function assumes that the inventory pick line has not yet been assigned to a dispatch handling line.

InsertDispHanLineFromSalesShpt(Record Sales Shipment Line, Record Sales Shipment Header, Record KVSKBADispatchHandlingHeader) : Boolean#

Summary: Inserts dispatch handling lines from a sales shipment line into a dispatch handling header.

procedure InsertDispHanLineFromSalesShpt(SalesShipmentLine: Record "Sales Shipment Line"; SalesShipmentHeader: Record "Sales Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"): Boolean

Parameters:

  • SalesShipmentLine: The sales shipment line to create dispatch lines from
  • SalesShipmentHeader: The sales shipment header
  • DispatchHandlingHeader: The dispatch handling header to add lines to

Returns: True if lines were successfully created, false otherwise

Remarks: This function creates dispatch handling lines from sales shipment lines, handling item tracking, quantity calculations based on location settings, and updating dispatch headers with customer information.

CreateAndAssignPackagesForDispatch(Code[20]) :#

Summary: Creates and assigns package lines for all unassigned dispatch handling lines with package numbers.

procedure CreateAndAssignPackagesForDispatch(DispatchNo: Code[20]): 

Parameters:

  • DispatchNo: The dispatch order number to process

Remarks: This function automatically creates carrier/package lines for dispatch handling lines that have package numbers but are not yet assigned to any package structure. It also calculates the package structure for the entire dispatch order. Only processes lines if the inventory setup allows adding carriers as packaging.

CreateAndAssignPackageLine(Record KVSKBADispatchHandlingLine) :#

Summary: Creates and assigns a package line for a given dispatch handling line with a package number.

procedure CreateAndAssignPackageLine(DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"): 

Parameters:

  • DispatchHandlingLine: The dispatch handling line to process

Remarks: This function checks if a package line already exists for the provided dispatch handling line. If not, it creates a new package line and assigns the dispatch handling line to that package.

CreatePackageInDispatchOrder(Record KVSKBADispatchHandlingLine) :#

Summary: Creates a package line in the dispatch order for a given dispatch handling line with a package number.

procedure CreatePackageInDispatchOrder(DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"): 

Parameters:

  • DispatchHandlingLine: The dispatch handling line to process

Remarks: This function creates a new package line in the dispatch order based on the package number specified in the provided dispatch handling line. It retrieves the necessary carrier information and uses the dispatch management codeunit to create the package line.

Events#

OnAfterInsertDispHandLineFromWhseShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Header, Record Warehouse Shipment Line, Boolean, Record Tracking Specification) :#

Summary: Event fired after a dispatch handling line is inserted from a warehouse shipment.

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDispHandLineFromWhseShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentHeaderPar: Record "Warehouse Shipment Header"; WarehouseShipmentLinePar: Record "Warehouse Shipment Line"; OnRegisterPickPar: Boolean; var TempTrackingSpecificationVar: Record "Tracking Specification"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterInsertDispHandLineFromWhseShpt', '', false, false)]
local procedure DoSomethingOnAfterInsertDispHandLineFromWhseShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentHeaderPar: Record "Warehouse Shipment Header"; WarehouseShipmentLinePar: Record "Warehouse Shipment Line"; OnRegisterPickPar: Boolean; var TempTrackingSpecificationVar: Record "Tracking Specification")
begin
end;

Parameters:

  • DispatchHandlingLineVar: The created dispatch handling line
  • DispatchHandlingHeaderVar: The dispatch handling header
  • WarehouseShipmentHeaderPar: The source warehouse shipment header
  • WarehouseShipmentLinePar: The source warehouse shipment line
  • OnRegisterPickPar: Indicates if called during pick registration
  • TempTrackingSpecificationVar: Tracking specification used for the line

Remarks: This event allows subscribers to perform additional processing after a dispatch handling line has been created from a warehouse shipment line.

OnAfterInsertDispHandLineFromInvtPick(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader, Record Warehouse Activity Line) :#

Summary: Event fired after a dispatch handling line is inserted from an inventory pick.

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDispHandLineFromInvtPick(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; WarehouseActivityLinePar: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterInsertDispHandLineFromInvtPick', '', false, false)]
local procedure DoSomethingOnAfterInsertDispHandLineFromInvtPick(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; WarehouseActivityLinePar: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • DispatchHandlingLineVar: The created dispatch handling line
  • DispatchHandlingHeaderVar: The dispatch handling header
  • WarehouseActivityLinePar: The source warehouse activity line

Remarks: This event allows subscribers to perform additional processing after a dispatch handling line has been created from an inventory pick line.

OnAfterInsertDispHanLineFromSalesShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader, Record Sales Shipment Header, Record Sales Shipment Line, Record Item Ledger Entry) :#

Summary: Event fired after a dispatch handling line is inserted from a sales shipment.

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDispHanLineFromSalesShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; SalesShipmentHeaderPar: Record "Sales Shipment Header"; SalesShipmentLinePar: Record "Sales Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterInsertDispHanLineFromSalesShpt', '', false, false)]
local procedure DoSomethingOnAfterInsertDispHanLineFromSalesShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; SalesShipmentHeaderPar: Record "Sales Shipment Header"; SalesShipmentLinePar: Record "Sales Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry")
begin
end;

Parameters:

  • DispatchHandlingLineVar: The created dispatch handling line
  • DispatchHandlingHeaderVar: The dispatch handling header
  • SalesShipmentHeaderPar: The source sales shipment header
  • SalesShipmentLinePar: The source sales shipment line
  • TempItemLedgerEntryVar: The item ledger entry used for tracking

Remarks: This event allows subscribers to perform additional processing after a dispatch handling line has been created from a sales shipment line.

OnAfterInsertDispHanLineFromTransShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader, Record Transfer Shipment Header, Record Transfer Shipment Line, Record Item Ledger Entry) :#

Summary: Event fired after a dispatch handling line is inserted from a transfer shipment.

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDispHanLineFromTransShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; TransferShipmentHeaderPar: Record "Transfer Shipment Header"; TransferShipmentLinePar: Record "Transfer Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterInsertDispHanLineFromTransShpt', '', false, false)]
local procedure DoSomethingOnAfterInsertDispHanLineFromTransShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; TransferShipmentHeaderPar: Record "Transfer Shipment Header"; TransferShipmentLinePar: Record "Transfer Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry")
begin
end;

Parameters:

  • DispatchHandlingLineVar: The created dispatch handling line
  • DispatchHandlingHeaderVar: The dispatch handling header
  • TransferShipmentHeaderPar: The source transfer shipment header
  • TransferShipmentLinePar: The source transfer shipment line
  • TempItemLedgerEntryVar: The item ledger entry used for tracking

Remarks: This event allows subscribers to perform additional processing after a dispatch handling line has been created from a transfer shipment line.

OnAfterInsertDispHandLineFromRtrnShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader, Record Return Shipment Header, Record Return Shipment Line, Record Item Ledger Entry) :#

Summary: Event fired after a dispatch handling line is inserted from a return shipment.

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDispHandLineFromRtrnShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; ReturnShipmentHeaderPar: Record "Return Shipment Header"; ReturnShipmentLinePar: Record "Return Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterInsertDispHandLineFromRtrnShpt', '', false, false)]
local procedure DoSomethingOnAfterInsertDispHandLineFromRtrnShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; ReturnShipmentHeaderPar: Record "Return Shipment Header"; ReturnShipmentLinePar: Record "Return Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry")
begin
end;

Parameters:

  • DispatchHandlingLineVar: The created dispatch handling line
  • DispatchHandlingHeaderVar: The dispatch handling header
  • ReturnShipmentHeaderPar: The source return shipment header
  • ReturnShipmentLinePar: The source return shipment line
  • TempItemLedgerEntryVar: The item ledger entry used for tracking

Remarks: This event allows subscribers to perform additional processing after a dispatch handling line has been created from a return shipment line.

OnAfterInsertDispHanLineFromServiceShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader, Record Service Shipment Header, Record Service Shipment Line, Record Item Ledger Entry) :#

Summary: Event fired after a dispatch handling line is inserted from a service shipment.

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDispHanLineFromServiceShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; ServiceShipmentHeaderPar: Record "Service Shipment Header"; ServiceShipmentLinePar: Record "Service Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterInsertDispHanLineFromServiceShpt', '', false, false)]
local procedure DoSomethingOnAfterInsertDispHanLineFromServiceShpt(var DispatchHandlingLineVar: Record "KVSKBADispatchHandlingLine"; var DispatchHandlingHeaderVar: Record "KVSKBADispatchHandlingHeader"; ServiceShipmentHeaderPar: Record "Service Shipment Header"; ServiceShipmentLinePar: Record "Service Shipment Line"; var TempItemLedgerEntryVar: Record "Item Ledger Entry")
begin
end;

Parameters:

  • DispatchHandlingLineVar: The created dispatch handling line
  • DispatchHandlingHeaderVar: The dispatch handling header
  • ServiceShipmentHeaderPar: The source service shipment header
  • ServiceShipmentLinePar: The source service shipment line
  • TempItemLedgerEntryVar: The item ledger entry used for tracking

Remarks: This event allows subscribers to perform additional processing after a dispatch handling line has been created from a service shipment line.

OnBeforeModifyInInsertDispHanLineFromDirectTransLine(Record KVSKBADispatchHandlingLine, Record Direct Trans. Line, Record Direct Trans. Header, Record KVSKBADispatchHandlingHeader) :#

Summary: Event fired before modifying a dispatch handling line created from a direct transfer line.

[IntegrationEvent(false, false)]
local procedure OnBeforeModifyInInsertDispHanLineFromDirectTransLine(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; DirectTransLine: Record "Direct Trans. Line"; DirectTransHeader: Record "Direct Trans. Header"; DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeModifyInInsertDispHanLineFromDirectTransLine', '', false, false)]
local procedure DoSomethingOnBeforeModifyInInsertDispHanLineFromDirectTransLine(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; DirectTransLine: Record "Direct Trans. Line"; DirectTransHeader: Record "Direct Trans. Header"; DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;

Parameters:

  • DispatchHandlingLine: The dispatch handling line to be modified
  • DirectTransLine: The source direct transfer line
  • DirectTransHeader: The source direct transfer header
  • DispatchHandlingHeader: The dispatch handling header

Remarks: This event allows subscribers to modify dispatch handling line fields before the line is saved to the database.

OnElseCreateDispatchLineWithRemainingQuantities(Code[20], Boolean) :#

Summary: Event fired for custom handling of dispatch quantity proposal options.

[IntegrationEvent(false, false)]
local procedure OnElseCreateDispatchLineWithRemainingQuantities(LocationCode: Code[20]; var ReturnValue: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnElseCreateDispatchLineWithRemainingQuantities', '', false, false)]
local procedure DoSomethingOnElseCreateDispatchLineWithRemainingQuantities(LocationCode: Code[20]; var ReturnValue: Boolean)
begin
end;

Parameters:

  • LocationCode: The location code to check
  • ReturnValue: The return value indicating whether to create dispatch lines with remaining quantities

Remarks: This event allows subscribers to implement custom logic for dispatch quantity proposal options beyond the standard "Quantity" and "Remaining Quantity" options.

OnBeforeExistsDispatchHandlingLinesForDispatchHandlingOrder(Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#

Summary: Event fired before checking if dispatch handling lines exist for a dispatch handling order.

[IntegrationEvent(false, false)]
local procedure OnBeforeExistsDispatchHandlingLinesForDispatchHandlingOrder(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean; var ReturnValue: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeExistsDispatchHandlingLinesForDispatchHandlingOrder', '', false, false)]
local procedure DoSomethingOnBeforeExistsDispatchHandlingLinesForDispatchHandlingOrder(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean; var ReturnValue: Boolean)
begin
end;

Parameters:

  • KVSKBADispatchHandlingHeader: The dispatch handling header to check
  • IsHandled: Indicates if the event is handled by a subscriber
  • ReturnValue: The return value if handled by a subscriber

Remarks: This event allows subscribers to implement custom logic for determining if dispatch handling lines exist for a given dispatch handling order.

OnBeforeErrorInCheckSourceDocumentPosted(Record KVSKBADispatchHandlingLine, Boolean) :#

Summary: Event fired before throwing an error in source document posting check.

[IntegrationEvent(false, false)]
local procedure OnBeforeErrorInCheckSourceDocumentPosted(DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandeld: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeErrorInCheckSourceDocumentPosted', '', false, false)]
local procedure DoSomethingOnBeforeErrorInCheckSourceDocumentPosted(DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandeld: Boolean)
begin
end;

Parameters:

  • DispatchHandlingLine: The dispatch handling line being checked
  • IsHandeld: Indicates if the event is handled by a subscriber

Remarks: This event allows subscribers to implement custom validation logic before throwing an error about source document posting status.

OnBeforeCreateAndAssignPackagesForDispatch(Code[20], Boolean) :#

Summary: Event fired before creating and assigning packages for dispatch.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateAndAssignPackagesForDispatch(DispatchNo: Code[20]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeCreateAndAssignPackagesForDispatch', '', false, false)]
local procedure DoSomethingOnBeforeCreateAndAssignPackagesForDispatch(DispatchNo: Code[20]; var IsHandled: Boolean)
begin
end;

Parameters:

  • DispatchNo: The dispatch order number
  • IsHandled: Indicates if the event is handled by a subscriber

Remarks: This event allows subscribers to implement custom logic for creating and assigning packages to dispatch handling lines.

OnBeforeCreatePackageInDispatchOrder(Record KVSKBADispatchHandlingLine, Boolean) :#

Summary: Event fired before creating a package in a dispatch order.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePackageInDispatchOrder(DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeCreatePackageInDispatchOrder', '', false, false)]
local procedure DoSomethingOnBeforeCreatePackageInDispatchOrder(DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean)
begin
end;

Parameters:

  • DispatchHandlingLine: The dispatch handling line that triggers package creation
  • IsHandled: Indicates if the event is handled by a subscriber

Remarks: This event allows subscribers to implement custom logic for creating package lines in dispatch orders.

OnBeforeFieldErrorInInsertDispHandLineFromWhseShpt(Record Item Journal Line, Record Warehouse Shipment Line, Boolean) :#

Summary: Event fired before a field error in warehouse shipment line processing.

[IntegrationEvent(false, false)]
local procedure OnBeforeFieldErrorInInsertDispHandLineFromWhseShpt(var ItemJournalLine: Record "Item Journal Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeFieldErrorInInsertDispHandLineFromWhseShpt', '', false, false)]
local procedure DoSomethingOnBeforeFieldErrorInInsertDispHandLineFromWhseShpt(var ItemJournalLine: Record "Item Journal Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ItemJournalLine: The item journal line with entry type information
  • WarehouseShipmentLine: The warehouse shipment line being processed
  • IsHandled: Indicates if the event is handled by a subscriber

Remarks: This event allows subscribers to handle unsupported source types in warehouse shipment line processing before a field error is thrown.

OnBeforeFieldErrorInCheckWhseShpt(Record Item Journal Line, Record Warehouse Shipment Line, Boolean) :#

Summary: Event fired before a field error in warehouse shipment checking.

[IntegrationEvent(false, false)]
local procedure OnBeforeFieldErrorInCheckWhseShpt(var ItemJournalLine: Record "Item Journal Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeFieldErrorInCheckWhseShpt', '', false, false)]
local procedure DoSomethingOnBeforeFieldErrorInCheckWhseShpt(var ItemJournalLine: Record "Item Journal Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ItemJournalLine: The item journal line with entry type information
  • WarehouseShipmentLine: The warehouse shipment line being checked
  • IsHandled: Indicates if the event is handled by a subscriber

Remarks: This event allows subscribers to handle unsupported source types in warehouse shipment line checking before a field error is thrown.

OnBeforeInsertDispHandLineFromInvtPick(Record Item Journal Line, Record Warehouse Activity Line, Boolean) :#

Summary: Event fired before inventory pick line processing.

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDispHandLineFromInvtPick(var ItemJournalLine: Record "Item Journal Line"; WarehouseActivityLine: Record "Warehouse Activity Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnBeforeInsertDispHandLineFromInvtPick', '', false, false)]
local procedure DoSomethingOnBeforeInsertDispHandLineFromInvtPick(var ItemJournalLine: Record "Item Journal Line"; WarehouseActivityLine: Record "Warehouse Activity Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ItemJournalLine: The item journal line with entry type information
  • WarehouseActivityLine: The warehouse activity line being processed
  • IsHandled: Indicates if the event is handled by a subscriber

Remarks: This event allows subscribers to handle unsupported source types in inventory pick line processing before a field error is thrown.

OnAfterUpdateDispatchHandlingHeaderFromWarehouseShipment(Record KVSKBADispatchHandlingHeader, Enum Warehouse Activity Source Document, Integer, Code[20], Text, Enum KVSKBADispatchSourceDocument, Code[20], Code[10]) :#

[IntegrationEvent(false, false)]
local procedure OnAfterUpdateDispatchHandlingHeaderFromWarehouseShipment(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; SourceDocument: Enum "Warehouse Activity Source Document"; SourceSubType: Integer; SourceNo: Code[20]; ConfirmMessage: Text; WhseDocType: Enum "KVSKBADispatchSourceDocument"; WhseDocNo: Code[20]; DispatchLocationCode: Code[10]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterUpdateDispatchHandlingHeaderFromWarehouseShipment', '', false, false)]
local procedure DoSomethingOnAfterUpdateDispatchHandlingHeaderFromWarehouseShipment(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; SourceDocument: Enum "Warehouse Activity Source Document"; SourceSubType: Integer; SourceNo: Code[20]; ConfirmMessage: Text; WhseDocType: Enum "KVSKBADispatchSourceDocument"; WhseDocNo: Code[20]; DispatchLocationCode: Code[10])
begin
end;

OnAfterSetFilterReservEntry(Record Reservation Entry, Record Warehouse Shipment Line) :#

Summary: Event fired after setting filters on reservation entries.

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterReservEntry(var ReservationEntry: Record "Reservation Entry"; WarehouseShipmentLine: Record "Warehouse Shipment Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchLib", 'OnAfterSetFilterReservEntry', '', false, false)]
local procedure DoSomethingOnAfterSetFilterReservEntry(var ReservationEntry: Record "Reservation Entry"; WarehouseShipmentLine: Record "Warehouse Shipment Line")
begin
end;

Parameters:

  • ReservationEntry: The reservation entry with applied filters
  • WarehouseShipmentLine: The warehouse shipment line used for filtering

Remarks: This event allows subscribers to modify or add additional filters to reservation entries when retrieving item tracking information.