Codeunit 5980 Service-Post

Base Application, Microsoft.Service.Posting

src/Layers/W1/BaseApp/Service/Posting/ServicePost.Codeunit.al22 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 40, trigger

  1. 44raisesOnBeforeRun
  2. 46callsPostWithLines

PostWithLines line 88

  1. 100raisesOnBeforePostWithLinesIsHandled
  2. 107callsValidatePostingAndDocumentDate
  3. 109callsInitialize
  4. 119callsCodeunit 5988 Serv-Documents Mgt. SetNoSeries
  5. 120writesTable 5900 Service Header Modify
  6. 128callsCodeunit 5988 Serv-Documents Mgt. CalcInvDiscount
  7. 131callsCollectWhseShipmentInformation
  8. 133callsProcessPosting
  9. 140callsCodeunit 5770 Whse.-Service Release Release
  10. 145raisesOnAfterPostServiceDoc
  11. 150callsCodeunit 410 Update Analysis View UpdateAll
  12. 151callsCodeunit 7150 Update Item Analysis View UpdateAll
  13. 156raisesOnAfterPostWithLinesIsHandled

ProcessPosting line 173, local

  1. 187raisesOnSetCommitBehavior
  2. 190callsPostDocumentLinesCommitBehaviorIgnore
  3. 196callsPostDocumentLines

PostDocumentLinesCommitBehaviorIgnore line 218, local

  1. 229callsPostDocumentLines

PostDocumentLines line 251, local

  1. 273callsLockTables
  2. 275callsCodeunit 5988 Serv-Documents Mgt. CheckAndBlankQtys
  3. 275callsGetServDocType
  4. 279callsCodeunit 5988 Serv-Documents Mgt. PrepareShipmentHeader
  5. 283raisesOnPostDocumentLinesOnBeforeInsertPostedHeadersIsHandled
  6. 287callsCodeunit 5988 Serv-Documents Mgt. PrepareInvoiceHeader
  7. 288callsCodeunit 5988 Serv-Documents Mgt. UpdateIncomingDocument
  8. 290callsCodeunit 5988 Serv-Documents Mgt. PrepareCrMemoHeader
  9. 291callsCodeunit 5988 Serv-Documents Mgt. UpdateIncomingDocument
  10. 296raisesOnBeforeCreatePostedWhseShptHeader
  11. 297callsCodeunit 5763 Whse.-Post Shipment CreatePostedShptHeader
  12. 300callsCodeunit 5988 Serv-Documents Mgt. PostDocumentLines
  13. 301callsCodeunit 5988 Serv-Documents Mgt. CollectTrackingSpecification
  14. 303callsCodeunit 5988 Serv-Documents Mgt. SetLastNos
  15. 304writesTable 5900 Service Header Modify
  16. 307callsCodeunit 6041 Service Document Archive Mgmt. AutoArchiveServiceDocument
  17. 312callsCodeunit 5988 Serv-Documents Mgt. UpdateDocumentLines
  18. 314callsCodeunit 5988 Serv-Documents Mgt. InsertValueEntryRelation
  19. 320callsCodeunit 5763 Whse.-Post Shipment CreatePostedShptLine
  20. 324callsUpdateWhseDocuments
  21. 330callsCodeunit 19 Gen. Jnl.-Post Preview ThrowError
  22. 333callsFinalize
  23. 335raisesOnAfterFinalizePostingOnBeforeCommit

GetServDocType line 339, local

  1. 345callsTable 5936 Service Document Register ServiceDocument

UpdateWhseDocuments line 349, local

  1. 354raisesOnBeforeUpdateWhseDocumentsIsHandled
  2. 358callsCodeunit 5763 Whse.-Post Shipment PostUpdateWhseDocuments

Initialize line 361, local

  1. 363raisesOnBeforeInitialize
  2. 364callsCheckServiceDocument
  3. 365callsSetPostingOptions
  4. 367callsCodeunit 5988 Serv-Documents Mgt. Initialize
  5. 371callsCheckAndSetPostingConstants
  6. 373raisesOnInitializeOnAfterCheckAndSetPostingConstants
  7. 380callsCodeunit 5988 Serv-Documents Mgt. CheckAdjustedLines
  8. 382raisesOnAfterInitialize

CheckServiceDocument line 385

  1. 389callsTestMandatoryFields
  2. 390callsCodeunit 6463 Serv. Report Distribution Mgt. RunDefaultCheckServiceElectronicDocument
  3. 391callsCodeunit 5988 Serv-Documents Mgt. CheckServiceDocument

