Table of Contents

KVSKBAServiceHeader

Extends #437dbf0e84ff417a965ded2bb9650972#Service Header

Fields

Name Type Note
KVSKBADefSalespersonCode2 Code[20]
KVSKBANoPrintedProForma Integer
KVSKBADocumentProcessID Code[20]
KVSKBADonotFindBestPrice Boolean Warning: Obsolete
KVSKBAPriceDiscMinQtyperLine Boolean
KVSKBAPricingCustomer Option OptionMembers: Default,Customer,Bill-to Customer
KVSKBAIncotermNamedCountry Code[10]
KVSKBAIncotermNamedPlace Text[50]
KVSKBAQuoteReleaseStatus Enum (KVSKBASrvQuoteReleaseStatus)
KVSKBAPrintCalenderWeek Boolean

Procedures

KVSKBACreateDocProcID() : Code[20]

Summary: Generates a document process ID.

procedure KVSKBACreateDocProcID(): Code[20]

Returns: Generated document process ID of type Code[20].

Remarks: This procedure generates a document process ID using a number series defined in the "Service Mgt. Setup" table. It checks if the document process ID is already set, and if not, it retrieves the next number from the specified number series to use as the document process ID.

KVSKBACheckPriceCalculationMethod() : Boolean

Summary: Checks if the price calculation method is valid.

procedure KVSKBACheckPriceCalculationMethod(): Boolean

Returns: True if the price calculation method is valid, otherwise false.

Remarks: This procedure checks if the extended price calculation is enabled and if the price calculation method is set to use KBA changes. It returns true if both conditions are met, indicating that the price calculation method is valid for use with KBA changes; otherwise, it returns false.

KVSKBATestQuoteReleaseStatusOpen() :

Summary: The function checks whether the current service quote header is released.

procedure KVSKBATestQuoteReleaseStatusOpen(): 

Remarks: This function is used to check if the quote header is released before allowing certain operations on the quote lines, such as modifying or adding new lines. If the quote header is not released, it may prevent users from making changes to the quote lines until the header is released.

KVSKBASetSuppressTestQuoteReleaseStatusOpen() :

Summary: Suppress Test QuoteReleaseStatus Open

procedure KVSKBASetSuppressTestQuoteReleaseStatusOpen(): 

Remarks: This procedure is used in the scenario where we want to suppress the check for quote release status being open. For example, during certain operations or processes, we might want to bypass the check that ensures the quote is in an open state before allowing modifications to the quote lines. By calling this procedure, it sets a flag that can be used to skip the quote release status check in the relevant code sections.

Events

KVSKBAOnBeforeTestQuoteReleaseStatusOpen(Record Service Header, Record Service Header, Integer, Boolean) :

Summary: Integration event that is raised before the quote release status check is executed.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeTestQuoteReleaseStatusOpen(ServiceHeader: Record "Service Header"; xServiceHeader: Record "Service Header"; CallingFieldNo: Integer; var IsHandled: Boolean): 

Parameters:

  • ServiceHeader: The current service header record.
  • xServiceHeader: The previous state of the service header record.
  • CallingFieldNo: The field number that triggered the validation.
  • IsHandled: Set to true to skip the default quote release status check.

Remarks: Subscribe to this event to implement custom logic before the quote release status is validated. Setting IsHandled to true will bypass the standard check in KVSKBATestQuoteReleaseStatusOpen.

KVSKBAOnAfterTestQuoteReleaseStatusOpen(Record Service Header) :

Summary: Integration event that is raised after the quote release status check has been executed successfully.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnAfterTestQuoteReleaseStatusOpen(ServiceHeader: Record "Service Header"): 

Parameters:

  • ServiceHeader: The current service header record.

Remarks: Subscribe to this event to implement additional logic after the quote release status has been verified as open. This event is only raised when the document type is a quote and the release status is open.

KVSKBAOnBeforeValidateServiceOrderType(Record Service Header, Record Service Header, Boolean) :

Summary: Integration event that is raised before the service order type validation is executed.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeValidateServiceOrderType(ServiceHeader: Record "Service Header"; xServiceHeader: Record "Service Header"; var IsHandled: Boolean): 

Parameters:

  • ServiceHeader: The current service header record.
  • xServiceHeader: The previous state of the service header record.
  • IsHandled: Set to true to skip the default service order type validation logic.

Remarks: Subscribe to this event to implement custom logic before the service order type is validated. Setting IsHandled to true will bypass the standard check that triggers RecreateServLines when the service order type changes.