Table of Contents

KVSKBATransferShipmentLib

Events

OnAfterDoOnCopyFromTransferHeader(Record Transfer Shipment Header, Record Transfer Header) :

Summary: Integration event raised after copying custom fields from Transfer Header to Transfer Shipment Header.

[IntegrationEvent(false, false)]
local procedure OnAfterDoOnCopyFromTransferHeader(var TransShptHeader: Record "Transfer Shipment Header"; TransHeader: Record "Transfer Header"): 

Parameters:

  • TransShptHeader: The transfer shipment header record that has been populated with custom fields.
  • TransHeader: The source transfer header record.

Remarks: This event is raised after the standard KUMAVISION custom fields have been copied from the Transfer Header to the Transfer Shipment Header during transfer order shipment posting.

         **Fields Copied by Standard Logic:**
         - KVSKBACustomerNo: Customer number associated with the transfer
         - KVSKBACustomerName: Customer name
         - KVSKBACustomerName2: Customer name 2
         - KVSKBATransferOrderType: Transfer order type classification
         - KVSKBAAssignedUserID: User assigned to the transfer order (from "Assigned User ID")
        
         **Use Cases:**
         - Copy additional custom fields from transfer header to shipment header
         - Perform post-copy validations or calculations
         - Log or audit transfer shipment creation
         - Trigger workflows based on transferred data
         - Populate extension-specific fields
         - Integrate with external shipping systems
        
         **Context:**
         This event is triggered during the OnAfterCopyFromTransferHeader event of the
         Transfer Shipment Header table (5744), which occurs during transfer order shipment posting
         via the TransferOrder-Post Shipment codeunit (5704).
        
         **Integration Points:**
         - Called from DoOnCopyFromTransferHeader local procedure
         - Triggered by Transfer Shipment Header OnAfterCopyFromTransferHeader event
         - Part of TransferOrder-Post Shipment codeunit workflow