Finalize line 394, local

  1. 396callsCodeunit 5988 Serv-Documents Mgt. Finalize

CheckAndSetPostingConstants line 399, local

  1. 404raisesOnBeforeCheckAndSetPostingConstantsIsHandled
  2. 421callsCodeunit 5988 Serv-Documents Mgt. CheckAndSetPostingConstants
  3. 424callsCodeunit 9070 Document Errors Mgt. GetNothingToPostErrorMsg
  4. 428raisesOnCheckAndSetConstantsOnBeforeSetPostingOptions
  5. 429callsSetPostingOptions

ValidatePostingAndDocumentDate line 432, local

  1. 434raisesOnBeforeValidatePostingAndDocumentDate
  2. 436validatesTable 5900 Service Header Posting Date
  3. 437validatesTable 5900 Service Header Currency Code
  4. 440validatesTable 5900 Service Header Document Date
  5. 441raisesOnValidatePostingAndDocumentDateOnAfterValidateDocumentDate
  6. 444raisesOnAfterValidatePostingAndDocumentDate

TestMandatoryFields line 447, local

  1. 453raisesOnBeforeTestMandatoryFieldsIsHandled
  2. 466callsTestServLinePostingDate
  3. 469callsCheckDateNotAllowedForServiceLine
  4. 470callsCodeunit 11 Gen. Jnl.-Check Line DateNotAllowed
  5. 473callsTable 5900 Service Header TestMandatoryFields

CheckDateNotAllowedForServiceLine line 476, local

  1. 482raisesOnBeforeCheckDateNotAllowedForServiceLineIsHandled
  2. 487callsCodeunit 11 Gen. Jnl.-Check Line DateNotAllowed

SetPostingDate line 491

  1. 498raisesOnBeforeSetPostingDateIsHandled

SetPostingOptions line 514

  1. 519callsCodeunit 5988 Serv-Documents Mgt. SetPostingOptions

TestDeleteHeader line 532

  1. 546raisesOnTestDeleteHeaderOnAfterServiceShptHeaderTransferFields
  2. 561raisesOnTestDeleteHeaderOnAfterServiceInvHeaderTransferFields
  3. 586raisesOnTestDeleteHeaderOnAfterServiceCrMemoHeaderTransferFields

LockTables line 597, local

  1. 603callsTable 313 Inventory Setup OptimGLEntLockForMultiuserEnv
  2. 605raisesOnLockTablesOnBeforeGLEntryFindLast
  3. 606callsTable 17 G/L Entry GetLastEntryNo

DeleteHeader line 610

  1. 612callsTestDeleteHeader
  2. 614raisesOnBeforeServiceShptHeaderInsert
  3. 615writesTable 5990 Service Shipment Header Insert
  4. 620raisesOnDeleteHeaderOnBeforeServiceShptLineInsert
  5. 621writesTable 5991 Service Shipment Line Insert
  6. 625raisesOnBeforeServiceInvHeaderInsert
  7. 626writesTable 5992 Service Invoice Header Insert
  8. 631raisesOnDeleteHeaderOnBeforeServiceInvLineInsert
  9. 632writesTable 5993 Service Invoice Line Insert
  10. 636raisesOnBeforeServiceCrMemoHeaderInsert
  11. 637writesTable 5994 Service Cr.Memo Header Insert
  12. 642raisesOnDeleteHeaderOnBeforeServiceCrMemoLineInsert
  13. 643writesTable 5995 Service Cr.Memo Line Insert
  14. 645raisesOnAfterDeleteHeader

CollectWhseShipmentInformation line 648, local

  1. 654writesTable 7320 Warehouse Shipment Header DeleteAll
  2. 655writesTable 7321 Warehouse Shipment Line DeleteAll
  3. 672writesTable 7321 Warehouse Shipment Line Insert
  4. 675writesTable 7320 Warehouse Shipment Header Insert

TestServLinePostingDate line 681, local

  1. 691callsCodeunit 11 Gen. Jnl.-Check Line DateNotAllowed

SendPostedDocumentRecord line 737

  1. 747callsTable 5992 Service Invoice Header SendProfile
  2. 757callsTable 5992 Service Invoice Header SendProfile
  3. 766callsTable 5994 Service Cr.Memo Header SendProfile