Skip to content

KVSEDX Inbound Management#

Procedures#

OnRun#

procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Job Queue Entry")

SetEDXStatus(Record KVSEDX Inbound, RecordRef) :#

Summary: Set the EDX status (EDX Document Created) for an inbound record and the source record id.

procedure SetEDXStatus(var VarKVSEDXInbound: Record "KVSEDX Inbound"; ParRecordRef: RecordRef): 

Parameters:

  • VarKVSEDXInbound: Referenced Inbound record
  • ParRecordRef: Source Record Id.

SetEDXStatusErr(Record KVSEDX Inbound) :#

Summary: Set the processing date/time for an inbound record an register an error.

procedure SetEDXStatusErr(var VarKVSEDXInbound: Record "KVSEDX Inbound"): 

Parameters:

  • VarKVSEDXInbound: Referenced Inbound record
  • ParRecordRef: Source Record Id.

GetCurrentInbound(Record KVSEDX Inbound) :#

Summary: Currently processed inbound record

procedure GetCurrentInbound(var EDXInboundVar: Record "KVSEDX Inbound"): 

Parameters:

  • EDXInboundVar: Referenced Inbound Record

Events#

OnAfterCreateEDXSalesHeader(Record KVSEDX Document Setup, Record KVSEDX Inbound, Record KVSEDX Sales Header) :#

Summary: With this event, changes can be made to the created EDX document. The event is triggered after the EDX document has been completely created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateEDXSalesHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXSalesHeaderVar: Record "KVSEDX Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnAfterCreateEDXSalesHeader', '', false, false)]
local procedure DoSomethingOnAfterCreateEDXSalesHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXSalesHeaderVar: Record "KVSEDX Sales Header")
begin
end;

Parameters:

  • EDXDocumentSetupVar: Table EDX Document Setup
  • EDXInboundVar: Table EDX Inbound
  • EDXSalesHeaderVar: Table EDX Sales Header

OnBeforeFindEDXSalesHeader(Record KVSEDX Document Setup, Record KVSEDX Inbound, Record KVSEDX Sales Header) :#

Summary: The event is fired after the created "EDX Sales Header" is searched from the EDX Inbound message. Usually the EDX Sales Header is determined by the "Transmission Id". If a different procedure is required in the customer project, then this event can be used. For example, the filters for the "EDX Sales Header" can be adapted.

[IntegrationEvent(true, false)]
local procedure OnBeforeFindEDXSalesHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXSalesHeaderVar: Record "KVSEDX Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnBeforeFindEDXSalesHeader', '', false, false)]
local procedure DoSomethingOnBeforeFindEDXSalesHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXSalesHeaderVar: Record "KVSEDX Sales Header")
begin
end;

Parameters:

  • EDXDocumentSetupVar:
  • EDXInboundVar:
  • EDXSalesHeaderVar:

OnAfterCreateEDXPurchaseHeader(Record KVSEDX Document Setup, Record KVSEDX Inbound, Record KVSEDX Purchase Header) :#

Summary: With this event, changes can be made to the created EDX document. The event is triggered after the EDX document has been completely created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateEDXPurchaseHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchaseHeaderVar: Record "KVSEDX Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnAfterCreateEDXPurchaseHeader', '', false, false)]
local procedure DoSomethingOnAfterCreateEDXPurchaseHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchaseHeaderVar: Record "KVSEDX Purchase Header")
begin
end;

Parameters:

  • EDXDocumentSetupVar: Table EDX Document Setup
  • EDXInboundVar: Table EDX Inbound
  • EDXPurchaseHeaderVar: Table EDX Purchase Header

OnBeforeFindEDXPurchaseHeader(Record KVSEDX Document Setup, Record KVSEDX Inbound, Record KVSEDX Purchase Header) :#

Summary: The event is fired after the created "EDX Purchase Header" is searched from the EDX Inbound message. Usually the EDX Sales Header is determined by the "Transmission Id". If a different procedure is required in the customer project, then this event can be used. For example, the filters for the "EDX Purchase Header" can be adapted.

