Skip to content

KVSEDX Sales Mangement#

Procedures#

CreateSalesOrderChange(Record KVSEDX Sales Header, Boolean, Boolean) :#

procedure CreateSalesOrderChange(var VarKVSEDXSalesHeader: Record "KVSEDX Sales Header"; GUIAllowedPar: Boolean; OnlyCheckPar: Boolean): 

CreateSalesOrder(Record KVSEDX Sales Header, Boolean, Boolean) :#

procedure CreateSalesOrder(var VarKVSEDXSalesHeader: Record "KVSEDX Sales Header"; GUIAllowedPar: Boolean; OnlyCheckPar: Boolean): 

Events#

OnBeforeUpdateSalesOrderChange_Line(Record KVSEDX Sales Header, Record KVSEDX Sales Line, Record Sales Header, Record Sales Line, Boolean, Boolean) :#

Summary: The event is fired before the BC sales order line is updated on an order change message.

[IntegrationEvent(true, false)]
local procedure OnBeforeUpdateSalesOrderChange_Line(var EDXSalesHeaderParVar: Record "KVSEDX Sales Header"; var EDXSalesLineVar: Record "KVSEDX Sales Line"; var SalesHeaderVar: Record "Sales Header"; var SalesLineVar: Record "Sales Line"; var DoNotUpdateVar: Boolean; var HandledVar: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeUpdateSalesOrderChange_Line', '', false, false)]
local procedure DoSomethingOnBeforeUpdateSalesOrderChange_Line(var EDXSalesHeaderParVar: Record "KVSEDX Sales Header"; var EDXSalesLineVar: Record "KVSEDX Sales Line"; var SalesHeaderVar: Record "Sales Header"; var SalesLineVar: Record "Sales Line"; var DoNotUpdateVar: Boolean; var HandledVar: Boolean)
begin
end;

Parameters:

  • EDXSalesHeaderParVar: Table EDX Sales Header
  • EDXSalesLineVar: Table EDX Sales Line
  • SalesHeaderVar: Table Sales Header
  • SalesLineVar: Table Sales Header Line
  • DoNotUpdateVar: If true, then no update is performed for the BC sales order line
  • HandledVar: Handled

OnAfterCreateSalesOrder(Record KVSEDX Sales Header, Record Sales Header) :#

Summary: Sales Order Message This event can be used, for example, to start automated postprocessing of the BC document. The event is triggered after the BC document has been completely created. If changes to the sales order are required after the BC sales order has been created, then this can be implemented in this event.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateSalesOrder(EDXSalesHeaderPar: Record "KVSEDX Sales Header"; var SalesHeaderVar: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnAfterCreateSalesOrder', '', false, false)]
local procedure DoSomethingOnAfterCreateSalesOrder(EDXSalesHeaderPar: Record "KVSEDX Sales Header"; var SalesHeaderVar: Record "Sales Header")
begin
end;

Parameters:

  • EDXSalesHeaderPar: Table EDX Sales Header
  • SalesHeaderVar: Table Sales Header

OnAfterCreateSalesOrderChange(Record KVSEDX Sales Header, Record Sales Header) :#

Summary: Sales Order Change Message This event can be used, for example, to start automated postprocessing of the BC document. The event is triggered after the BC document has been completely created. If changes to the sales order are required after the BC sales order has been created, then this can be implemented in this event.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateSalesOrderChange(EDXSalesHeaderPar: Record "KVSEDX Sales Header"; var SalesHeaderVar: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnAfterCreateSalesOrderChange', '', false, false)]
local procedure DoSomethingOnAfterCreateSalesOrderChange(EDXSalesHeaderPar: Record "KVSEDX Sales Header"; var SalesHeaderVar: Record "Sales Header")
begin
end;

Parameters:

  • EDXSalesHeaderPar: Table EDX Sales Header
  • SalesHeaderVar: Table Sales Header

OnAfterCheckEDXSalesOrderChange(Record KVSEDX Sales Header, Boolean) :#

Summary: Sales Order Change Message This event is triggered after the EDX sales order is checked. Within this event, project-specific checks can be performed on the EDX sales order. Furthermore, the data of the sales order change can also be adjusted.

[IntegrationEvent(true, false)]
local procedure OnAfterCheckEDXSalesOrderChange(var EDXSalesHeaderVar: Record "KVSEDX Sales Header"; var ErrorFoundVar: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnAfterCheckEDXSalesOrderChange', '', false, false)]
local procedure DoSomethingOnAfterCheckEDXSalesOrderChange(var EDXSalesHeaderVar: Record "KVSEDX Sales Header"; var ErrorFoundVar: Boolean)
begin
end;

Parameters:

  • EDXSalesHeaderVar: Table EDX Sales Header
  • ErrorFoundVar: True if project-specific check has detected an error.

OnAfterCheckDiffEDXSalesOrderChange(Record KVSEDX Sales Header, Boolean, Boolean, Boolean) :#

Summary: Sales Order Change Message This event is triggered before the EDX sales order is checked. Within this event, project-specific checks can be performed on the EDX sales order. Furthermore, the data of the sales order change can also be adjusted.

[IntegrationEvent(true, false)]
local procedure OnAfterCheckDiffEDXSalesOrderChange(var EDXSalesHeaderVar: Record "KVSEDX Sales Header"; var VarDiffFoundProject: Boolean; ParGuiAllowed: Boolean; var VarHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnAfterCheckDiffEDXSalesOrderChange', '', false, false)]
local procedure DoSomethingOnAfterCheckDiffEDXSalesOrderChange(var EDXSalesHeaderVar: Record "KVSEDX Sales Header"; var VarDiffFoundProject: Boolean; ParGuiAllowed: Boolean; var VarHandled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeaderVar: Table EDX Sales Header
  • VarDiffFoundProject: True if project-specific has detected an difference.
  • ParGuiAllowed:
  • VarHandled:

OnAfterCheckEDXSalesOrder(Record KVSEDX Sales Header, Boolean) :#

Summary: Sales Order Message This event is triggered after the EDX sales order is checked. Within this event, project-specific checks can be performed on the EDX sales order. Furthermore, the data of the sales order change can also be adjusted.

[IntegrationEvent(true, false)]
local procedure OnAfterCheckEDXSalesOrder(var EDXSalesHeaderVar: Record "KVSEDX Sales Header"; var ErrorFoundVar: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnAfterCheckEDXSalesOrder', '', false, false)]
local procedure DoSomethingOnAfterCheckEDXSalesOrder(var EDXSalesHeaderVar: Record "KVSEDX Sales Header"; var ErrorFoundVar: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • ErrorFound: True if project-specific check has detected an error.

OnBeforeCheckEDXSalesOrder(Record KVSEDX Sales Header, Boolean, Boolean, Boolean) :#

Summary: Sales Order Message This event is triggered before the EDX sales order is checked. Within this event, project-specific checks can be performed on the EDX sales order. Furthermore, the data of the sales order change can also be adjusted.

[IntegrationEvent(true, false)]
local procedure OnBeforeCheckEDXSalesOrder(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCheckEDXSalesOrder', '', false, false)]
local procedure DoSomethingOnBeforeCheckEDXSalesOrder(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • ErrorFoundProject: True if project-specific check has detected an error.
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCreateSalesOrder(Record KVSEDX Sales Header, Record Sales Header, Boolean, Boolean) :#

Summary: Sales Order Message This event is triggered before the BC sales order is created.

[IntegrationEvent(true, false)]
local procedure OnBeforeCreateSalesOrder(var EDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCreateSalesOrder', '', false, false)]
local procedure DoSomethingOnBeforeCreateSalesOrder(var EDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • SalesHeader: Table Sales Header
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeSalesHeaderInsert(Record KVSEDX Sales Header, Record Sales Header, Boolean, Boolean) :#

Summary: Sales Order Message This event is triggered before the BC sales order is inserted.

[IntegrationEvent(true, false)]
local procedure OnBeforeSalesHeaderInsert(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; GuiAllowed: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeSalesHeaderInsert', '', false, false)]
local procedure DoSomethingOnBeforeSalesHeaderInsert(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; GuiAllowed: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSEDXSalesHeader: Table EDX Sales Header
  • SalesHeader: Table Sales Header
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeSalesLineInsert(Record KVSEDX Sales Header, Record Sales Header, Record KVSEDX Sales Line, Record Sales Line, Boolean, Boolean) :#

Summary: Sales Order Message This event is triggered before the BC sales order line is inserted.

[IntegrationEvent(true, false)]
local procedure OnBeforeSalesLineInsert(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; var KVSEDXSalesLine: Record "KVSEDX Sales Line"; var SalesLine: Record "Sales Line"; GuiAllowed: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeSalesLineInsert', '', false, false)]
local procedure DoSomethingOnBeforeSalesLineInsert(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; var KVSEDXSalesLine: Record "KVSEDX Sales Line"; var SalesLine: Record "Sales Line"; GuiAllowed: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSEDXSalesHeader: Table EDX Sales Header
  • SalesHeader: Table Sales Header
  • KVSEDXSalesLine: Table EDX Sales Line
  • SalesLine: Table Sales Line
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCheckEDXSalesOrderChange(Record KVSEDX Sales Header, Boolean, Boolean, Boolean) :#

Summary: Sales Order Change Message This event is triggered before the EDX sales order is checked. Within this event, project-specific checks can be performed on the EDX sales order. Furthermore, the data of the sales order change can also be adjusted.

[IntegrationEvent(true, false)]
local procedure OnBeforeCheckEDXSalesOrderChange(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCheckEDXSalesOrderChange', '', false, false)]
local procedure DoSomethingOnBeforeCheckEDXSalesOrderChange(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • ErrorFoundProject: True if project-specific check has detected an error.
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCreateSalesOrderChange(Record KVSEDX Sales Header, Record Sales Header, Boolean, Boolean) :#

Summary: Sales Order Change Message This event is triggered before the BC sales order is created.

[IntegrationEvent(true, false)]
local procedure OnBeforeCreateSalesOrderChange(var EDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCreateSalesOrderChange', '', false, false)]
local procedure DoSomethingOnBeforeCreateSalesOrderChange(var EDXSalesHeader: Record "KVSEDX Sales Header"; var SalesHeader: Record "Sales Header"; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • SalesHeader: Table Sales Header
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCheckSellToCust(Record KVSEDX Sales Header, Boolean, Boolean, Boolean) :#

Summary: Sales Order and Sales Order Change Message This event is triggered before the EDX sales order is checked.

[IntegrationEvent(true, false)]
local procedure OnBeforeCheckSellToCust(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCheckSellToCust', '', false, false)]
local procedure DoSomethingOnBeforeCheckSellToCust(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • ErrorFoundProject: True if project-specific check has detected an error.
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCheckBillTo(Record KVSEDX Sales Header, Boolean, Boolean, Boolean) :#

Summary: Sales Order and Sales Order Change Message This event is triggered before the EDX sales order is checked.

[IntegrationEvent(true, false)]
local procedure OnBeforeCheckBillTo(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCheckBillTo', '', false, false)]
local procedure DoSomethingOnBeforeCheckBillTo(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • ErrorFoundProject: True if project-specific check has detected an error.
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCheckShipTo(Record KVSEDX Sales Header, Boolean, Boolean, Boolean) :#

Summary: Sales Order and Sales Order Change Message This event is triggered before the EDX sales order is checked.

[IntegrationEvent(true, false)]
local procedure OnBeforeCheckShipTo(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCheckShipTo', '', false, false)]
local procedure DoSomethingOnBeforeCheckShipTo(var EDXSalesHeader: Record "KVSEDX Sales Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • ErrorFoundProject: True if project-specific check has detected an error.
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnBeforeCheckSalesShipmentNo(Record KVSEDX Sales Header, Record KVSEDX Sales Line, Boolean, Boolean, Boolean) :#

Summary: Sales Return Order This event is triggered before sales return order is checked.

[IntegrationEvent(true, false)]
local procedure OnBeforeCheckSalesShipmentNo(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var KVSEDXSalesLine: Record "KVSEDX Sales Line"; var ErrorFoundProject: Boolean; ParGuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnBeforeCheckSalesShipmentNo', '', false, false)]
local procedure DoSomethingOnBeforeCheckSalesShipmentNo(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var KVSEDXSalesLine: Record "KVSEDX Sales Line"; var ErrorFoundProject: Boolean; ParGuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • EDXSalesHeader: Table EDX Sales Line
  • ErrorFoundProject: True if project-specific check has detected an error.
  • GuiAllowed: GUI Allowed
  • Handled: Handled

OnAfterCheckSalesShipmentNo(Record KVSEDX Sales Header, Record KVSEDX Sales Line, Boolean, Boolean) :#

Summary: Sales Return Order This event is triggered after sales return order is checked.

[IntegrationEvent(true, false)]
local procedure OnAfterCheckSalesShipmentNo(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var KVSEDXSalesLine: Record "KVSEDX Sales Line"; ParGuiAllowed: Boolean; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Sales Mangement", 'OnAfterCheckSalesShipmentNo', '', false, false)]
local procedure DoSomethingOnAfterCheckSalesShipmentNo(var KVSEDXSalesHeader: Record "KVSEDX Sales Header"; var KVSEDXSalesLine: Record "KVSEDX Sales Line"; ParGuiAllowed: Boolean; var Handled: Boolean)
begin
end;

Parameters:

  • EDXSalesHeader: Table EDX Sales Header
  • EDXSalesHeader: Table EDX Sales Line
  • GuiAllowed: GUI Allowed
  • Handled: Handled