Codeunit "Serv-Documents Mgt."

ID 5988
Namespace: Microsoft.Service.Posting

Properties

Name Value
Permissions TableData "Service Header" = rimd, TableData "Service Item Line" = rimd, TableData "Service Line" = rimd, TableData "Service Ledger Entry" = rm, TableData "Warranty Ledger Entry" = rm, TableData "Service Shipment Item Line" = rimd, TableData "Service Shipment Header" = rimd, TableData "Service Shipment Line" = rimd, TableData "Service Invoice Header" = rimd, TableData "Service Invoice Line" = rimd, TableData "Service Cr.Memo Header" = rimd, TableData "Service Cr.Memo Line" = rimd

Methods

Initialize

procedure Initialize(var PassedServiceHeader: Record "Service Header", var PassedServiceLine: Record "Service Line")

Parameters

Name Type Description
PassedServiceHeader Table Microsoft.Service.Document."Service Header"
PassedServiceLine Table Microsoft.Service.Document."Service Line"

CheckServiceDocument

procedure CheckServiceDocument(var PassedServiceHeader: Record "Service Header", var PassedServiceLine: Record "Service Line")

Parameters

Name Type Description
PassedServiceHeader Table Microsoft.Service.Document."Service Header"
PassedServiceLine Table Microsoft.Service.Document."Service Line"

CalcInvDiscount

procedure CalcInvDiscount()

PostDocumentLines

procedure PostDocumentLines(var Window: Dialog)

Parameters

Name Type Description
Window Dialog

UpdateDocumentLines

procedure UpdateDocumentLines()

PrepareShipmentHeader

procedure PrepareShipmentHeader(): Code[20]

Returns

Type Description
Code[20]

PrepareInvoiceHeader

procedure PrepareInvoiceHeader(var Window: Dialog): Code[20]

Parameters

Name Type Description
Window Dialog

Returns

Type Description
Code[20]

PrepareCrMemoHeader

procedure PrepareCrMemoHeader(var Window: Dialog): Code[20]

Parameters

Name Type Description
Window Dialog

Returns

Type Description
Code[20]

Finalize

procedure Finalize(var PassedServHeader: Record "Service Header")

Parameters

Name Type Description
PassedServHeader Table Microsoft.Service.Document."Service Header"

InsertValueEntryRelation

procedure InsertValueEntryRelation()

UpdateIncomingDocument

procedure UpdateIncomingDocument(IncomingDocNo: Integer, PostingDate: Date, PostedDocNo: Code[20])

Parameters

Name Type Description
IncomingDocNo Integer
PostingDate Date
PostedDocNo Code[20]

CheckAndSetPostingConstants

procedure CheckAndSetPostingConstants(var PassedShip: Boolean, var PassedConsume: Boolean, var PassedInvoice: Boolean)

Parameters

Name Type Description
PassedShip Boolean
PassedConsume Boolean
PassedInvoice Boolean

CheckAndBlankQtys

procedure CheckAndBlankQtys(ServDocType: Integer)

Parameters

Name Type Description
ServDocType Integer

CheckCloseCondition

procedure CheckCloseCondition(LineQuantity: Decimal, LineQtytoInvoice: Decimal, LineQtyToConsume: Decimal, LineQuantityInvoiced: Decimal, LineQuantityConsumed: Decimal): Boolean

Parameters

Name Type Description
LineQuantity Decimal
LineQtytoInvoice Decimal
LineQtyToConsume Decimal
LineQuantityInvoiced Decimal
LineQuantityConsumed Decimal

Returns

Type Description
Boolean

CheckAdjustedLines

procedure CheckAdjustedLines()

IsCloseConditionMet

procedure IsCloseConditionMet(): Boolean

Returns

Type Description
Boolean

SetNoSeries

procedure SetNoSeries(var PServHeader: Record "Service Header"): Boolean

Parameters

Name Type Description
PServHeader Table Microsoft.Service.Document."Service Header"

Returns

Type Description
Boolean

SetLastNos

procedure SetLastNos(var PServHeader: Record "Service Header")

Parameters

Name Type Description
PServHeader Table Microsoft.Service.Document."Service Header"

SetPostingOptions

procedure SetPostingOptions(passedShip: Boolean, passedConsume: Boolean, passedInvoice: Boolean)

Parameters

Name Type Description
passedShip Boolean
passedConsume Boolean
passedInvoice Boolean

CollectTrackingSpecification

