Skip to content

KVSMTCServiceOpDocumentLib#

Events#

OnBeforeCreateDocumentInServiceLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Boolean, Boolean) :#

Summary: The event enables to replace or add the creation of documents for the dest. document type

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDocumentInServiceLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateDocumentInServiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateDocumentInServiceLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnBeforeCreateSalesDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Sales Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of sales documents

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateSalesDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var SalesHeader: Record "Sales Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateSalesDocument', '', false, false)]
local procedure DoSomethingOnBeforeCreateSalesDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var SalesHeader: Record "Sales Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • SalesHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateSalesDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Sales Header, Boolean) :#

Summary: The event enables to modify the created sales document

[IntegrationEvent(false, false)]
local procedure OnAfterCreateSalesDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var SalesHeader: Record "Sales Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateSalesDocument', '', false, false)]
local procedure DoSomethingOnAfterCreateSalesDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var SalesHeader: Record "Sales Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • SalesHeader: The created sales header
  • ShowError: Set, if output is allowed

OnBeforeCreateSalesDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Sales Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of the sales document line

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateSalesDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var SalesHeader: Record "Sales Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateSalesDocumentLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateSalesDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var SalesHeader: Record "Sales Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • SalesHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateSalesDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Sales Header, Boolean) :#

Summary: The event enables to modify the created sales document line. The line could be fetched through the service line fields (Dest. Document + Dest. Documen Line No.)

[IntegrationEvent(false, false)]
local procedure OnAfterCreateSalesDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var SalesHeader: Record "Sales Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateSalesDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterCreateSalesDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var SalesHeader: Record "Sales Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • SalesHeader: The created sales header
  • ShowError: Set, if output is allowed

OnBeforeCreatePurchaseDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Purchase Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of purchase documents

[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreatePurchaseDocument', '', false, false)]
local procedure DoSomethingOnBeforeCreatePurchaseDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • PurchaseHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreatePurchaseDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Purchase Header, Boolean) :#

Summary: The event enables to modify the created purchase document

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreatePurchaseDocument', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • PurchaseHeader: The created purchase header
  • ShowError: Set, if output is allowed

OnBeforeCreatePurchaseDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Purchase Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of the purchase document line

[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreatePurchaseDocumentLine', '', false, false)]
local procedure DoSomethingOnBeforeCreatePurchaseDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • PurchaseHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreatePurchaseDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Purchase Header, Boolean) :#

Summary: The event enables to modify the created purchase document line. The line could be fetched through the service line fields (Dest. Document + Dest. Documen Line No.)

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreatePurchaseDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var PurchaseHeader: Record "Purchase Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • PurchaseHeader: The created purchase header
  • ShowError: Set, if output is allowed

OnBeforeCreateTransferDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Transfer Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of transfer orders

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateTransferDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var TransferHeader: Record "Transfer Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateTransferDocument', '', false, false)]
local procedure DoSomethingOnBeforeCreateTransferDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var TransferHeader: Record "Transfer Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • TransferHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateTransferDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Transfer Header, Boolean) :#

Summary: The event enables to modify the created transfer order

[IntegrationEvent(false, false)]
local procedure OnAfterCreateTransferDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var TransferHeader: Record "Transfer Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateTransferDocument', '', false, false)]
local procedure DoSomethingOnAfterCreateTransferDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var TransferHeader: Record "Transfer Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • TransferHeader: The created transfer header
  • ShowError: Set, if output is allowed

OnBeforeCreateTransferDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Transfer Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of the transfer order line

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateTransferDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var TransferHeader: Record "Transfer Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateTransferDocumentLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateTransferDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var TransferHeader: Record "Transfer Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • TransferHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateTransferDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Transfer Header, Boolean) :#

Summary: The event enables to modify the created transfer order line. The line could be fetched through the service line fields (Dest. Document + Dest. Documen Line No.)

[IntegrationEvent(false, false)]
local procedure OnAfterCreateTransferDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var TransferHeader: Record "Transfer Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateTransferDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterCreateTransferDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var TransferHeader: Record "Transfer Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • TransferHeader: The created transfer header
  • ShowError: Set, if output is allowed

OnBeforeCreateCallDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record KVSKBACLLCallHeader, Boolean, Boolean) :#

Summary: The event enables to replace the creation of calls

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCallDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateCallDocument', '', false, false)]
local procedure DoSomethingOnBeforeCreateCallDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • CallHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateCallDocument(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record KVSKBACLLCallHeader, Boolean) :#

Summary: The event enables to modify the created call

[IntegrationEvent(false, false)]
local procedure OnAfterCreateCallDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateCallDocument', '', false, false)]
local procedure DoSomethingOnAfterCreateCallDocument(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • CallHeader: The created call header
  • ShowError: Set, if output is allowed

OnBeforeCreateCallDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record KVSKBACLLCallHeader, Boolean, Boolean) :#

Summary: The event enables to replace the creation of the call line

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCallDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateCallDocumentLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateCallDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • CallHeader: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateCallDocumentLine(Record Service Header, Record Service Item Line, Record Service Line, Record KVSKBACLLCallHeader, Boolean) :#

Summary: The event enables to modify the created call line. The line could be fetched through the service line fields (Dest. Document + Dest. Documen Line No.)

[IntegrationEvent(false, false)]
local procedure OnAfterCreateCallDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateCallDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterCreateCallDocumentLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var KVSKBACllCallHeader: Record "KVSKBACLLCallHeader"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • CallHeader: The created call header
  • ShowError: Set, if output is allowed

OnBeforeCreateServiceOrder(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Boolean, Boolean) :#

Summary: The event enables to replace the creation of service orders

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateServiceOrder(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateServiceOrder', '', false, false)]
local procedure DoSomethingOnBeforeCreateServiceOrder(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateServiceOrder(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Boolean) :#

Summary: The event enables to modify the created service order

[IntegrationEvent(false, false)]
local procedure OnAfterCreateServiceOrder(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateServiceOrder', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceOrder(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnBeforeCreateServiceOrderLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Boolean, Boolean) :#

Summary: The event enables to replace the creation of the service order line

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateServiceOrderLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateServiceOrderLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateServiceOrderLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateServiceOrderLine(Record Service Header, Record Service Item Line, Record Service Line, Boolean) :#

Summary: The event enables to modify the created service order line. The line could be fetched through the service line fields (Dest. Document + Dest. Documen Line No.)

[IntegrationEvent(false, false)]
local procedure OnAfterCreateServiceOrderLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateServiceOrderLine', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceOrderLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ShowError: Set, if output is allowed

OnBeforeCreateServiceQuote(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Service Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of service quotes

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateServiceQuote(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ServiceHeader2: Record "Service Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateServiceQuote', '', false, false)]
local procedure DoSomethingOnBeforeCreateServiceQuote(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ServiceHeader2: Record "Service Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ServiceHeader2: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateServiceQuote(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Service Header, Boolean) :#

Summary: The event enables to modify the created service quote

[IntegrationEvent(false, false)]
local procedure OnAfterCreateServiceQuote(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ServiceHeader2: Record "Service Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateServiceQuote', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceQuote(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ServiceHeader2: Record "Service Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ServiceHeader2: The created transfer header
  • ShowError: Set, if output is allowed

OnBeforeCreateServiceQuoteLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Record Service Header, Boolean, Boolean) :#

Summary: The event enables to replace the creation of the service quote line

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateServiceQuoteLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ServiceHeader2: Record "Service Header"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeCreateServiceQuoteLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateServiceQuoteLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; var ServiceLineTemp: Record "Service Line" temporary; ServiceHeader2: Record "Service Header"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • ServiceLineTemp: All handled service lines should be collected here as a result to show the documents afterwards
  • ServiceHeader2: If filled, the header already exists, otherwise it should be created
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnAfterCreateServiceQuoteLine(Record Service Header, Record Service Item Line, Record Service Line, Record Service Header, Boolean) :#

Summary: The event enables to modify the created service quote line. The line could be fetched through the service line fields (Dest. Document + Dest. Documen Line No.)

[IntegrationEvent(false, false)]
local procedure OnAfterCreateServiceQuoteLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; ServiceHeader2: Record "Service Header"; ShowError: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnAfterCreateServiceQuoteLine', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceQuoteLine(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLine: Record "Service Line"; ServiceHeader2: Record "Service Header"; ShowError: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLine: The calling service line
  • SrviceHeader2: The created service header
  • ShowError: Set, if output is allowed

OnBeforeGetServiceQuote(Record Service Header, Record Service Item Line, Record Service Line, Record Service Line, Boolean, Boolean) :#

Summary: The event enables to realize an own function to transfer the service lines from the quote to the order

[IntegrationEvent(false, false)]
local procedure OnBeforeGetServiceQuote(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLineRepair: Record "Service Line"; var ServiceLineCostEstimate: Record "Service Line"; ShowError: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforeGetServiceQuote', '', false, false)]
local procedure DoSomethingOnBeforeGetServiceQuote(ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line"; var ServiceLineRepair: Record "Service Line"; var ServiceLineCostEstimate: Record "Service Line"; ShowError: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The calling service header
  • ServiceItemLine: The calling service item line
  • ServiceLineRepair: The calling service line
  • ServiceLineCostEstimate: The calling service line
  • ShowError: Set, if output is allowed
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnBeforePostNegAdjustment(Record Service Line, Boolean) :#

Summary: The event enables to realize an own functionality for negative adjustment

[IntegrationEvent(false, false)]
local procedure OnBeforePostNegAdjustment(var ServiceLine: Record "Service Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforePostNegAdjustment', '', false, false)]
local procedure DoSomethingOnBeforePostNegAdjustment(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The calling service line
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnBeforePostPosAdjustment(Record Service Line, Boolean) :#

Summary: The event enables to realize an own functionality for positive adjustment

[IntegrationEvent(false, false)]
local procedure OnBeforePostPosAdjustment(var ServiceLine: Record "Service Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforePostPosAdjustment', '', false, false)]
local procedure DoSomethingOnBeforePostPosAdjustment(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The calling service line
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true

OnBeforePostTransfer(Record Service Line, Boolean) :#

Summary: The event enables to realize an own functionality for transfer posting

[IntegrationEvent(false, false)]
local procedure OnBeforePostTransfer(var ServiceLine: Record "Service Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMTCServiceOpDocumentLib", 'OnBeforePostTransfer', '', false, false)]
local procedure DoSomethingOnBeforePostTransfer(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The calling service line
  • IsHandled: Ensures that the procedure is skipped if IsHandled is true