Table of Contents

KVSKBACreateQuoteRequests

Procedures

SetTemplate(Code[10], Code[10]) :

Summary: Sets the template for creating quote requests.

procedure SetTemplate(NewWorksheetTemplateName: Code[10]; NewJournalBatchName: Code[10]): 

Parameters:

  • NewWorksheetTemplateName: The name of the worksheet template.
  • NewJournalBatchName: The name of the journal batch.

Remarks: This procedure is used to set the worksheet template name and journal batch name that will be used when creating quote requests. It allows for dynamic assignment of these values, enabling the report to be reused with different templates and batches as needed.

SetReqLine(Record Requisition Line) :

Summary: Sets the requisition line record that will be used as the source for creating quote requests.

procedure SetReqLine(var NewRequisitionLine: Record "Requisition Line"): 

Parameters:

  • NewRequisitionLine: The record of the requisition line to be used as the source.

Remarks: This procedure is used to set the requisition line record that will be used as the source for creating quote requests. It allows for dynamic assignment of the requisition line, enabling the report to be reused with different requisition lines as needed.

Events

OnCreateLineOnBeforePurchLineModify(Record Purchase Line, Record Requisition Line, Record Purchase Header) :

Summary: Integration event that is raised before modifying a purchase line during the creation of quote requests.

[IntegrationEvent(false, false)]
local procedure OnCreateLineOnBeforePurchLineModify(var PurchLineVar: Record "Purchase Line"; ReqLinePar: Record "Requisition Line"; PurchHeaderPar: Record "Purchase Header"): 

Parameters:

  • PurchLineVar: The purchase line record that is being modified.
  • ReqLinePar: The requisition line record that is the source for the purchase line.
  • PurchHeaderPar: The purchase header record that the purchase line belongs to.

Remarks: This integration event allows external subscribers to perform custom logic or modifications before a purchase line is modified during the creation of quote requests. It provides access to the purchase line record being modified, the source requisition line record, and the purchase header record. Subscribers can use this event to implement custom validation, set additional fields, or perform any necessary adjustments before the purchase line is saved. If an external subscriber sets the handled flag to true, the default logic for modifying the purchase line will be bypassed, allowing for complete control over how purchase lines are created from requisition lines during quote request generation.

OnCreateLineOnAfterPurchLineModify(Record Purchase Line, Record Requisition Line, Record Purchase Header) :

Summary: Integration event that is raised after modifying a purchase line during the creation of quote requests.

[IntegrationEvent(false, false)]
local procedure OnCreateLineOnAfterPurchLineModify(var PurchLineVar: Record "Purchase Line"; ReqLinePar: Record "Requisition Line"; PurchHeaderPar: Record "Purchase Header"): 

Parameters:

  • PurchLineVar: The purchase line record that has been modified.
  • ReqLinePar: The requisition line record that is the source for the purchase line.
  • PurchHeaderPar: The purchase header record that the purchase line belongs to.

Remarks: This integration event allows external subscribers to perform custom logic or modifications after a purchase line has been modified during the creation of quote requests. It provides access to the purchase line record that has been modified, the source requisition line record, and the purchase header record. Subscribers can use this event to implement additional processing, logging, or any necessary adjustments after the purchase line has been saved. If an external subscriber sets the handled flag to true, the default logic for post-processing the purchase line will be bypassed, allowing for complete control over how purchase lines are handled after being created from requisition lines during quote request generation.

OnAfterCreateHeader(Record Purchase Header, Record KVSKBAChooseforQuoteRequest) :

Summary: Integration event that is raised after creating a purchase header during the creation of quote requests.

[IntegrationEvent(false, false)]
local procedure OnAfterCreateHeader(var PurchaseHeader: Record "Purchase Header"; KVSKBAChooseforQuoteRequest: Record "KVSKBAChooseforQuoteRequest"): 

Parameters:

  • PurchaseHeader: The purchase header record that has been created.
  • KVSKBAChooseforQuoteRequest: The choose for quote request record associated with the purchase header.

Remarks: This integration event allows external subscribers to perform custom logic or modifications after a purchase header has been created during the creation of quote requests. It provides access to the purchase header record that has been created and the associated choose for quote request record. Subscribers can use this event to implement additional processing, logging, or any necessary adjustments after the purchase header has been saved. If an external subscriber sets the handled flag to true, the default logic for post-processing the purchase header will be bypassed, allowing for complete control over how purchase headers are handled after being created from quote requests.

OnBeforeCreateLine(Record Requisition Line, Record Purchase Header, Boolean) :

Summary: Integration event that is raised before creating a purchase line during the creation of quote requests.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateLine(RequisitionLine: Record "Requisition Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 

Parameters:

  • RequisitionLine: The requisition line record that is the source for the purchase line.
  • PurchaseHeader: The purchase header record that the purchase line will belong to.
  • IsHandled: A boolean value indicating whether the event has been handled by an external subscriber. If set to true, the default logic for creating the purchase line will be skipped.

Remarks: This integration event allows external subscribers to perform custom logic or modifications before a purchase line is created during the creation of quote requests. It provides access to the requisition line record that is the source for the purchase line, the purchase header record that the purchase line will belong to, and a handled flag. Subscribers can use this event to implement custom validation, set additional fields, or perform any necessary adjustments before the purchase line is created. If an external subscriber sets the handled flag to true, the default logic for creating the purchase line will be bypassed, allowing for complete control over how purchase lines are created from requisition lines during quote request generation.

OnBeforeCreateHeader(Record KVSKBAChooseforQuoteRequest, Record Purchase Header, Boolean) :

Summary: Integration event that is raised before creating a purchase header during the creation of quote requests.

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateHeader(ChooseforQuoteRequest: Record "KVSKBAChooseforQuoteRequest"; var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 

Parameters:

  • ChooseforQuoteRequest: The choose for quote request record associated with the purchase header.
  • PurchaseHeader: The purchase header record that will be created.
  • IsHandled: A boolean value indicating whether the event has been handled by an external subscriber. If set to true, the default logic for creating the purchase header will be skipped.

Remarks: This integration event allows external subscribers to perform custom logic or modifications before a purchase header is created during the creation of quote requests. It provides access to the choose for quote request record associated with the purchase header, the purchase header record that will be created, and a handled flag. Subscribers can use this event to implement custom validation, set additional fields, or perform any necessary adjustments before the purchase header is created. If an external subscriber sets the handled flag to true, the default logic for creating the purchase header will be bypassed, allowing for complete control over how purchase headers are created from quote requests.