Table of Contents

KVSKBAGetSourceDocOutbnd

Procedures

OnRun

procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Warehouse Shipment Header")

SetWhseShptHeader(Record Warehouse Shipment Header) :

Summary: Sets the warehouse shipment header for processing.

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

Parameters:

  • WarehouseShipmentHeader: Warehouse shipment header record to set

CreateWhseShptLines(Record KVSKBAWarehouseRequestLine) :

Summary: Creates warehouse shipment lines from selected warehouse request lines.

procedure CreateWhseShptLines(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"): 

Parameters:

  • WarehouseRequestLine: Warehouse request lines to create shipment lines from

Remarks: Groups request lines by source document and runs the Get Source Documents report for each group

Events

OnCreateWhseShptLinesOnAfterPreChecksatWhseRqstLine(Record KVSKBAWarehouseRequestLine, Boolean) :

Summary: Integration event that allows customization after pre-checks on warehouse request lines during shipment line creation.

[IntegrationEvent(false, false)]
local procedure OnCreateWhseShptLinesOnAfterPreChecksatWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; var Handled: Boolean): 

Parameters:

  • WarehouseRequestLine: Warehouse request line being processed
  • Handled: Variable indicating whether a subscriber has handled the processing (set to true to skip default logic)

Remarks: Use this event to implement custom validation or processing logic for warehouse request lines

OnBeforeRunGetSourceDocumentsReport(Record Warehouse Shipment Header, Record Warehouse Request, Record KVSKBAWarehouseRequestLine, Boolean) :

Summary: Integration event that allows customization before running the Get Source Documents report.

[IntegrationEvent(false, false)]
local procedure OnBeforeRunGetSourceDocumentsReport(var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseRequest: Record "Warehouse Request"; var KVSKBAWarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; var SkipReport: Boolean): 

Parameters:

  • WarehouseShipmentHeader: Warehouse shipment header being processed
  • WarehouseRequest: Warehouse request record for the current source document
  • KVSKBAWarehouseRequestLine: Current warehouse request line being processed
  • SkipReport: Variable indicating whether to skip the report execution (set to true to skip default logic)

Remarks: Use this event to customize or replace the standard Get Source Documents report execution

OnCodeOnSetFilterAtWhseRqstLine(Record KVSKBAWarehouseRequestLine, Record Warehouse Shipment Header) :

Summary: Integration event that allows additional filtering on warehouse request lines in the Code procedure.

[IntegrationEvent(false, false)]
local procedure OnCodeOnSetFilterAtWhseRqstLine(var WarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"): 

Parameters:

  • WarehouseRequestLine: Warehouse request line record with applied filters
  • WarehouseShipmentHeader: Warehouse shipment header being processed

Remarks: Use this event to add additional filters to the warehouse request lines before showing the selection page

OnBeforeTransferIncotermFromSourceRecords(Record Warehouse Shipment Header) :

Summary: Integration event that allows modifying the warehouse shipment header.

[IntegrationEvent(false, false)]
local procedure OnBeforeTransferIncotermFromSourceRecords(var WarehouseShipmentHeader: Record "Warehouse Shipment Header"): 

Parameters:

  • WarehouseShipmentHeader: Warehouse shipment header being processed

Remarks: Use this event to modify the warehouse shipment header before transferring incoterms from source records