[IntegrationEvent(true, false)]
local procedure OnBeforeFindEDXPurchaseHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchaseHeaderVar: Record "KVSEDX Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnBeforeFindEDXPurchaseHeader', '', false, false)]
local procedure DoSomethingOnBeforeFindEDXPurchaseHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchaseHeaderVar: Record "KVSEDX Purchase Header")
begin
end;

Parameters:

  • EDXDocumentSetupVar:
  • EDXInboundVar:
  • EDXSalesHeaderVar:

OnAfterCreateExtDocument(Record KVSEDX Document Setup, Record KVSEDX Inbound) :#

Summary: The event will be fired if the message is not based on one of the following tables and the associated EDX document has been created.

         "KVSEDX Sales Header"
         "KVSEDX Purchase Header"
         "KVSEDX Purch. Receipt Header"

         see also EDX Document Setup. "Doc Table No."
[IntegrationEvent(true, false)]
local procedure OnAfterCreateExtDocument(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnAfterCreateExtDocument', '', false, false)]
local procedure DoSomethingOnAfterCreateExtDocument(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound")
begin
end;

Parameters:

  • EDXDocumentSetupVar:
  • EDXInboundVar:

OnAfterCreateEDXPurchReceiptHeader(Record KVSEDX Document Setup, Record KVSEDX Inbound, Record KVSEDX Purch. Receipt Header) :#

Summary: With this event, changes can be made to the created EDX document. The event is triggered after the EDX document has been completely created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateEDXPurchReceiptHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchReceiptHeaderVar: Record "KVSEDX Purch. Receipt Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnAfterCreateEDXPurchReceiptHeader', '', false, false)]
local procedure DoSomethingOnAfterCreateEDXPurchReceiptHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchReceiptHeaderVar: Record "KVSEDX Purch. Receipt Header")
begin
end;

Parameters:

  • EDXDocumentSetupVar: Table EDX Document Setup
  • EDXInboundVar: Table EDX Inbound
  • EDXPurchaseHeaderVar: Table KVSEDX Purch. Receipt Header

OnBeforeFindEDXPurchReceiptHeader(Record KVSEDX Document Setup, Record KVSEDX Inbound, Record KVSEDX Purch. Receipt Header) :#

Summary: The event is fired after the created "EDX Purch. Receipt Header" is searched from the EDX Inbound message. Usually the EDX Purch. Receipt Header is determined by the "Transmission Id". If a different procedure is required in the customer project, then this event can be used. For example, the filters for the "EDX Purch. Receipt Header" can be adapted.

[IntegrationEvent(true, false)]
local procedure OnBeforeFindEDXPurchReceiptHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchReceiptHeaderVar: Record "KVSEDX Purch. Receipt Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnBeforeFindEDXPurchReceiptHeader', '', false, false)]
local procedure DoSomethingOnBeforeFindEDXPurchReceiptHeader(var EDXDocumentSetupVar: Record "KVSEDX Document Setup"; var EDXInboundVar: Record "KVSEDX Inbound"; var EDXPurchReceiptHeaderVar: Record "KVSEDX Purch. Receipt Header")
begin
end;

Parameters:

  • EDXDocumentSetupVar:
  • EDXInboundVar:
  • EDXSalesHeaderVar:

OnPostEDXDocument(Record KVSEDX Document Setup) :#

Summary: The event is fired when the associated EDX document is created and automatic processing is enabled in EDX Document Setup.

[IntegrationEvent(true, false)]
local procedure OnPostEDXDocument(EDXDocumentSetupPar: Record "KVSEDX Document Setup"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Inbound Management", 'OnPostEDXDocument', '', false, false)]
local procedure DoSomethingOnPostEDXDocument(EDXDocumentSetupPar: Record "KVSEDX Document Setup")
begin
end;

Parameters:

  • EDXDocumentSetupPar: