KVSEDX GS1 BMS ORDER EXP#
Events#
OnBeforeCreateLine(Record Purchase Header, Record Purchase Line, Boolean, Boolean) :#
Summary: The OnBeforeCreateLine event is fired before the orderLineItem XmlElement is created.
[IntegrationEvent(true, false)]
local procedure OnBeforeCreateLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var SkipLine: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS ORDER EXP", 'OnBeforeCreateLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var SkipLine: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseHeader
: Current Purchase HeaderPurchaseLine
: Current Purchase LineSkipLine
: Skip tihs line if trueIsFreightChargeLine
: Skip tihs line if trueIsHandled
: Is Handled
OnAfterCreateLine(Record Purchase Header, Record Purchase Line, XmlElement, Boolean) :#
Summary: The OnAfterCreateLine event is fired after the orderLineItem XmlElement is created.
[IntegrationEvent(true, false)]
local procedure OnAfterCreateLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS ORDER EXP", 'OnAfterCreateLine', '', false, false)]
local procedure DoSomethingOnAfterCreateLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseHeader
: Current Purchase HeaderPurchaseLine
: Current Purchase LineGS1LineXmlElement
: Current Line XmlElementIsHandled
: Is Handled
OnPreXMLItemHeaderData(Record Purchase Header, Record KVSEDX Outbound, Boolean) :#
Summary: The OnPreXMLItemHeaderData event is fired when the avpList (Attribute Value Pair List) is created for the header. Project-related additional data can be transmitted.
[IntegrationEvent(true, false)]
local procedure OnPreXMLItemHeaderData(PurchaseHeader: Record "Purchase Header"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS ORDER EXP", 'OnPreXMLItemHeaderData', '', false, false)]
local procedure DoSomethingOnPreXMLItemHeaderData(PurchaseHeader: Record "Purchase Header"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseHeader
: Current Purchase HeaderTempKVSEDXOutbound
: Dynamic DataIsHandled
: Is Handled
OnPreXMLItemLineData(Record Purchase Line, Record KVSEDX Outbound, Boolean) :#
Summary: The OnPreXMLItemLineData event is fired when the avpList (Attribute Value Pair List) is created for the header. Project-related additional data can be transmitted.
[IntegrationEvent(true, false)]
local procedure OnPreXMLItemLineData(PurchaseLine: Record "Purchase Line"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS ORDER EXP", 'OnPreXMLItemLineData', '', false, false)]
local procedure DoSomethingOnPreXMLItemLineData(PurchaseLine: Record "Purchase Line"; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseHeader
: Current Purchase HeaderTempKVSEDXOutbound
: Dynamic DataIsHandled
: Is Handled
OnBeforeGetGTIN(Record Purchase Line, Text, Boolean) :#
Summary: The event OnBeforeGetGTIN is fired if the GTIN is to be changed for the item.
[IntegrationEvent(true, false)]
local procedure OnBeforeGetGTIN(PurchaseLine: Record "Purchase Line"; var GTIN: Text; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS ORDER EXP", 'OnBeforeGetGTIN', '', false, false)]
local procedure DoSomethingOnBeforeGetGTIN(PurchaseLine: Record "Purchase Line"; var GTIN: Text; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseLine
: Current Purchase LineGTIN
: GTIN used in MessageIsHandled
: Is Handled