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
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.
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.
Events
OnOpenPageCaseElseGlobalServiceDocumentTypeFrom(Record Service Header, Enum KVSKBAServiceDocumentTypeFrom, Code[20]) :
[IntegrationEvent(false, false)]
local procedure OnOpenPageCaseElseGlobalServiceDocumentTypeFrom(var FromServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; DocumentNo: Code[20]):
OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(Code[20]) :
[IntegrationEvent(false, false)]
local procedure OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var DocumentNo: Code[20]):
OnValidateDocumentNoCaseElseGlobalServiceDocumentTypeFrom(Record Service Header, Code[20], Enum KVSKBAServiceDocumentTypeFrom) :
[IntegrationEvent(false, false)]
local procedure OnValidateDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var FromServiceHeader: Record "Service Header"; DocumentNo: Code[20]; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"):
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) :
[IntegrationEvent(false, false)]
local procedure OnAfterValidateIncludeHeader(var RecalculateLines: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; IncludeHeader: Boolean):
OnAfterSetIncludeHeader(Boolean, Record Service Header, Enum KVSKBAServiceDocumentTypeFrom) :
[IntegrationEvent(false, false)]
local procedure OnAfterSetIncludeHeader(var IncludeHeader: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"):
OnAfterOnOpenPage() :
[IntegrationEvent(false, false)]
local procedure OnAfterOnOpenPage():
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