KVSEDXWMSWhseReceiptExpV1#
Procedures#
SetData(Record KVSEDX Document Setup, Record Warehouse Receipt Header, Record Warehouse Receipt Line, Record Sales Header, Record Purchase Header, Record Transfer Header) :#
Summary: Initializes the XMLPort with required data sources for warehouse receipt export. This procedure sets up document setup, warehouse receipt header/line records, and source document records (sales, purchase, or transfer) based on the receipt line source type.
procedure SetData(var VarKVSEDXDocumentSetup: Record "KVSEDX Document Setup"; var VarWarehouseReceiptHeader: Record "Warehouse Receipt Header"; var VarWarehouseReceiptLine: Record "Warehouse Receipt Line"; var VarSalesHeader: Record "Sales Header"; var VarPurchaseHeader: Record "Purchase Header"; var VarTransferHeader: Record "Transfer Header"):
Parameters:
VarKVSEDXDocumentSetup: The EDX document setup configuration for the export.VarWarehouseReceiptHeader: The warehouse receipt header record to export.VarWarehouseReceiptLine: The warehouse receipt line record to export.VarSalesHeader: The sales header record if the receipt is related to a sales return order.VarPurchaseHeader: The purchase header record if the receipt is related to a purchase order.VarTransferHeader: The transfer header record if the receipt is related to a transfer order.
Events#
OnPreXMLItemHeaderData(Record KVSEDX Document Setup, Record Warehouse Receipt Header, Record Warehouse Receipt Line, Record KVSEDX Outbound, Boolean) :#
Summary: Integration event raised before exporting header additional data. Allows adding custom data at the header level to the XML export.
[IntegrationEvent(true, false)]
local procedure OnPreXMLItemHeaderData(var DocumentSetup: Record "KVSEDX Document Setup"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::XmlPort, XmlPort::"KVSEDXWMSWhseReceiptExpV1", 'OnPreXMLItemHeaderData', '', false, false)]
local procedure DoSomethingOnPreXMLItemHeaderData(var DocumentSetup: Record "KVSEDX Document Setup"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
DocumentSetup: The EDX document setup configuration for the export.WarehouseReceiptHeader: The warehouse receipt header being exported.WarehouseReceiptLine: The first warehouse receipt line of the warehouse receipt.TempKVSEDXOutbound: Temporary table for inserting additional files/data blocks to be exported as header data.IsHandled: Currently not used.
Remarks: This event is called in the OnPreXmlItem trigger of the HeaderData element. Subscribers can insert additional records into TempKVSEDXOutbound that will be exported as separate Data elements with Contents/Content structure. The data is stored as BigText in the "Transfer File" field and output as XML element Content_Type (Filename).
OnPreXMLItemLineData(Record KVSEDX Document Setup, Record Warehouse Receipt Header, Record Warehouse Receipt Line, Record KVSEDX Outbound, Boolean) :#
Summary: Integration event raised before exporting line additional data. Allows adding custom data at the line level to the XML export.
[IntegrationEvent(true, false)]
local procedure OnPreXMLItemLineData(var DocumentSetup: Record "KVSEDX Document Setup"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::XmlPort, XmlPort::"KVSEDXWMSWhseReceiptExpV1", 'OnPreXMLItemLineData', '', false, false)]
local procedure DoSomethingOnPreXMLItemLineData(var DocumentSetup: Record "KVSEDX Document Setup"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
DocumentSetup: The EDX document setup configuration for the export.WarehouseReceiptHeader: The warehouse receipt header being exported.WarehouseReceiptLine: The current warehouse receipt line being exported.TempKVSEDXOutbound: Temporary table for inserting additional files/data blocks to be exported as line data.IsHandled: Currently not used.
Remarks: This event is called in the OnPreXmlItem trigger of the LineData element and is raised separately for each warehouse receipt line. Subscribers can insert additional records into TempKVSEDXOutbound that will be exported as separate Data elements with Contents/Content structure. The data is stored as BigText in the "Transfer File" field and output as XML element Content_Type (Filename).