KVSKBACopyServDocument
Procedures
SetServiceHeader(Record Service Header) :
Summary: Transfers the service header to be copied
procedure SetServiceHeader(var NewServiceHeader: Record "Service Header"):
Parameters:
NewServiceHeader: the record Service Header
Remarks: This procedure is used to transfer the service header to be copied. The service header is used to determine the customer and other relevant information for the new service document.
SetParameters(Enum KVSKBAServiceDocumentTypeFrom, Code[20], Integer, Integer, Boolean, Boolean) :
Summary: Set Paramter for Copy Service Documents
procedure SetParameters(NewServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; NewFromDocumentNo: Code[20]; NewFromDocNoOccurrence: Integer; NewFromDocVersionNo: Integer; NewIncludeHeader: Boolean; NewRecalculateLines: Boolean):
Parameters:
NewServiceDocumentTypeFrom: Service Document Type to be copied from as Enum KVSKBAServiceDocumentTypeFrom.NewFromDocumentNo: Document number to be copied from as Code [20].NewFromDocNoOccurrence: The Doc. No. Occurrence (for archived documents) to be copied from as Integer.NewFromDocVersionNo: The version no. (for archived documents) to be copied from as Integer.NewIncludeHeader: Set Copy with Header as Boolean.NewRecalculateLines: Defines whether the lines should be recalculated.
Remarks: This procedure is used to set the parameters for copying service documents. It allows you to specify the source document type, document number, occurrence, version, and options for including the header and recalculating lines.
SetParameters(Enum KVSKBAServiceDocumentTypeFrom, Code[20], Integer, Integer, Boolean, Boolean, Boolean) :
Summary: Set Paramter for Copy Service Documents
procedure SetParameters(NewServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; NewFromDocumentNo: Code[20]; NewFromDocNoOccurrence: Integer; NewFromDocVersionNo: Integer; NewIncludeHeader: Boolean; NewRecalculateLines: Boolean; NewUpdateTexts: Boolean):
Parameters:
NewServiceDocumentTypeFrom: Service Document Type to be copied from as Enum KVSKBAServiceDocumentTypeFrom.NewFromDocumentNo: Document number to be copied from as Code [20].NewFromDocNoOccurrence: The Doc. No. Occurrence (for archived documents) to be copied from as Integer.NewFromDocVersionNo: The version no. (for archived documents) to be copied from as Integer.NewIncludeHeader: Set Copy with Header as Boolean.NewRecalculateLines: Defines whether the lines should be recalculated.NewUpdateTexts: Defines whether the texts should be updated.
Remarks: This procedure is used to set the parameters for copying service documents. It allows you to specify the source document type, document number, occurrence, version, and options for including the header, recalculating lines, and updating texts.
Events
OnOpenPageCaseElseGlobalServiceDocumentTypeFrom(Record Service Header, Enum KVSKBAServiceDocumentTypeFrom, Code[20]) :
Summary: Integration event that is raised when the OnOpenPage trigger is executed and the GlobalServiceDocumentTypeFrom variable does not match any of the predefined document types.
[IntegrationEvent(false, false)]
local procedure OnOpenPageCaseElseGlobalServiceDocumentTypeFrom(var FromServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; DocumentNo: Code[20]):
Parameters:
FromServiceHeader: The service header record that is being processed.ServiceDocumentTypeFrom: The service document type that is being processed.DocumentNo: The document number that is being processed.
Remarks: This event allows you to perform additional actions or customizations when the OnOpenPage trigger is executed and the GlobalServiceDocumentTypeFrom variable does not match any of the predefined document types. You can use this event to handle custom document types or implement specific logic based on your requirements.
OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(Code[20]) :
Summary: Integration event that is raised when the PageLookupDocumentNo procedure is executed and the GlobalServiceDocumentTypeFrom variable does not match any of the predefined document types.
[IntegrationEvent(false, false)]
local procedure OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var DocumentNo: Code[20]):
Parameters:
DocumentNo: The document number that is being looked up.
Remarks: This event allows you to perform additional actions or customizations when the PageLookupDocumentNo procedure is executed and the GlobalServiceDocumentTypeFrom variable does not match any of the predefined document types. You can use this event to handle custom document types or implement specific logic based on your requirements.
OnValidateDocumentNoCaseElseGlobalServiceDocumentTypeFrom(Record Service Header, Code[20], Enum KVSKBAServiceDocumentTypeFrom) :
Summary: Integration event that is raised when the ValidateDocumentNo procedure is executed and the GlobalServiceDocumentTypeFrom variable does not match any of the predefined document types.
[IntegrationEvent(false, false)]
local procedure OnValidateDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var FromServiceHeader: Record "Service Header"; DocumentNo: Code[20]; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"):
Parameters:
FromServiceHeader: The service header record that is being validated.DocumentNo: The document number that is being validated.ServiceDocumentTypeFrom: The service document type that is being validated.
Remarks: This event allows you to perform additional actions or customizations when the ValidateDocumentNo procedure is executed and the GlobalServiceDocumentTypeFrom variable does not match any of the predefined document types. You can use this event to handle custom document types or implement specific logic based on your requirements.
OnPreReportOnBeforeCopyServiceDocument(Codeunit KVSKBASrvCopyDocumentLib, Enum KVSKBAServiceDocumentTypeFrom, Code[20], Record Service Header, Boolean, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnPreReportOnBeforeCopyServiceDocument(var SrvCopyDocumentLib: Codeunit "KVSKBASrvCopyDocumentLib"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; DocumentNo: Code[20]; ServiceHeader: Record "Service Header"; CurrReportUseRequestPage: Boolean; IncludeHeader: Boolean; RecalculateLines: Boolean):
OnAfterValidateIncludeHeader(Boolean, Record Service Header, Enum KVSKBAServiceDocumentTypeFrom, Boolean) :
Summary: Integration event that is raised after the ValidateIncludeHeader procedure is executed and the RecalculateLines variable is set.
[IntegrationEvent(false, false)]
local procedure OnAfterValidateIncludeHeader(var RecalculateLines: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; IncludeHeader: Boolean):
Parameters:
RecalculateLines: A Boolean variable that indicates whether the lines should be recalculated.ServiceHeader: The service header record that is being processed.ServiceDocumentTypeFrom: The service document type that is being processed.IncludeHeader: A Boolean variable that indicates whether the header should be included in the copy operation.
Remarks: This event allows you to perform additional actions or customizations after the ValidateIncludeHeader procedure is executed and the RecalculateLines variable is set. You can use this event to modify the behavior of the report or batch job based on your specific requirements.
OnAfterSetIncludeHeader(Boolean, Record Service Header, Enum KVSKBAServiceDocumentTypeFrom) :
Summary: Integration event that is raised after the ValidateDocumentNo procedure is executed and the IncludeHeader variable is set.
[IntegrationEvent(false, false)]
local procedure OnAfterSetIncludeHeader(var IncludeHeader: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"):
Parameters:
IncludeHeader: A Boolean variable that indicates whether the header should be included in the copy operation.ServiceHeader: The service header record that is being processed.ServiceDocumentTypeFrom: The service document type that is being processed.
Remarks: This event allows you to perform additional actions or customizations after the ValidateDocumentNo procedure is executed and the IncludeHeader variable is set. You can use this event to modify the behavior of the report or batch job based on your specific requirements.
OnAfterOnOpenPage() :
Summary: Integration event that is raised after the OnOpenPage trigger is executed.
[IntegrationEvent(false, false)]
local procedure OnAfterOnOpenPage():
Remarks: This event allows you to perform additional actions or customizations after the OnOpenPage trigger is executed. You can use this event to modify the behavior of the report or batch job based on your specific requirements.
Protected Variables
GlobalFromServiceHeader
Type: Record Service Header
GlobalServiceHeader
Type: Record Service Header
GlobalSrvCopyDocumentLib
Type: Codeunit (KVSKBASrvCopyDocumentLib)
GlobalCopyDocProcID
Type: Boolean
GlobalIncludeHeader
Type: Boolean
GlobalRecalculateLines
Type: Boolean
GlobalUpdateTexts
Type: Boolean
GlobalDocumentNo
Type: Code[20]
GlobalServiceDocumentTypeFrom
Type: Enum (KVSKBAServiceDocumentTypeFrom)
GlobalDocumentNoOccurrence
Type: Integer
GlobalVersionNo
Type: Integer