Table of Contents

KVSKBAOrderQuoteMgt

Procedures

OnRun

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

CheckandSendOrderQuote(Record KVSKBAOrderQuote) : Boolean

Summary: Validates and sends an Order Quote.

procedure CheckandSendOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"): Boolean

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote - The Order Quote record to check and send.

Returns: Boolean - Returns true if the Order Quote was successfully checked and sent; otherwise, false.

DeclinedOrderQuote(Record KVSKBAOrderQuote) :

Summary: Handles the process when an order quote is declined.

procedure DeclinedOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote - The order quote record that has been declined.

ArchivePurchaseRequestafterDeclinedOrderQuote(Record KVSKBAOrderQuote) :

Summary: Archives a purchase request after the corresponding order quote has been declined.

procedure ArchivePurchaseRequestafterDeclinedOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • OrderQuote: The declined order quote record to process.

Remarks: This procedure handles the archiving process of purchase requests that are associated with declined order quotes.

EditOrderQuote(Record KVSKBAOrderQuote) :

Summary: Edits an existing Order Quote record.

procedure EditOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote: The Order Quote record to be edited.

ReleaseOrderQuote(Record KVSKBAOrderQuote) :

Summary: Releases the order quote to the next state in the workflow.

procedure ReleaseOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote that represents the order quote to be released.

CancelOrderQuote(Record KVSKBAOrderQuote) :

Summary: Cancels an existing order quote.