procedure CollectTrackingSpecification(var TempTargetTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
TempTargetTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

Events

OnBeforeModifyServiceDocNoSeries

[IntegrationEvent(False,False)]
local procedure OnBeforeModifyServiceDocNoSeries(var ServHeader: Record "Service Header", PServHeader: Record "Service Header", ModifyHeader: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
PServHeader Table Microsoft.Service.Document."Service Header"
ModifyHeader Boolean

OnAfterCheckCertificateOfSupplyStatus

[IntegrationEvent(False,False)]
local procedure OnAfterCheckCertificateOfSupplyStatus(ServShptHeader: Record "Service Shipment Header", ServShptLine: Record "Service Shipment Line")

Parameters

Name Type Description
ServShptHeader Table Microsoft.Service.History."Service Shipment Header"
ServShptLine Table Microsoft.Service.History."Service Shipment Line"

OnAfterCheckDimComb

[IntegrationEvent(False,False)]
local procedure OnAfterCheckDimComb(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterFinalize

[IntegrationEvent(False,False)]
local procedure OnAfterFinalize(var ServiceHeader: Record "Service Header", var CloseCondition: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CloseCondition Boolean

OnAfterFinalizeHeader

[IntegrationEvent(False,False)]
local procedure OnAfterFinalizeHeader(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterFinalizeCrMemoDocument

[IntegrationEvent(False,False)]
local procedure OnAfterFinalizeCrMemoDocument(var ServiceCrMemoHeader: Record "Service Cr.Memo Header", ServiceHeader: Record "Service Header", var PServCrMemoHeader: Record "Service Cr.Memo Header")

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"
PServCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"

OnAfterFinalizeInvoiceDocument

[IntegrationEvent(False,False)]
local procedure OnAfterFinalizeInvoiceDocument(var ServiceInvoiceHeader: Record "Service Invoice Header", ServiceHeader: Record "Service Header", var PServInvHeader: Record "Service Invoice Header")

Parameters

Name Type Description
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"
PServInvHeader Table Microsoft.Service.History."Service Invoice Header"

OnAfterFinalizeShipmentDocument

[IntegrationEvent(False,False)]
local procedure OnAfterFinalizeShipmentDocument(var ServiceShipmentHeader: Record "Service Shipment Header", ServiceHeader: Record "Service Header", var PServShptHeader: Record "Service Shipment Header")

Parameters

Name Type Description
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"
PServShptHeader Table Microsoft.Service.History."Service Shipment Header"

OnAfterInitialize

[IntegrationEvent(False,False)]
local procedure OnAfterInitialize(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var CloseCondition: Boolean, Ship: Boolean, Consume: Boolean, Invoice: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
CloseCondition Boolean
Ship Boolean
Consume Boolean
Invoice Boolean

OnAfterInsertServLedgerEntrySaleConsume

[IntegrationEvent(False,False)]
local procedure OnAfterInsertServLedgerEntrySaleConsume(var NextServLedgerEntryNo: Integer)

Parameters

Name Type Description
NextServLedgerEntryNo Integer

OnAfterPostDocumentLines

[IntegrationEvent(False,False)]
local procedure OnAfterPostDocumentLines(var ServHeader: Record "Service Header", var ServInvHeader: Record "Service Invoice Header", var ServInvLine: Record "Service Invoice Line", var ServCrMemoHeader: Record "Service Cr.Memo Header", var ServCrMemoLine: Record "Service Cr.Memo Line", GenJnlLineDocType: Enum "Gen. Journal Document Type", GenJnlLineDocNo: Code[20])

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServInvHeader Table Microsoft.Service.History."Service Invoice Header"
ServInvLine Table Microsoft.Service.History."Service Invoice Line"
ServCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServCrMemoLine Table Microsoft.Service.History."Service Cr.Memo Line"
GenJnlLineDocType Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"
GenJnlLineDocNo Code[20]

OnAfterPostServiceResourceLine

[IntegrationEvent(False,False)]
local procedure OnAfterPostServiceResourceLine(var ServHeader: Record "Service Header", var ServLine: Record "Service Line", var ServMgtSetup: Record "Service Mgt. Setup", var TempServLine: Record "Service Line" temporary, var GenJnlLineDocNo: Code[20], var GenJnlLineExtDocNo: Code[35], var Ship: Boolean, var Invoice: Boolean, var Consume: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
ServMgtSetup Table Microsoft.Service.Setup."Service Mgt. Setup"
TempServLine Table Microsoft.Service.Document."Service Line"
GenJnlLineDocNo Code[20]
GenJnlLineExtDocNo Code[35]
Ship Boolean
Invoice Boolean
Consume Boolean

OnAfterPrepareDocument

[IntegrationEvent(False,False)]
local procedure OnAfterPrepareDocument(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterPrepareShipmentHeader

[IntegrationEvent(False,False)]
local procedure OnAfterPrepareShipmentHeader(var ServiceShptHeader: Record "Service Shipment Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceShptHeader Table Microsoft.Service.History."Service Shipment Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterPrepareInvoiceHeader

[IntegrationEvent(False,False)]
local procedure OnAfterPrepareInvoiceHeader(var ServiceInvHeader: Record "Service Invoice Header", ServiceHeader: Record "Service Header", var ServItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceInvHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServItemLine Table Microsoft.Service.Document."Service Item Line"

OnAfterPrepareCrMemoHeader

[IntegrationEvent(False,False)]
local procedure OnAfterPrepareCrMemoHeader(var ServiceCrMemoHeader: Record "Service Cr.Memo Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterServShptHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServShptHeaderInsert(var ServiceShipmentHeader: Record "Service Shipment Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterServShptLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServShptLineInsert(var ServiceShipmentLine: Record "Service Shipment Line", ServiceLine: Record "Service Line", ServiceShipmentHeader: Record "Service Shipment Header", ServiceInvoiceHeader: Record "Service Invoice Header", PassedServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceShipmentLine Table Microsoft.Service.History."Service Shipment Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
PassedServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterServShptItemLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServShptItemLineInsert(var ServiceShptItemLine: Record "Service Shipment Item Line", ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceShptItemLine Table Microsoft.Service.History."Service Shipment Item Line"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnAfterServInvHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServInvHeaderInsert(var ServiceInvoiceHeader: Record "Service Invoice Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterServInvLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServInvLineInsert(var ServiceInvoiceLine: Record "Service Invoice Line", ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceInvoiceLine Table Microsoft.Service.History."Service Invoice Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterServCrMemoHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServCrMemoHeaderInsert(var ServiceCrMemoHeader: Record "Service Cr.Memo Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnAfterServCrMemoLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterServCrMemoLineInsert(var ServiceCrMemoLine: Record "Service Cr.Memo Line", ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceCrMemoLine Table Microsoft.Service.History."Service Cr.Memo Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterSortLines

[IntegrationEvent(False,False)]
local procedure OnAfterSortLines(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeCalcContractDates

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcContractDates(var ServItemLine: Record "Service Item Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServItemLine Table Microsoft.Service.Document."Service Item Line"
IsHandled Boolean

OnBeforeFinalize

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalize(var ServiceHeader: Record "Service Header", var CloseCondition: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
CloseCondition Boolean

OnBeforeFinalizeCrMemoDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeCrMemoDocument(var ServiceCrMemoHeader: Record "Service Cr.Memo Header", var ServHeader: Record "Service Header" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeFinalizeInvoiceDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeInvoiceDocument(var ServiceInvoiceHeader: Record "Service Invoice Header", var ServHeader: Record "Service Header" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeFinalizeShipmentDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeShipmentDocument(var ServiceShipmentHeader: Record "Service Shipment Header", var ServHeader: Record "Service Header" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
ServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeFinalizeDeleteHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeDeleteHeader(var PassedServHeader: Record "Service Header", var ServHeader: Record "Service Header" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
PassedServHeader Table Microsoft.Service.Document."Service Header"
ServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeFinalizeDeleteItemLines

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeDeleteItemLines(var PServItemLine: Record "Service Item Line", var ServHeader: Record "Service Header" temporary, var ServItemLine: Record "Service Item Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
PServItemLine Table Microsoft.Service.Document."Service Item Line"
ServHeader Table Microsoft.Service.Document."Service Header"
ServItemLine Table Microsoft.Service.Document."Service Item Line"
IsHandled Boolean

OnBeforeGetAndCheckCustomer

[IntegrationEvent(False,False)]
local procedure OnBeforeGetAndCheckCustomer(var ServiceHeader: Record "Service Header" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeGetInvoicePostingSetup

[IntegrationEvent(False,False)]
local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting", var IsHandled: Boolean)

Parameters

Name Type Description
InvoicePostingInterface Interface Microsoft.Finance.ReceivablesPayables."Invoice Posting"
IsHandled Boolean

OnBeforeInitialize

[IntegrationEvent(False,False)]
local procedure OnBeforeInitialize(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var CloseCondition: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
CloseCondition Boolean

OnBeforePostServiceItemLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostServiceItemLine(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeInsertServLedgerEntrySaleConsume

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertServLedgerEntrySaleConsume(var ServHeader: Record "Service Header", var ServLine: Record "Service Line", var ServItemLine: Record "Service Item Line", var ServMgtSetup: Record "Service Mgt. Setup", var NextServLedgerEntryNo: Integer, var GenJnlLineDocNo: Code[20], Consume: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
ServItemLine Table Microsoft.Service.Document."Service Item Line"
ServMgtSetup Table Microsoft.Service.Setup."Service Mgt. Setup"
NextServLedgerEntryNo Integer
GenJnlLineDocNo Code[20]
Consume Boolean
IsHandled Boolean

OnBeforeServInvHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServInvHeaderInsert(var ServiceInvoiceHeader: Record "Service Invoice Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeServInvLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServInvLineInsert(var ServiceInvoiceLine: Record "Service Invoice Line", ServiceLine: Record "Service Line", var GlobalServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceInvoiceLine Table Microsoft.Service.History."Service Invoice Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
GlobalServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeServCrMemoHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServCrMemoHeaderInsert(var ServiceCrMemoHeader: Record "Service Cr.Memo Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeServCrMemoLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServCrMemoLineInsert(var ServiceCrMemoLine: Record "Service Cr.Memo Line", ServiceLine: Record "Service Line", var GlobalServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceCrMemoLine Table Microsoft.Service.History."Service Cr.Memo Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
GlobalServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeServShptHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServShptHeaderInsert(var ServiceShipmentHeader: Record "Service Shipment Header", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeServShptLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServShptLineInsert(var ServiceShipmentLine: Record "Service Shipment Line", ServiceLine: Record "Service Line", ServiceShipmentHeader: Record "Service Shipment Header")

Parameters

Name Type Description
ServiceShipmentLine Table Microsoft.Service.History."Service Shipment Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"

OnBeforeServShptItemLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeServShptItemLineInsert(var ServiceShptItemLine: Record "Service Shipment Item Line", ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceShptItemLine Table Microsoft.Service.History."Service Shipment Item Line"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnBeforeSetGenJnlLineDocNumbers

[IntegrationEvent(False,False)]
local procedure OnBeforeSetGenJnlLineDocNumbers(var ServiceHeader: Record "Service Header", var DocType: Integer, var DocNo: Code[20], var ExtDocNo: Code[35])

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
DocType Integer
DocNo Code[20]
ExtDocNo Code[35]

OnBeforeSetLastNos

[IntegrationEvent(False,False)]
local procedure OnBeforeSetLastNos(var PServHeader: Record "Service Header", var ServHeader: Record "Service Header" temporary, Ship: Boolean, Invoice: Boolean, ServLinesPassed: Boolean, CloseCondition: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PServHeader Table Microsoft.Service.Document."Service Header"
ServHeader Table Microsoft.Service.Document."Service Header"
Ship Boolean
Invoice Boolean
ServLinesPassed Boolean
CloseCondition Boolean
IsHandled Boolean

OnBeforeSortLines

[IntegrationEvent(False,False)]
local procedure OnBeforeSortLines(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeUpdateDocumentLines

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateDocumentLines(var ServHeader: Record "Service Header", var CloseCondition: Boolean, var ServLinesPassed: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
CloseCondition Boolean
ServLinesPassed Boolean
IsHandled Boolean

OnCheckCloseConditionOnAfterServiceLineTempLoop

[IntegrationEvent(False,False)]
local procedure OnCheckCloseConditionOnAfterServiceLineTempLoop(var ServiceItemLine: Record "Service Item Line", var ServiceLine: Record "Service Line", Qty: Decimal, QtytoInv: Decimal, QtyToCsm: Decimal, QtyInvd: Decimal, QtyCsmd: Decimal, var ServiceItemClosedCondition: Boolean)

Parameters

Name Type Description
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
Qty Decimal
QtytoInv Decimal
QtyToCsm Decimal
QtyInvd Decimal
QtyCsmd Decimal
ServiceItemClosedCondition Boolean

OnCheckDimensionsAnAfterSetServLineFilters

[IntegrationEvent(False,False)]
local procedure OnCheckDimensionsAnAfterSetServLineFilters(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndSetPostingContantsOnAfterSetFilterForConsume

[IntegrationEvent(False,False)]
local procedure OnCheckAndSetPostingContantsOnAfterSetFilterForConsume(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndSetPostingContantsOnAfterSetFilterForInvoice

[IntegrationEvent(False,False)]
local procedure OnCheckAndSetPostingContantsOnAfterSetFilterForInvoice(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndSetPostingContantsOnAfterSetFilterForShip

[IntegrationEvent(False,False)]
local procedure OnCheckAndSetPostingContantsOnAfterSetFilterForShip(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndBlankQtysOnAfterServLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCheckAndBlankQtysOnAfterServLineSetFilters(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndBlankQtysOnBeforeCheckServLine

[IntegrationEvent(False,False)]
local procedure OnCheckAndBlankQtysOnBeforeCheckServLine(var ServiceLine: Record "Service Line", var SkipCheckContractNoAndShipmentNo: Boolean, var SkipCheckUnitOfMeasureCode: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
SkipCheckContractNoAndShipmentNo Boolean
SkipCheckUnitOfMeasureCode Boolean

OnFinalizeOnBeforeFinalizeDeleteHeader

[IntegrationEvent(False,False)]
local procedure OnFinalizeOnBeforeFinalizeDeleteHeader(var PassedServHeader: Record "Service Header")

Parameters

Name Type Description
PassedServHeader Table Microsoft.Service.Document."Service Header"

OnFinalizeOnBeforeFinalizeHeader

[IntegrationEvent(False,False)]
local procedure OnFinalizeOnBeforeFinalizeHeader(var PassedServHeader: Record "Service Header")

Parameters

Name Type Description
PassedServHeader Table Microsoft.Service.Document."Service Header"

OnFinalizeDeleteLinesOnAfterSetPServItemLineFilters

[IntegrationEvent(False,False)]
local procedure OnFinalizeDeleteLinesOnAfterSetPServItemLineFilters(var ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnFinalizeDeleteLinesOnAfterSetPServLineFilters

[IntegrationEvent(False,False)]
local procedure OnFinalizeDeleteLinesOnAfterSetPServLineFilters(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnFinalizeItemLinesOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnFinalizeItemLinesOnAfterSetFilters(var ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnFinalizeLinesOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnFinalizeLinesOnAfterSetFilters(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnAfterFillInvPostingBuffer

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterFillInvPostingBuffer(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var ServiceLineACY: Record "Service Line", var ServiceInvoiceHeader: Record "Service Invoice Header", var ServiceCrMemoHeader: Record "Service Cr.Memo Header", var ServiceShipmentHeader: Record "Service Shipment Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceLineACY Table Microsoft.Service.Document."Service Line"
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"

OnPostDocumentLinesOnAfterPrepareLine

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterPrepareLine(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var ServiceInvoiceHeader: Record "Service Invoice Header", var ServiceCrMemoHeader: Record "Service Cr.Memo Header", var ServiceShipmentHeader: Record "Service Shipment Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"

OnPostDocumentLinesOnAfterFinishServiceRegister

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterFinishServiceRegister(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnBeforeCheckServLine

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforeCheckServLine(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", Ship: Boolean, Invoice: Boolean, var ServiceItemLine: Record "Service Item Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
Ship Boolean
Invoice Boolean
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"
IsHandled Boolean

OnPostDocumentLinesOnAfterSortLines

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterSortLines(var ServHeader: Record "Service Header", var ServLine: Record "Service Line", var TempVATAmountLine: Record "VAT Amount Line" temporary, var TempVATAmountLineForSLE: Record "VAT Amount Line" temporary)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
TempVATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"
TempVATAmountLineForSLE Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnPostDocumentLinesOnAfterCalcShouldPostShipmentServiceEntry

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterCalcShouldPostShipmentServiceEntry(var ServHeader: Record "Service Header", var ServLine: Record "Service Line", var Ship: Boolean, var ApplToServEntryNo: Integer, var NextServLedgerEntryNo: Integer, var ShouldPostShipmentServiceEntry: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
Ship Boolean
ApplToServEntryNo Integer
NextServLedgerEntryNo Integer
ShouldPostShipmentServiceEntry Boolean

OnPostDocumentLinesOnBeforePostRemQtyToBeConsumed

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforePostRemQtyToBeConsumed(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPrepareDocumentOnBeforePassedServLineFind

[IntegrationEvent(False,False)]
local procedure OnPrepareDocumentOnBeforePassedServLineFind(var PassedServLine: Record "Service Line", ServiceHeader: Record "Service Header")

Parameters

Name Type Description
PassedServLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnPostDocumentLinesOnBeforeRoundAmount

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforeRoundAmount(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnAfterServPostingJnlsMgtCreateCreditEntry

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterServPostingJnlsMgtCreateCreditEntry(var NextServLedgerEntryNo: Integer, var ApplToServEntryNo: Integer, var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
NextServLedgerEntryNo Integer
ApplToServEntryNo Integer
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnAfterServPostingJnlsMgtInsertServLedgerEntrySaleInvoice

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterServPostingJnlsMgtInsertServLedgerEntrySaleInvoice(var NextServLedgerEntryNo: Integer)

Parameters

Name Type Description
NextServLedgerEntryNo Integer

OnPostServiceResourceLineOnBeforeCalcSLEDivideAmount

[IntegrationEvent(False,False)]
local procedure OnPostServiceResourceLineOnBeforeCalcSLEDivideAmount(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPrepareDocumentOnAfterSetPServItemLineFilters

[IntegrationEvent(False,False)]
local procedure OnPrepareDocumentOnAfterSetPServItemLineFilters(var PServItemLine: Record "Service Item Line")

Parameters

Name Type Description
PServItemLine Table Microsoft.Service.Document."Service Item Line"

OnPrepareDocumentOnAfterSetPServLineFilters

[IntegrationEvent(False,False)]
local procedure OnPrepareDocumentOnAfterSetPServLineFilters(var PServLine: Record "Service Line")

Parameters

Name Type Description
PServLine Table Microsoft.Service.Document."Service Line"

OnRemoveLinesNotSatisfyPostingOnBeforeInitRemainingServLine

[IntegrationEvent(False,False)]
local procedure OnRemoveLinesNotSatisfyPostingOnBeforeInitRemainingServLine(var ServiceLine2: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine2 Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnUpdateShptLinesOnInvOnAfterServiceShptLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdateShptLinesOnInvOnAfterServiceShptLineModify(ServiceLine: Record "Service Line", ServiceInvoiceHeader: Record "Service Invoice Header", ServiceShipmentHeader: Record "Service Shipment Header", ServiceShipmentLine: Record "Service Shipment Line", TempTrackingSpecification: Record "Tracking Specification" temporary, TrackingSpecificationExists: Boolean, QtyToBeInvoiced: Decimal, QtyToBeInvoicedBase: Decimal, QtyToBeConsumed: Decimal, QtyToBeConsumedBase: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
ServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
ServiceShipmentLine Table Microsoft.Service.History."Service Shipment Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TrackingSpecificationExists Boolean
QtyToBeInvoiced Decimal
QtyToBeInvoicedBase Decimal
QtyToBeConsumed Decimal
QtyToBeConsumedBase Decimal

OnUpdateServLinesOnPostOrderOnBeforeCalcQuantityShipped

[IntegrationEvent(False,False)]
local procedure OnUpdateServLinesOnPostOrderOnBeforeCalcQuantityShipped(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnUpdateServLinesOnPostOrderOnBeforeInitOutstanding

[IntegrationEvent(False,False)]
local procedure OnUpdateServLinesOnPostOrderOnBeforeInitOutstanding(var ServiceLine: Record "Service Line", var Consume: Boolean, var Invoice: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Consume Boolean
Invoice Boolean

OnPrepareDocumentOnPServLineLoopOnBeforeServLineInsert

[IntegrationEvent(False,False)]
local procedure OnPrepareDocumentOnPServLineLoopOnBeforeServLineInsert(var ServLine: Record "Service Line", PServLine: Record "Service Line")

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"
PServLine Table Microsoft.Service.Document."Service Line"

OnAfterSetServiceLedgerEntryFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetServiceLedgerEntryFilters(var ServLedgEntry: Record "Service Ledger Entry")

Parameters

Name Type Description
ServLedgEntry Table Microsoft.Service.Ledger."Service Ledger Entry"

OnAfterMakeInvtAdjustment

[IntegrationEvent(False,False)]
local procedure OnAfterMakeInvtAdjustment(var InvtSetup: Record "Inventory Setup", var ServHeader: Record "Service Header" temporary)

Parameters

Name Type Description
InvtSetup Table Microsoft.Inventory.Setup."Inventory Setup"
ServHeader Table Microsoft.Service.Document."Service Header"

OnBeforeCheckDimValuePosting

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDimValuePosting(var ServiceLine2: Record "Service Line")

Parameters

Name Type Description
ServiceLine2 Table Microsoft.Service.Document."Service Line"

OnBeforeSetNoSeries

[IntegrationEvent(False,False)]
local procedure OnBeforeSetNoSeries(var ServHeader: Record "Service Header" temporary, Invoice: Boolean, Consume: Boolean, var Result: Boolean, var IsHandled: Boolean, var PServiceHeader: Record "Service Header", Ship: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
Invoice Boolean
Consume Boolean
Result Boolean
IsHandled Boolean
PServiceHeader Table Microsoft.Service.Document."Service Header"
Ship Boolean

OnFinalizeOnBeforeFinalizeHeaderAndLines

[IntegrationEvent(False,False)]
local procedure OnFinalizeOnBeforeFinalizeHeaderAndLines(var PassedServHeader: Record "Service Header", var IsHandled: Boolean, var CloseCondition: Boolean)

Parameters

Name Type Description
PassedServHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean
CloseCondition Boolean

OnFinalizeOnBeforeDeleteHeaderAndLines

[IntegrationEvent(False,False)]
local procedure OnFinalizeOnBeforeDeleteHeaderAndLines(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnFinalizeDeleteHeaderOnAfterDeleteInvoiceSpecFromHeader

[IntegrationEvent(False,False)]
local procedure OnFinalizeDeleteHeaderOnAfterDeleteInvoiceSpecFromHeader(var ServHeader: Record "Service Header" temporary)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"

OnPrepareShipmentHeaderOnBeforeCalcServItemDates

[IntegrationEvent(False,False)]
local procedure OnPrepareShipmentHeaderOnBeforeCalcServItemDates(var ServHeader: Record "Service Header", var ServItemLine: Record "Service Item Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServItemLine Table Microsoft.Service.Document."Service Item Line"
IsHandled Boolean

OnPrepareInvoiceHeaderOnAfterServInvHeaderTransferFields

[IntegrationEvent(False,False)]
local procedure OnPrepareInvoiceHeaderOnAfterServInvHeaderTransferFields(var ServHeader: Record "Service Header", var ServInvHeader: Record "Service Invoice Header" temporary)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServInvHeader Table Microsoft.Service.History."Service Invoice Header"

OnPrepareInvoiceHeaderOnBeforeCheckPostingNo

[IntegrationEvent(False,False)]
local procedure OnPrepareInvoiceHeaderOnBeforeCheckPostingNo(var ServHeader: Record "Service Header", var ServInvHeader: Record "Service Invoice Header" temporary)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServInvHeader Table Microsoft.Service.History."Service Invoice Header"

OnUpdateShptLinesOnInvOnAfterCalcQtyToBeConsumed

[IntegrationEvent(False,False)]
local procedure OnUpdateShptLinesOnInvOnAfterCalcQtyToBeConsumed(var ServiceLine: Record "Service Line", var QtyToBeConsumed: Decimal, var QtyToBeConsumedBase: Decimal, var RemQtyToBeConsumed: Decimal, var RemQtyToBeConsumedBase: Decimal)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
QtyToBeConsumed Decimal
QtyToBeConsumedBase Decimal
RemQtyToBeConsumed Decimal
RemQtyToBeConsumedBase Decimal

OnUpdateServLinesOnPostOrderOnBeforeServLineLoop

[IntegrationEvent(False,False)]
local procedure OnUpdateServLinesOnPostOrderOnBeforeServLineLoop(var ServiceLine: Record "Service Line", Invoice: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
Invoice Boolean
IsHandled Boolean

OnGetShippingAdviceOnAfterServLine2SetFilters

[IntegrationEvent(False,False)]
local procedure OnGetShippingAdviceOnAfterServLine2SetFilters(var ServiceLine2: Record "Service Line")

Parameters

Name Type Description
ServiceLine2 Table Microsoft.Service.Document."Service Line"

OnRemoveLinesNotSatisfyPostingOnFindServLinesNotSelectedToPost

[IntegrationEvent(False,False)]
local procedure OnRemoveLinesNotSatisfyPostingOnFindServLinesNotSelectedToPost(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var ServiceLine2: Record "Service Line", var CloseCondition: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceLine2 Table Microsoft.Service.Document."Service Line"
CloseCondition Boolean
IsHandled Boolean

OnRemoveLinesNotSatisfyPostingOnBeforeRemoveServLines

[IntegrationEvent(False,False)]
local procedure OnRemoveLinesNotSatisfyPostingOnBeforeRemoveServLines(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnBeforeFilterServiceLine

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforeFilterServiceLine(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnAfterCheckCloseCondition

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterCheckCloseCondition(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var ServiceItemLine: Record "Service Item Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"

OnUpdateServLinesOnPostOrderOnBeforeServLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdateServLinesOnPostOrderOnBeforeServLineModify(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnAfterAssignApplToServEntryNo

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterAssignApplToServEntryNo(var ServiceHeader: Record "Service Header", var ApplToServEntryNo: Integer)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ApplToServEntryNo Integer

OnPrepareShipmentHeaderOnBeforeCreateServiceShipmentItemLine

[IntegrationEvent(False,False)]
local procedure OnPrepareShipmentHeaderOnBeforeCreateServiceShipmentItemLine(var ServiceHeader: Record "Service Header", ServiceItemLine: Record "Service Item Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceItemLine Table Microsoft.Service.Document."Service Item Line"
IsHandled Boolean

OnSetNoSeriesOnBeforeSetPostingNo

[IntegrationEvent(False,False)]
local procedure OnSetNoSeriesOnBeforeSetPostingNo(var ServiceHeader: Record "Service Header", Invoice: Boolean, var ModifyHeader: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
Invoice Boolean
ModifyHeader Boolean

OnCheckDimValuePostingOnAssignDimensionsToNewLine

[IntegrationEvent(False,False)]
local procedure OnCheckDimValuePostingOnAssignDimensionsToNewLine(var TableIDArr: array[10] of Integer, var NumberArr: array[10] of Code[20], var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
TableIDArr array[10] of Integer
NumberArr array[10] of Code[20]
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnPrepareDocumentOnServLineInsert

[IntegrationEvent(False,False)]
local procedure OnPrepareDocumentOnServLineInsert(var ServiceHeader2: Record "Service Header", var ServiceLine: Record "Service Line", ServiceLine2: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader2 Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceLine2 Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnPostDocumentLinesOnBeforeCreateCreditEntry

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforeCreateCreditEntry(ServiceHeader: Record "Service Header", ServiceLine: Record "Service Line", GenJnlLineDocNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
GenJnlLineDocNo Code[20]
IsHandled Boolean

OnBeforeFinalizeHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeFinalizeHeader(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnFinalizeShipmentDocumentOnAfterInserServiceShipmentLine

[IntegrationEvent(False,False)]
local procedure OnFinalizeShipmentDocumentOnAfterInserServiceShipmentLine(var ServiceShipmentLine2: Record "Service Shipment Line")

Parameters

Name Type Description
ServiceShipmentLine2 Table Microsoft.Service.History."Service Shipment Line"

OnFinalizeShipmentDocumentOnBeforeCopyServiceShipmentItemLine

[IntegrationEvent(False,False)]
local procedure OnFinalizeShipmentDocumentOnBeforeCopyServiceShipmentItemLine(var ServiceShipmentItemLine: Record "Service Shipment Item Line")

Parameters

Name Type Description
ServiceShipmentItemLine Table Microsoft.Service.History."Service Shipment Item Line"

OnPostDocumentLinesOnAfterCheckServItemRepairStatus

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterCheckServItemRepairStatus(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnPostDocumentLinesOnBeforePostBalancingEntry

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforePostBalancingEntry(ServiceHeader: Record "Service Header", ServiceLine: Record "Service Line", var TotalServiceLine: Record "Service Line", var ServPostingJournalsMgt: Codeunit "Serv-Posting Journals Mgt.", GenJnlLineDocType: Enum "Gen. Journal Document Type", GenJnlLineDocNo: Code[20], GenJnlLineExtDocNo: Code[35], var InvoicePostingInterface: Interface "Invoice Posting", var Window: Dialog, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
TotalServiceLine Table Microsoft.Service.Document."Service Line"
ServPostingJournalsMgt Codeunit Microsoft.Service.Posting."Serv-Posting Journals Mgt."
GenJnlLineDocType Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"
GenJnlLineDocNo Code[20]
GenJnlLineExtDocNo Code[35]
InvoicePostingInterface Interface Microsoft.Finance.ReceivablesPayables."Invoice Posting"
Window Dialog
IsHandled Boolean

OnPostDocumentLinesOnBeforeInvoiceRounding

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnBeforeInvoiceRounding(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var TotalServiceLine: Record "Service Line", var ServAmountsMgt: Codeunit "Serv-Amounts Mgt.", var LastLineRetrieved: Boolean, BiggestLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
TotalServiceLine Table Microsoft.Service.Document."Service Line"
ServAmountsMgt Codeunit Microsoft.Service.Posting."Serv-Amounts Mgt."
LastLineRetrieved Boolean
BiggestLineNo Integer
IsHandled Boolean

OnCheckAndSetPostingConstantsOnAfterCalcPassedConsume

[IntegrationEvent(False,False)]
local procedure OnCheckAndSetPostingConstantsOnAfterCalcPassedConsume(PassedShip: Boolean, var PassedConsume: Boolean, PassedInvoice: Boolean, var ServiceLine: Record "Service Line")

Parameters

Name Type Description
PassedShip Boolean
PassedConsume Boolean
PassedInvoice Boolean
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndSetPostingConstantsOnAfterCalcPassedInvoice

[IntegrationEvent(False,False)]
local procedure OnCheckAndSetPostingConstantsOnAfterCalcPassedInvoice(PassedShip: Boolean, PassedConsume: Boolean, var PassedInvoice: Boolean, var ServiceLine: Record "Service Line")

Parameters

Name Type Description
PassedShip Boolean
PassedConsume Boolean
PassedInvoice Boolean
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckAndSetPostingConstantsOnAfterCalcPassedShip

[IntegrationEvent(False,False)]
local procedure OnCheckAndSetPostingConstantsOnAfterCalcPassedShip(var PassedShip: Boolean, PassedConsume: Boolean, PassedInvoice: Boolean, var ServiceLine: Record "Service Line")

Parameters

Name Type Description
PassedShip Boolean
PassedConsume Boolean
PassedInvoice Boolean
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeRemoveLinesNotSatisfyPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeRemoveLinesNotSatisfyPosting(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", Ship: Boolean, Consume: Boolean, Invoice: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
Ship Boolean
Consume Boolean
Invoice Boolean
IsHandled Boolean

OnAfterGetInvoicePostingParameters

[IntegrationEvent(False,False)]
local procedure OnAfterGetInvoicePostingParameters(var InvoicePostingParameters: Record "Invoice Posting Parameters" temporary, var ServiceInvoiceHeader: Record "Service Invoice Header")

Parameters

Name Type Description
InvoicePostingParameters Table Microsoft.Finance.ReceivablesPayables."Invoice Posting Parameters"
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"

OnPrepareShipmentLineOnAfterWarrantyLedgerEntryModify

[IntegrationEvent(False,False)]
local procedure OnPrepareShipmentLineOnAfterWarrantyLedgerEntryModify(ServiceShipmentLine: Record "Service Shipment Line")

Parameters

Name Type Description
ServiceShipmentLine Table Microsoft.Service.History."Service Shipment Line"

OnFinalizeShipmentDocumentOnBeforeServiceShipmentHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnFinalizeShipmentDocumentOnBeforeServiceShipmentHeaderInsert(var ServiceShipmentHeaderToInsert: Record "Service Shipment Header", var TempServiceShipmentHeader: Record "Service Shipment Header" temporary, var TempServiceHeader: Record "Service Header" temporary)

Parameters

Name Type Description
ServiceShipmentHeaderToInsert Table Microsoft.Service.History."Service Shipment Header"
TempServiceShipmentHeader Table Microsoft.Service.History."Service Shipment Header"
TempServiceHeader Table Microsoft.Service.Document."Service Header"

OnFinalizeInvoiceDocumentOnBeforeServiceInvoiceHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnFinalizeInvoiceDocumentOnBeforeServiceInvoiceHeaderInsert(var ServiceInvoiceHeaderToInsert: Record "Service Invoice Header", var TempServiceInvoiceHeader: Record "Service Invoice Header" temporary, var TempServiceHeader: Record "Service Header" temporary)

Parameters

Name Type Description
ServiceInvoiceHeaderToInsert Table Microsoft.Service.History."Service Invoice Header"
TempServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"
TempServiceHeader Table Microsoft.Service.Document."Service Header"

OnFinalizeCrMemoDocumentOnBeforeServiceCreditMemoHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnFinalizeCrMemoDocumentOnBeforeServiceCreditMemoHeaderInsert(var ServiceCrMemoHeaderToInsert: Record "Service Cr.Memo Header", var TempServiceCrMemoHeader: Record "Service Cr.Memo Header" temporary, var TempServiceHeader: Record "Service Header" temporary)

Parameters

Name Type Description
ServiceCrMemoHeaderToInsert Table Microsoft.Service.History."Service Cr.Memo Header"
TempServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"
TempServiceHeader Table Microsoft.Service.Document."Service Header"

OnBeforeCheckServiceShipmentLineValues

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckServiceShipmentLineValues(var ServiceShipmentLine: Record "Service Shipment Line", var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceShipmentLine Table Microsoft.Service.History."Service Shipment Line"
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnPostDocumentLinesOnAfterPostSalesAndVAT

[IntegrationEvent(False,False)]
local procedure OnPostDocumentLinesOnAfterPostSalesAndVAT(var ServiceHeader: Record "Service Header", var TotalServiceLine: Record "Service Line", var Window: Dialog, GenJnlLineDocNo: Code[20], GenJnlLineExtDocNo: Text[35], Invoice: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
TotalServiceLine Table Microsoft.Service.Document."Service Line"
Window Dialog
GenJnlLineDocNo Code[20]
GenJnlLineExtDocNo Text[35]
Invoice Boolean

OnAfterGetAndCheckCustomer

[IntegrationEvent(False,False)]
local procedure OnAfterGetAndCheckCustomer(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

OnGetAndCheckCustomerOnAfterCheckBlocked

[IntegrationEvent(False,False)]
local procedure OnGetAndCheckCustomerOnAfterCheckBlocked(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

See also