Skip to content

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.

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]): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnOpenPageCaseElseGlobalServiceDocumentTypeFrom', '', false, false)]
local procedure DoSomethingOnOpenPageCaseElseGlobalServiceDocumentTypeFrom(var FromServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; DocumentNo: Code[20])
begin
end;

OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var DocumentNo: Code[20]): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom', '', false, false)]
local procedure DoSomethingOnPageLookupDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var DocumentNo: Code[20])
begin
end;

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"): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnValidateDocumentNoCaseElseGlobalServiceDocumentTypeFrom', '', false, false)]
local procedure DoSomethingOnValidateDocumentNoCaseElseGlobalServiceDocumentTypeFrom(var FromServiceHeader: Record "Service Header"; DocumentNo: Code[20]; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom")
begin
end;

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): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnPreReportOnBeforeCopyServiceDocument', '', false, false)]
local procedure DoSomethingOnPreReportOnBeforeCopyServiceDocument(var SrvCopyDocumentLib: Codeunit "KVSKBASrvCopyDocumentLib"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; DocumentNo: Code[20]; ServiceHeader: Record "Service Header"; CurrReportUseRequestPage: Boolean; IncludeHeader: Boolean; RecalculateLines: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnAfterValidateIncludeHeader', '', false, false)]
local procedure DoSomethingOnAfterValidateIncludeHeader(var RecalculateLines: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"; IncludeHeader: Boolean)
begin
end;

OnAfterSetIncludeHeader(Boolean, Record Service Header, Enum KVSKBAServiceDocumentTypeFrom) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSetIncludeHeader(var IncludeHeader: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom"): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnAfterSetIncludeHeader', '', false, false)]
local procedure DoSomethingOnAfterSetIncludeHeader(var IncludeHeader: Boolean; ServiceHeader: Record "Service Header"; ServiceDocumentTypeFrom: Enum "KVSKBAServiceDocumentTypeFrom")
begin
end;

OnAfterOnOpenPage() :#

[IntegrationEvent(false, false)]
local procedure OnAfterOnOpenPage(): 
[EventSubscriber(ObjectType::Report, Report::"KVSKBACopyServDocument", 'OnAfterOnOpenPage', '', false, false)]
local procedure DoSomethingOnAfterOnOpenPage()
begin
end;

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

GlobalDocumentNo#

Type: Code[20]

GlobalServiceDocumentTypeFrom#

Type: Enum (KVSKBAServiceDocumentTypeFrom)

GlobalDocumentNoOccurrence#

Type: Integer

GlobalVersionNo#

Type: Integer