procedure CancelOrderQuote(OrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote: The order quote record to be cancelled.

CreatePurchaseOrder(Record KVSKBAOrderQuote) : Boolean

Summary: Creates a Purchase Order based on the Order Quote record.

procedure CreatePurchaseOrder(OrderQuote: Record "KVSKBAOrderQuote"): Boolean

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote to create the Purchase Order from.

Returns: True if the Purchase Order was successfully created; otherwise - false.

CreateBulkPurchaseOrders(Record KVSKBAOrderQuoteLine) : Boolean

procedure CreateBulkPurchaseOrders(var OrderQuoteLine: Record "KVSKBAOrderQuoteLine"): Boolean

WriteOrderQuoteLog(Record KVSKBAOrderQuote, Text) :

Summary: Writes a log entry for Order Quote modifications.

procedure WriteOrderQuoteLog(OrderQuote: Record "KVSKBAOrderQuote"; ModifyText: Text): 

Parameters:

  • OrderQuote: The Order Quote record for which to write the log entry.
  • ModifyText: The text describing the modification made to the Order Quote.

GetSpecialNote(Integer, Code[20]) : Text[50]

Summary: Gets the special note associated with a specific record.

procedure GetSpecialNote(TableNo: Integer; No: Code[20]): Text[50]

Parameters:

  • TableNo: Integer value representing the table number to retrieve the note from.
  • No: Code[20] value representing the record number to retrieve the note for.

Returns: Text[50] containing the special note for the specified record.

ShowSpecialNote(Integer, Code[20]) :

Summary: Displays a special note from the specified record.

procedure ShowSpecialNote(TableNo: Integer; No: Code[20]): 

Parameters:

  • TableNo: The table number of the record.
  • No: The primary key (No.) of the record.

Events

OnBeforeVisibleRelease(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if the release action is visible for an Order Quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeVisibleRelease(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The Order Quote record being evaluated.
  • IsHandled: Boolean - Out parameter that indicates if the event has been handled.
  • ReturnValue: Boolean - Out parameter that determines if the release action should be visible.

Remarks: This is an integration event that can be used to modify or override the default release action visibility behavior. If IsHandled is set to TRUE, the original code will be skipped.

OnBeforeVisibleDeclined(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if the declined action is visible for an Order Quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeVisibleDeclined(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The Order Quote record being evaluated.
  • IsHandled: Boolean - Out parameter that indicates if the event has been handled.
  • ReturnValue: Boolean - Out parameter that determines if the declined action should be visible.

Remarks: This is an integration event that can be used to modify or override the default declined action visibility behavior. If IsHandled is set to TRUE, the original code will be skipped.

OnBeforeVisibleUser(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if a user is creator of an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeVisibleUser(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that contains the order quote information.
  • IsHandled: Boolean parameter that indicates if the event has been handled.
  • ReturnValue: Boolean parameter that determines the visibility status of the user.

OnBeforeVisibleCancel(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if the cancel action is visible for an Order Quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeVisibleCancel(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The Order Quote record being evaluated.
  • IsHandled: Boolean - Out parameter that indicates if the event has been handled.
  • ReturnValue: Boolean - Out parameter that determines if the cancel action should be visible.

Remarks: This is an integration event that can be used to modify or override the default cancel action visibility behavior. If IsHandled is set to TRUE, the original code will be skipped.

OnBeforeVisibleEdit(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if the edit action is visible for an Order Quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeVisibleEdit(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The Order Quote record being evaluated.
  • IsHandled: Boolean - Out parameter that indicates if the event has been handled.
  • ReturnValue: Boolean - Out parameter that determines if the edit action should be visible.

Remarks: This is an integration event that can be used to modify or override the default edit action visibility behavior. If IsHandled is set to TRUE, the original code will be skipped.

OnBeforeVisibleCarryOutActionMessage(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if the create purchase order action is visible for an Order Quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeVisibleCarryOutActionMessage(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The Order Quote record being evaluated.
  • IsHandled: Boolean - Out parameter that indicates if the event has been handled.
  • ReturnValue: Boolean - Out parameter that determines if the create purchase order action should be visible.

Remarks: This is an integration event that can be used to modify or override the default create purchase order action visibility behavior. If IsHandled is set to TRUE, the original code will be skipped.

OnBeforeEditable(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before determining if a KVS KBA Order Quote is editable.

[IntegrationEvent(false, false)]
local procedure OnBeforeEditable(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The order quote record to check for editability.
  • IsHandled: Boolean - Out parameter that indicates if the event has been handled.
  • ReturnValue: Boolean - Out parameter that determines if the order quote is editable.

OnBeforeCheckandSendOrderQuote(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before checking and sending an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckandSendOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ClosePage: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record parameter that contains the order quote to be checked and sent.
  • IsHandled: Boolean parameter that indicates if the event has been handled.
  • ClosePage: Boolean parameter that determines if the page should be closed after processing.

OnAfterSendOrderQuote(Record KVSKBAOrderQuote) :

Summary: Integration event that is raised after an order quote is sent.

[IntegrationEvent(false, false)]
local procedure OnAfterSendOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: The order quote record that was sent.

OnBeforeDeclinedOrderQuote(Record KVSKBAOrderQuote, Boolean) :

Summary: Integration event that is fired before an Order Quote is declined.

[IntegrationEvent(false, false)]
local procedure OnBeforeDeclinedOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record parameter of type KVSKBAOrderQuote that contains the order quote information.
  • IsHandled: Boolean parameter that indicates whether the event has been handled.

OnAfterModifyOrderQuoteOnDeclinedOrderQuote(Record KVSKBAOrderQuote) :

Summary: Integration event that is triggered after an Order Quote record has been modified when it is declined.

[IntegrationEvent(false, false)]
local procedure OnAfterModifyOrderQuoteOnDeclinedOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: Parameter of type Record KVSKBAOrderQuote that contains the Order Quote that was declined.

OnBeforeReleaseOrderQuote(Record KVSKBAOrderQuote, Boolean) :

Summary: Integration event that is raised before an Order Quote is released.

[IntegrationEvent(false, false)]
local procedure OnBeforeReleaseOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote.
  • IsHandled: Boolean variable to track if the event has been handled.

OnAfterReleaseOrderQuote(Record KVSKBAOrderQuote) :

Summary: Integration event that is raised after an Order Quote is released.

[IntegrationEvent(false, false)]
local procedure OnAfterReleaseOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote.

OnBeforeArchivePurchaseRequestafterDeclinedOrderQuote(Record KVSKBAOrderQuote, Boolean) :

Summary: Integration event that is triggered before archiving a purchase request after an order quote has been declined.

[IntegrationEvent(false, false)]
local procedure OnBeforeArchivePurchaseRequestafterDeclinedOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: The order quote record that was declined.
  • IsHandled: Boolean parameter to indicate if the event has been handled.

OnBeforeCancelOrderQuote(Record KVSKBAOrderQuote, Boolean) :

Summary: Integration event that is raised before an Order Quote is cancelled.

[IntegrationEvent(false, false)]
local procedure OnBeforeCancelOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: The Order Quote record that is being cancelled.
  • IsHandled: Boolean parameter that tracks if the event has been handled. If set to true, the base functionality will be skipped.

OnAfterCancelOrderQuote(Record KVSKBAOrderQuote, Record KVSKBAArchivedOrderQuote) :

Summary: Integration event that is raised after an Order Quote is cancelled.

[IntegrationEvent(false, false)]
local procedure OnAfterCancelOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: The Order Quote record that is being cancelled.
  • KVSKBAArchivedOrderQuote: The archived Order Quote record that is created after cancellation.

OnAfterArchivePurchaseRequestafterDeclinedOrderQuote(Record KVSKBAOrderQuote, Record KVSKBAArchivedOrderQuote) :

Summary: Integration event that is triggered after archiving a purchase request after an order quote has been declined.

[IntegrationEvent(false, false)]
local procedure OnAfterArchivePurchaseRequestafterDeclinedOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: The order quote record that was declined.
  • KVSKBAArchivedOrderQuote: The archived order quote record.

OnBeforeCheckAdmin(Boolean, Boolean) :

Summary: Integration event that is raised before checking administrator privileges for order quotes.

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckAdmin(var IsHandled: Boolean; ReturnValue: Boolean): 

Parameters:

  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.
  • ReturnValue: Boolean parameter that represents the return value that will be used if the event is handled.

OnBeforeCreatePurchaseOrder(Record KVSKBAOrderQuote, Boolean, Boolean) :

Summary: Integration event that is raised before creating a purchase order from an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseOrder(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that contains the order quote information.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.
  • ReturnValue: Boolean parameter that represents the return value that will be used if the event is handled.

OnBeforeCheckOrderQuote(Record KVSKBAOrderQuote, Boolean) :

Summary: Integration event that is raised before checking an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that will be checked.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.

OnAfterCheckOrderQuote(Record KVSKBAOrderQuote) :

Summary: Integration event that is raised after checking an order quote.

[IntegrationEvent(false, false)]
local procedure OnAfterCheckOrderQuote(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that will be checked.

OnBeforeShowPurchaseOrder(Record KVSKBAArchivedOrderQuote, Boolean, Record Purchase Header) :

Summary: Integration event that is raised before showing the purchase order.

[IntegrationEvent(false, false)]
local procedure OnBeforeShowPurchaseOrder(KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"; var IsHandled: Boolean; var PostedPurchaseOrders: Record "Purchase Header"): 

Parameters:

  • KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote" that contains the archived order quote information.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.
  • PostedPurchaseOrders: VAR Record "Purchase Header" that contains the posted purchase orders. Has Marks and MarkedOnly filter set.

OnBeforeArchiveOrderQuoteafterCreatedPurchaseOrder(Record KVSKBAOrderQuote, Record KVSKBAArchivedOrderQuote, Boolean, Boolean) :

Summary: Integration event fired before archiving an order quote after a purchase order has been created.

[IntegrationEvent(false, false)]
local procedure OnBeforeArchiveOrderQuoteafterCreatedPurchaseOrder(var KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • KVSKBAOrderQuote: The order quote record to be archived.
  • KVSKBAArchivedOrderQuote: The archived order quote record to be created.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.
  • ReturnValue: Boolean return value indicating the result of the archiving operation.

OnArchiveOrderQuoteOnBeforeInsertArchiveOrderQuote(Record KVSKBAArchivedOrderQuote, Record KVSKBAOrderQuote) :

Summary: Integration event that is fired before inserting an archived order quote.

[IntegrationEvent(false, false)]
local procedure OnArchiveOrderQuoteOnBeforeInsertArchiveOrderQuote(var KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"; var KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAArchivedOrderQuote: VAR Record KVSKBAArchivedOrderQuote - The archive record that will be inserted.
  • KVSKBAOrderQuote: VAR Record KVSKBAOrderQuote - The source order quote record being archived.

OnArchiveOrderQuoteLinesOnBeforeArchivedOrderQuoteLineInsert(Record KVSKBAArchivedOrderQuoteLine, Record KVSKBAArchivedOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that is raised before inserting an archived order quote line.

[IntegrationEvent(false, false)]
local procedure OnArchiveOrderQuoteLinesOnBeforeArchivedOrderQuoteLineInsert(var KVSKBAArchivedOrderQuoteLine: Record "KVSKBAArchivedOrderQuoteLine"; KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"; KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • KVSKBAArchivedOrderQuoteLine: VAR Record KVSKBAArchivedOrderQuoteLine - The archived order quote line that will be inserted.
  • KVSKBAArchivedOrderQuote: Record KVSKBAArchivedOrderQuote - The parent archived order quote record.
  • KVSKBAOrderQuoteLine: Record KVSKBAOrderQuoteLine - The original order quote line being archived.

OnBeforeCreateReleaseMail(Record KVSKBAOrderQuote, Record User Setup, Boolean) :

Summary: Integration event that is raised before creating and sending a release mail for an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateReleaseMail(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; UserSetupPar: Record "User Setup"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: The order quote record that is being processed.
  • UserSetupPar: The user setup record containing email.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.

OnCreateReleaseMailOnBeforeAddUrlToBodyText(Record KVSKBAOrderQuote, Text) :

Summary: Integration event that fires before adding URL to the body text when creating a release mail.

[IntegrationEvent(false, false)]
local procedure OnCreateReleaseMailOnBeforeAddUrlToBodyText(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var BodyText: Text): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the order quote.
  • BodyText: Text variable containing the body text of the email. Can be modified in the subscriber.

OnCreateReleaseMailOnAfterAddUrlToBodyText(Record KVSKBAOrderQuote, Text) :

Summary: Integration event that fires after adding URL to the body text when creating a release mail.

[IntegrationEvent(false, false)]
local procedure OnCreateReleaseMailOnAfterAddUrlToBodyText(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var BodyText: Text): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the order quote.
  • BodyText: Text variable containing the body text of the email. Can be modified in the subscriber.

OnCreateReleaseMailOnBeforeEmailMessageCreate(Record KVSKBAOrderQuote, List, Text, Text) :

[IntegrationEvent(false, false)]
local procedure OnCreateReleaseMailOnBeforeEmailMessageCreate(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var Recipient: List; var Subject: Text; var BodyText: Text): 

OnBeforeCreateDeclinedMail(Record KVSKBAOrderQuote, Record User Setup, Boolean) :

Summary: Integration event that is raised before creating a declined mail for an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDeclinedMail(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; UserSetup: Record "User Setup"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the order quote being processed.
  • UserSetup: Record User Setup containing the user settings.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.

OnCreateDeclinedMailOnBeforeEmailMessageCreate(Record KVSKBAOrderQuote, List, Text, Text) :

[IntegrationEvent(false, false)]
local procedure OnCreateDeclinedMailOnBeforeEmailMessageCreate(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var Recipient: List; var Subject: Text; var BodyText: Text): 

OnBeforeCreateOrderMail(Record KVSKBAOrderQuote, Record User Setup, Boolean) :

Summary: Integration event that is raised before creating an order mail.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateOrderMail(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; UserSetup: Record "User Setup"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAOrderQuote: Record of type KVSKBAOrderQuote that contains the order quote information.
  • UserSetup: Record of type User Setup that contains the user setup information.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.

OnCreateOrderMailOnBeforeEmailMessageCreate(Record KVSKBAOrderQuote, List, Text, Text) :

[IntegrationEvent(false, false)]
local procedure OnCreateOrderMailOnBeforeEmailMessageCreate(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var Recipient: List; var Subject: Text; var BodyText: Text): 

OnWriteOrderQuoteLogOnBeforeInsertOrderQuoteLog(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLog) :

Summary: Integration event that is raised before inserting a new order quote log entry.

[IntegrationEvent(false, false)]
local procedure OnWriteOrderQuoteLogOnBeforeInsertOrderQuoteLog(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLog: Record "KVSKBAOrderQuoteLog"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that contains the order quote information.
  • KVSKBAOrderQuoteLog: Record KVSKBAOrderQuoteLog that will be inserted into the database.

OnAfterCreatePurchaseHeader(Record Purchase Header, Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that is raised after creating a purchase header from an order quote.

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; OrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • PurchaseHeader: VAR Record "Purchase Header". The newly created purchase header.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote. The source order quote.
  • OrderQuoteLine: Record KVSKBAOrderQuoteLine. The source order quote line.

OnAfterCreatePurchaseLine(Record Purchase Line, Record Purchase Header, Record KVSKBAOrderQuoteLine) :

Summary: Integration event fired after creating a purchase line from an order quote line.

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseLine(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; OrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • PurchaseLine: VAR Record "Purchase Line" - The purchase line that will be created.
  • PurchaseHeader: Record "Purchase Header" - The related purchase header record.
  • OrderQuoteLine: Record KVSKBAOrderQuoteLine - The source order quote line record.

OnBeforeCreatePurchaseHeader(Record Purchase Header, Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine, Boolean, Boolean) :

Summary: Integration event that is raised before creating a purchase header from an order quote.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; OrderQuoteLine: Record "KVSKBAOrderQuoteLine"; var IsHandled: Boolean; var ReturnValue: Boolean): 

Parameters:

  • PurchaseHeader: VAR Record "Purchase Header". The newly created purchase header.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote. The source order quote.
  • OrderQuoteLine: Record KVSKBAOrderQuoteLine. The source order quote line.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.
  • ReturnValue: Boolean return value indicating the result of the creating operation.

OnBeforeCreatePurchaseLine(Record Purchase Line, Record Purchase Header, Record KVSKBAOrderQuoteLine, Boolean, Integer) :

Summary: Integration event fired before creating a purchase line from an order quote line.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseLine(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; OrderQuoteLine: Record "KVSKBAOrderQuoteLine"; var IsHandled: Boolean; var NextLineNo: Integer): 

Parameters:

  • PurchaseLine: VAR Record "Purchase Line" - The purchase line that will be created.
  • PurchaseHeader: Record "Purchase Header" - The related purchase header record.
  • OrderQuoteLine: Record KVSKBAOrderQuoteLine - The source order quote line record.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.
  • NextLineNo: VAR Integer - The line number that will be used for the new purchase line.

OnCreatePurchaseHeaderOnBeforePurchaseHeaderInsert(Record Purchase Header, Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration Event that is raised before inserting a new Purchase Header when creating it from an Order Quote.

[IntegrationEvent(false, false)]
local procedure OnCreatePurchaseHeaderOnBeforePurchaseHeaderInsert(var PurchaseHeader: Record "Purchase Header"; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; OrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • PurchaseHeader: VAR Record "Purchase Header". The purchase header that will be inserted.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote. The source order quote header.
  • OrderQuoteLine: Record KVSKBAOrderQuoteLine. The source order quote line.

OnCreatePurchaseOrderLineOnBeforePurchaseLineInsert(Record Purchase Line, Record Purchase Header, Record KVSKBAOrderQuoteLine, Integer) :

Summary: Integration event that fires before inserting a new Purchase Line when creating Purchase Order from Order Quote.

[IntegrationEvent(false, false)]
local procedure OnCreatePurchaseOrderLineOnBeforePurchaseLineInsert(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; OrderQuoteLine: Record "KVSKBAOrderQuoteLine"; var NextLineNo: Integer): 

Parameters:

  • PurchaseLine: VAR Record "Purchase Line" - The Purchase Line record that will be inserted.
  • PurchaseHeader: Record "Purchase Header" - The related Purchase Header record.
  • OrderQuoteLine: Record KVSKBAOrderQuoteLine - The Order Quote Line record from which the Purchase Line is being created.
  • NextLineNo: VAR Integer - The line number to be used for the Purchase Line.

OnGetPurchLineTypeFromBANFLineType(Enum KVSKBABANFLineType, Enum Purchase Line Type, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnGetPurchLineTypeFromBANFLineType(BANFLineType: Enum "KVSKBABANFLineType"; var PurchLineType: Enum "Purchase Line Type"; var IsHandled: Boolean): 

OnAfterSetFilterApprovalFlowLineOnVisibleRelease(Record KVSKBAApprovalFlowLineBANF, Boolean, Record KVSKBAOrderQuote) :

Summary: Integration Event that is triggered after setting filters on Approval Flow Line for visible action release.

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterApprovalFlowLineOnVisibleRelease(var KVSKBAApprovalFlowLineBANF: Record "KVSKBAApprovalFlowLineBANF"; IsFixedAsset: Boolean; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAApprovalFlowLineBANF: VAR Record KVSKBAApprovalFlowLineBANF - The approval flow line record to be filtered.
  • IsFixedAsset: Boolean - Indicates if the order quote is for a fixed asset.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The order quote record being processed.

OnSendOrderQuoteOnAfterSetFilterApprovalFlowLine(Record KVSKBAApprovalFlowLineBANF, Boolean, Record KVSKBAOrderQuote) :

Summary: Integration event that occurs after setting filters on the approval flow line for send a order quotes.

[IntegrationEvent(false, false)]
local procedure OnSendOrderQuoteOnAfterSetFilterApprovalFlowLine(var KVSKBAApprovalFlowLineBANF: Record "KVSKBAApprovalFlowLineBANF"; IsFixedAsset: Boolean; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAApprovalFlowLineBANF: VAR Record KVSKBAApprovalFlowLineBANF - The approval flow line record to be filtered.
  • IsFixedAsset: Boolean - Indicates whether the order quote is for a fixed asset.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The order quote record being processed.

OnDeclinedOrderQuoteOnAfterSetFilterApprovalFlowLine(Record KVSKBAApprovalFlowLineBANF, Boolean, Record KVSKBAOrderQuote) :

Summary: Integration event that occurs after setting filters on the approval flow line for decline.

[IntegrationEvent(false, false)]
local procedure OnDeclinedOrderQuoteOnAfterSetFilterApprovalFlowLine(var KVSKBAApprovalFlowLineBANF: Record "KVSKBAApprovalFlowLineBANF"; IsFixedAsset: Boolean; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAApprovalFlowLineBANF: VAR Record KVSKBAApprovalFlowLineBANF - The approval flow line record to be filtered.
  • IsFixedAsset: Boolean - Indicates whether the order quote is for a fixed asset.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The order quote record being processed.

OnReleaseOrderQuoteOnAfterSetFilterApprovalFlowLine(Record KVSKBAApprovalFlowLineBANF, Boolean, Record KVSKBAOrderQuote) :

Summary: Integration event that occurs after setting filters on approval flow lines during order quote release.

[IntegrationEvent(false, false)]
local procedure OnReleaseOrderQuoteOnAfterSetFilterApprovalFlowLine(var KVSKBAApprovalFlowLineBANF: Record "KVSKBAApprovalFlowLineBANF"; IsFixedAsset: Boolean; KVSKBAOrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • KVSKBAApprovalFlowLineBANF: VAR Record KVSKBAApprovalFlowLineBANF - The BANF approval flow line record to be filtered.
  • IsFixedAsset: Boolean - Indicates whether the order quote is for a fixed asset.
  • KVSKBAOrderQuote: Record KVSKBAOrderQuote - The order quote record being released.

OnCreatePurchaseOrderAfterFilterOrderQuoteLines(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that is raised after filtering Order Quote lines during Purchase Order creation.

[IntegrationEvent(false, false)]
local procedure OnCreatePurchaseOrderAfterFilterOrderQuoteLines(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • KVSKBAOrderQuote: The Order Quote record being processed.
  • KVSKBAOrderQuoteLine: The Order Quote Line record that will be filtered.

OnVisibleReleaseAfterFilterOrderQuoteLines(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that fires after filtering Order Quote Lines when checking action release visibility.

[IntegrationEvent(false, false)]
local procedure OnVisibleReleaseAfterFilterOrderQuoteLines(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • KVSKBAOrderQuote: The Order Quote record.
  • KVSKBAOrderQuoteLine: The Order Quote Line record that has been filtered.

OnSendOrderQuoteAfterFilterOrderQuoteLines(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that is raised after filtering Order Quote Lines at check and send a order quote.

[IntegrationEvent(false, false)]
local procedure OnSendOrderQuoteAfterFilterOrderQuoteLines(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the Order Quote header.
  • KVSKBAOrderQuoteLine: Record KVSKBAOrderQuoteLine that represents the filtered Order Quote lines.

OnDeclinedOrderQuoteAfterFilterOrderQuoteLines(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that is raised after filtering Order Quote Lines at declining a order quote.

[IntegrationEvent(false, false)]
local procedure OnDeclinedOrderQuoteAfterFilterOrderQuoteLines(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the Order Quote header.
  • KVSKBAOrderQuoteLine: Record KVSKBAOrderQuoteLine that represents the filtered Order Quote lines.

OnReleaseOrderQuoteAfterFilterOrderQuoteLines(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine) :

Summary: Integration event that is raised after filtering Order Quote Lines at releasing a order quote.

[IntegrationEvent(false, false)]
local procedure OnReleaseOrderQuoteAfterFilterOrderQuoteLines(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the Order Quote header.
  • KVSKBAOrderQuoteLine: Record KVSKBAOrderQuoteLine that represents the filtered Order Quote lines.

OnArchiveOrderQuoteLinesOnAfterFilterOrderQuoteLines(Record KVSKBAOrderQuote, Record KVSKBAOrderQuoteLine, Record KVSKBAArchivedOrderQuote) :

Summary: Integration event that is raised after filtering Order Quote Lines at archiving a order quote.

[IntegrationEvent(false, false)]
local procedure OnArchiveOrderQuoteLinesOnAfterFilterOrderQuoteLines(KVSKBAOrderQuote: Record "KVSKBAOrderQuote"; var KVSKBAOrderQuoteLine: Record "KVSKBAOrderQuoteLine"; KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"): 

Parameters:

  • KVSKBAOrderQuote: Record KVSKBAOrderQuote that represents the Order Quote header.
  • KVSKBAOrderQuoteLine: Record KVSKBAOrderQuoteLine that represents the filtered Order Quote lines.
  • KVSKBAArchivedOrderQuote: Record KVSKBAArchivedOrderQuote that contains the archived order quote information.

OnShowPurchaseOrderAfterFilterOrderQuoteLines(Record KVSKBAArchivedOrderQuote, Record KVSKBAArchivedOrderQuoteLine) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is triggered after filtering archived order quote lines when showing a purchase order.

[Obsolete('This event is no longer needed, since the filtering is now handled using marks. Use "OnBeforeShowPurchaseOrder" instead.', '27.2')]
[IntegrationEvent(false, false)]
local procedure OnShowPurchaseOrderAfterFilterOrderQuoteLines(KVSKBAArchivedOrderQuote: Record "KVSKBAArchivedOrderQuote"; var KVSKBAArchivedOrderQuoteLine: Record "KVSKBAArchivedOrderQuoteLine"): 

Parameters:

  • KVSKBAArchivedOrderQuote: Record KVSKBAArchivedOrderQuote that contains the archived order quote information.
  • KVSKBAArchivedOrderQuoteLine: Record KVSKBAArchivedOrderQuoteLine that contains the filtered order quote lines.

OnGetSpecialNoteSetCommentLineFilter(Record Comment Line) :

Summary: Integration event that allows modifying the Comment Line filter for special notes.

[IntegrationEvent(false, false)]
local procedure OnGetSpecialNoteSetCommentLineFilter(var CommentLine: Record "Comment Line"): 

Parameters:

  • CommentLine: Parameter of type Record "Comment Line" - The comment line record to be filtered.

OnCheckandSendOrderQuoteOnAfterMandatoryFieldsCheck(Record KVSKBAOrderQuote) :

Summary: Integration event that is triggered after checking mandatory fields in an Order Quote at check and send.

[IntegrationEvent(false, false)]
local procedure OnCheckandSendOrderQuoteOnAfterMandatoryFieldsCheck(var OrderQuote: Record "KVSKBAOrderQuote"): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote - The Order Quote record being processed.

Remarks: This is an integration event that allows subscribers to perform additional validations or actions after the mandatory fields have been checked in the Order Quote record.

OnBeforeCreateBulkPurchaseOrders(Record KVSKBAOrderQuoteLine, Boolean, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateBulkPurchaseOrders(var OrderQuoteLine: Record "KVSKBAOrderQuoteLine"; var IsHandled: Boolean; var ReturnValue: Boolean): 

OnReleaseOrderQuoteOnAfterWriteOrderQuoteLog(Record KVSKBAOrderQuote, Record KVSKBAApprovalFlowLineBANF) :

Summary: Integration event that is raised after writing an order quote log entry during order quote release.

[IntegrationEvent(false, false)]
local procedure OnReleaseOrderQuoteOnAfterWriteOrderQuoteLog(OrderQuote: Record "KVSKBAOrderQuote"; ApprovalFlowLine: Record "KVSKBAApprovalFlowLineBANF"): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote - The order quote record being released.
  • ApprovalFlowLine: Record KVSKBAApprovalFlowLineBANF - The approval flow line record related to the release.

Remarks: This event allows subscribers to perform additional actions after an order quote log entry has been written during the release of an order quote.

OnReleaseOrderQuoteOnBeforeCreateReleaseMail(Record KVSKBAOrderQuote, Record User Setup, Record KVSKBAApprovalFlowLineBANF, Boolean) :

Summary: Integration event that is raised before creating a release mail for an order quote.

[IntegrationEvent(false, false)]
local procedure OnReleaseOrderQuoteOnBeforeCreateReleaseMail(OrderQuote: Record "KVSKBAOrderQuote"; UserSetup: Record "User Setup"; ApprovalFlowLineBANF: Record "KVSKBAApprovalFlowLineBANF"; var IsHandled: Boolean): 

Parameters:

  • OrderQuote: Record KVSKBAOrderQuote - The order quote record being released.
  • UserSetup: Record "User Setup" - The user setup record containing email information for the recipient.
  • ApprovalFlowLineBANF: Record KVSKBAApprovalFlowLineBANF - The approval flow line record related to the release.
  • IsHandled: Boolean parameter that determines if the event has been handled. If set to true, the base implementation is skipped.

Remarks: This event allows subscribers to perform additional actions or modify the behavior before a release mail is created for an order quote.