Skip to content

KVSKBAWarehouseLib#

Procedures#

TransPostCodeToWhseShipLine(Code[10], Record Warehouse Shipment Line) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

Summary: Set the Posting Code in a specified Warehouse Shipment Line

[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
procedure TransPostCodeToWhseShipLine(PostingCode: Code[10]; var WarehouseShipmentLine: Record "Warehouse Shipment Line"): 

Parameters:

  • PostingCode: Posting Code to set
  • WarehouseShipmentLine: Target Warehouse Shipment Line

Remarks: This procedure is marked as obsolete and will be removed in version 25.3 as the KVSKBAPostingCode table is no longer used.

TransferOpenWarehouseShipmentToDispatchOrder(Record Warehouse Shipment Header) :#

Summary: Transfers an open warehouse shipment to a dispatch order.

procedure TransferOpenWarehouseShipmentToDispatchOrder(WarehouseShipmentHeader: Record "Warehouse Shipment Header"): 

Parameters:

  • WarehouseShipmentHeader: The warehouse shipment header to transfer.

Remarks: Checks if a dispatch handling line exists for the shipment. If not, prompts to create a new dispatch order. If existing dispatch lines are found, gives user option to add to existing or create new dispatch order.

Events#

OnAfterFromPurchLine2InvPutAwayLine(Record Purchase Line, Record Warehouse Activity Line) :#

Summary: Integration event raised after transferring purchase line fields to inventory put-away line.

[IntegrationEvent(false, false)]
local procedure OnAfterFromPurchLine2InvPutAwayLine(PurchaseLine: Record "Purchase Line"; var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnAfterFromPurchLine2InvPutAwayLine', '', false, false)]
local procedure DoSomethingOnAfterFromPurchLine2InvPutAwayLine(PurchaseLine: Record "Purchase Line"; var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • PurchaseLine: The source purchase line.
  • WarehouseActivityLine: The target warehouse activity line (var).

Remarks: Subscribe to this event to add custom field transfers from purchase lines to inventory put-away lines. This event is called by FromPurchaseLineToInventoryPutAwayLine.

OnAfterFromSalesLine2InvPutAwayLine(Record Sales Line, Record Warehouse Activity Line) :#

Summary: Integration event raised after transferring sales line fields to inventory put-away line.

[IntegrationEvent(false, false)]
local procedure OnAfterFromSalesLine2InvPutAwayLine(SalesLine: Record "Sales Line"; var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnAfterFromSalesLine2InvPutAwayLine', '', false, false)]
local procedure DoSomethingOnAfterFromSalesLine2InvPutAwayLine(SalesLine: Record "Sales Line"; var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • SalesLine: The source sales line.
  • WarehouseActivityLine: The target warehouse activity line (var).

Remarks: Subscribe to this event to add custom field transfers from sales lines to inventory put-away lines. This event is called by FromSalesLineToInventoryPutAwayLine.

OnAfterFromTransLine2InvPutAwayLine(Record Transfer Line, Record Warehouse Activity Line) :#

Summary: Integration event raised after transferring transfer line fields to inventory put-away line.

[IntegrationEvent(false, false)]
local procedure OnAfterFromTransLine2InvPutAwayLine(TransferLine: Record "Transfer Line"; var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnAfterFromTransLine2InvPutAwayLine', '', false, false)]
local procedure DoSomethingOnAfterFromTransLine2InvPutAwayLine(TransferLine: Record "Transfer Line"; var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • TransferLine: The source transfer line.
  • WarehouseActivityLine: The target warehouse activity line (var).

Remarks: Subscribe to this event to add custom field transfers from transfer lines to inventory put-away lines. This event is called by FromTransLineToInventoryPutAwayLine.

OnAfterFromPurchLine2InvPickLine(Record Purchase Line, Record Warehouse Activity Line) :#

Summary: Integration event raised after transferring purchase line fields to inventory pick line.

[IntegrationEvent(false, false)]
local procedure OnAfterFromPurchLine2InvPickLine(PurchaseLine: Record "Purchase Line"; var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnAfterFromPurchLine2InvPickLine', '', false, false)]
local procedure DoSomethingOnAfterFromPurchLine2InvPickLine(PurchaseLine: Record "Purchase Line"; var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • PurchaseLine: The source purchase line.
  • WarehouseActivityLine: The target warehouse activity line (var).

Remarks: Subscribe to this event to add custom field transfers from purchase lines to inventory pick lines. This event is called by FromPurchaseLineToInventoryPickLine.

OnAfterFromSalesLine2InvPickLine(Record Sales Line, Record Warehouse Activity Line) :#

Summary: Integration event raised after transferring sales line fields to inventory pick line.

[IntegrationEvent(false, false)]
local procedure OnAfterFromSalesLine2InvPickLine(SalesLine: Record "Sales Line"; var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnAfterFromSalesLine2InvPickLine', '', false, false)]
local procedure DoSomethingOnAfterFromSalesLine2InvPickLine(SalesLine: Record "Sales Line"; var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • SalesLine: The source sales line.
  • WarehouseActivityLine: The target warehouse activity line (var).

Remarks: Subscribe to this event to add custom field transfers from sales lines to inventory pick lines. This event is called by FromSalesLineToInventoryPickLine.

OnAfterFromTransLine2InvPickLine(Record Transfer Line, Record Warehouse Activity Line) :#

Summary: Integration event raised after transferring transfer line fields to inventory pick line.

[IntegrationEvent(false, false)]
local procedure OnAfterFromTransLine2InvPickLine(TransferLine: Record "Transfer Line"; var WarehouseActivityLine: Record "Warehouse Activity Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnAfterFromTransLine2InvPickLine', '', false, false)]
local procedure DoSomethingOnAfterFromTransLine2InvPickLine(TransferLine: Record "Transfer Line"; var WarehouseActivityLine: Record "Warehouse Activity Line")
begin
end;

Parameters:

  • TransferLine: The source transfer line.
  • WarehouseActivityLine: The target warehouse activity line (var).

Remarks: Subscribe to this event to add custom field transfers from transfer lines to inventory pick lines. This event is called by FromTransferLineToInventoryPickLine.

OnCreateWhseRqstLinesForPurchOnAfterInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Purchase Line) :#

Summary: Integration event raised after inserting a warehouse request line created from a purchase line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForPurchOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; PurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForPurchOnAfterInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForPurchOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The inserted warehouse request line (var).
  • WarehouseRequest: The parent warehouse request.
  • PurchaseLine: The source purchase line.

Remarks: Subscribe to this event to perform actions or modify data after warehouse request line creation from purchase lines. This event is called by CreateWarehouseRequestLineFromPurchaseLine.

OnCreateWhseRqstLinesForPurchOnBeforeInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Purchase Line) :#

Summary: Integration event raised before inserting a warehouse request line created from a purchase line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForPurchOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; PurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForPurchOnBeforeInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForPurchOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The warehouse request line to be inserted (var).
  • WarehouseRequest: The parent warehouse request.
  • PurchaseLine: The source purchase line.

Remarks: Subscribe to this event to modify the warehouse request line before insertion or add custom validations. This event is called by CreateWarehouseRequestLineFromPurchaseLine.

OnCreateWhseRqstLinesForProdCompOnAfterInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Prod. Order Component) :#

Summary: Integration event raised after inserting a warehouse request line created from a production order component.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForProdCompOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderCompLoc: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForProdCompOnAfterInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForProdCompOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderCompLoc: Record "Prod. Order Component")
begin
end;

Parameters:

  • WarehouseRequestLine: The inserted warehouse request line (var).
  • WarehouseRequest: The parent warehouse request.
  • ProdOrderCompLoc: The source production order component.

Remarks: Subscribe to this event to perform actions or modify data after warehouse request line creation from production components. This event is called by CreateWarehouseRequestFromProdOrderComponent.

OnCreateWhseRqstLinesForProdCompOnBeforeInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Prod. Order Component) :#

Summary: Integration event raised before inserting a warehouse request line created from a production order component.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForProdCompOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderCompLoc: Record "Prod. Order Component"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForProdCompOnBeforeInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForProdCompOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderCompLoc: Record "Prod. Order Component")
begin
end;

Parameters:

  • WarehouseRequestLine: The warehouse request line to be inserted (var).
  • WarehouseRequest: The parent warehouse request.
  • ProdOrderCompLoc: The source production order component.

Remarks: Subscribe to this event to modify the warehouse request line before insertion or add custom validations. This event is called by CreateWarehouseRequestFromProdOrderComponent.

OnCreateWhseRqstLinesForProdLineOnAfterInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Prod. Order Line) :#

Summary: Integration event raised after inserting a warehouse request line created from a production order line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForProdLineOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForProdLineOnAfterInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForProdLineOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The inserted warehouse request line (var).
  • WarehouseRequest: The parent warehouse request.
  • ProdOrderLine: The source production order line.

Remarks: Subscribe to this event to perform actions or modify data after warehouse request line creation from production order lines. This event is called by CreateWarehouseRequestLineFromProdOrderLine.

OnCreateWhseRqstLinesForProdLineOnBeforeInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Prod. Order Line) :#

Summary: Integration event raised before inserting a warehouse request line created from a production order line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForProdLineOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForProdLineOnBeforeInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForProdLineOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The warehouse request line to be inserted (var).
  • WarehouseRequest: The parent warehouse request.
  • ProdOrderLine: The source production order line.

Remarks: Subscribe to this event to modify the warehouse request line before insertion or add custom validations. This event is called by CreateWarehouseRequestLineFromProdOrderLine.

OnCreateWhseRqstLinesForSalesOnAfterWhseRqstLineInsert(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Sales Line) :#

Summary: Integration event raised after inserting a warehouse request line created from a sales line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForSalesOnAfterWhseRqstLineInsert(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForSalesOnAfterWhseRqstLineInsert', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForSalesOnAfterWhseRqstLineInsert(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The inserted warehouse request line (var).
  • WarehouseRequest: The parent warehouse request.
  • SalesLine: The source sales line.

Remarks: Subscribe to this event to perform actions or modify data after warehouse request line creation from sales lines. This event is called by CreateWarehouseRequestLineFromSalesLine.

OnCreateWhseRqstLinesForSalesOnBeforeWhseRqstLineInsert(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Sales Line) :#

Summary: Integration event raised before inserting a warehouse request line created from a sales line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForSalesOnBeforeWhseRqstLineInsert(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForSalesOnBeforeWhseRqstLineInsert', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForSalesOnBeforeWhseRqstLineInsert(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The warehouse request line to be inserted (var).
  • WarehouseRequest: The parent warehouse request.
  • SalesLine: The source sales line.

Remarks: Subscribe to this event to modify the warehouse request line before insertion or add custom validations. This event is called by CreateWarehouseRequestLineFromSalesLine.

OnCreateWhseRqstLinesForTransferOnAfterInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Transfer Line) :#

Summary: Integration event raised after inserting a warehouse request line created from a transfer line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForTransferOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; TransferLine: Record "Transfer Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForTransferOnAfterInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForTransferOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; TransferLine: Record "Transfer Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The inserted warehouse request line (var).
  • WarehouseRequest: The parent warehouse request.
  • TransferLine: The source transfer line.

Remarks: Subscribe to this event to perform actions or modify data after warehouse request line creation from transfer lines. This event is called by CreateWarehouseRequestLineFromTransferLine.

OnCreateWhseRqstLinesForTransferOnBeforeInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Transfer Line) :#

Summary: Integration event raised before inserting a warehouse request line created from a transfer line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForTransferOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; TransferLine: Record "Transfer Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForTransferOnBeforeInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForTransferOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; TransferLine: Record "Transfer Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The warehouse request line to be inserted (var).
  • WarehouseRequest: The parent warehouse request.
  • TransferLine: The source transfer line.

Remarks: Subscribe to this event to modify the warehouse request line before insertion or add custom validations. This event is called by CreateWarehouseRequestLineFromTransferLine.

OnUpdateWhseRqstLineForProdCompOnBeforeInsertWhseRqstLine(Record Prod. Order Component, Record Warehouse Request, Record KVSKBAWarehouseRequestLine) :#

Summary: Integration event raised before inserting or modifying a warehouse request line during production component update.

[IntegrationEvent(false, false)]
local procedure OnUpdateWhseRqstLineForProdCompOnBeforeInsertWhseRqstLine(ProdOrderComp: Record "Prod. Order Component"; WhseRqst: Record "Warehouse Request"; var WhseRqstLine: Record "KVSKBAWarehouseRequestLine"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnUpdateWhseRqstLineForProdCompOnBeforeInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnUpdateWhseRqstLineForProdCompOnBeforeInsertWhseRqstLine(ProdOrderComp: Record "Prod. Order Component"; WhseRqst: Record "Warehouse Request"; var WhseRqstLine: Record "KVSKBAWarehouseRequestLine")
begin
end;

Parameters:

  • ProdOrderComp: The source production order component.
  • WhseRqst: The parent warehouse request.
  • WhseRqstLine: The warehouse request line to be inserted or modified (var).

Remarks: Subscribe to this event to modify the warehouse request line before insertion/modification or add custom validations. This event is called by UpdateWarehouseRequestLineForProdOrderComponent.

OnBeforeCheckItemIfInInv(Record Warehouse Journal Line, Boolean) :#

Summary: Integration event raised before checking if an item is in physical inventory.

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIfInInv(WarehouseJournalLine: Record "Warehouse Journal Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnBeforeCheckItemIfInInv', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIfInInv(WarehouseJournalLine: Record "Warehouse Journal Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • WarehouseJournalLine: The warehouse journal line being validated.
  • IsHandled: Set to true to skip the standard physical inventory check (var).

Remarks: Subscribe to this event to override or extend the physical inventory validation logic. This event is called by CheckIsItemInPhysInvtOrder.

OnCreateWhseRqstLinesForServiceOnBeforeInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Service Line) :#

Summary: Integration event raised before inserting a warehouse request line created from a service line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForServiceOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ServiceLine: Record "Service Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForServiceOnBeforeInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForServiceOnBeforeInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ServiceLine: Record "Service Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The warehouse request line to be inserted (var).
  • WarehouseRequest: The parent warehouse request.
  • ServiceLine: The source service line.

Remarks: Subscribe to this event to modify the warehouse request line before insertion or add custom validations. This event is called by CreateWarehouseRequestLineFromServiceLine.

OnCreateWhseRqstLinesForServiceOnAfterInsertWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Request, Record Service Line) :#

Summary: Integration event raised after inserting a warehouse request line created from a service line.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseRqstLinesForServiceOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ServiceLine: Record "Service Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAWarehouseLib", 'OnCreateWhseRqstLinesForServiceOnAfterInsertWhseRqstLine', '', false, false)]
local procedure DoSomethingOnCreateWhseRqstLinesForServiceOnAfterInsertWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseRequest: Record "Warehouse Request"; ServiceLine: Record "Service Line")
begin
end;

Parameters:

  • WarehouseRequestLine: The inserted warehouse request line (var).
  • WarehouseRequest: The parent warehouse request.
  • ServiceLine: The source service line.

Remarks: Subscribe to this event to perform actions or modify data after warehouse request line creation from service lines. This event is called by CreateWarehouseRequestLineFromServiceLine.