codeunitPurchasing & Payablesofficial - Microsoftderived - from the source, no model text

Codeunit 1402 "Cancel Posted Purch. Cr. Memo"

Base Application · Microsoft.Purchases.History

Across versions

  1. BC23present
  2. BC241 procedures added
  3. BC251 events added
  4. BC26-27unchanged
  5. BC282 events added
  6. BC29-30unchanged

Neighbourhood 11 connected objects and pages

Table 124 "Purch. Cr. Memo Hdr." (relates to)Purch. Cr. Memo Hdr.Codeunit 408 "DimensionManagement" (calls, 5 links)DimensionManagementCodeunit 1401 "Cancel PstdPurchCrM (Yes/No)" (calls, 2 links)Cancel PstdPurchCrM (Yes/No)Codeunit 6620 "Copy Document Mgt." (calls, 2 links)Copy Document Mgt.Page 30083 "APIV2 - Purchase Credit Memos" (calls, 2 links)APIV2 - Purchase Credit MemosCodeunit 11 "Gen. Jnl.-Check Line" (calls)Gen. Jnl.-Check LineCodeunit 227 "VendEntry-Apply Posted Entries" (calls)VendEntry-Apply Posted EntriesCodeunit 90 "Purch.-Post" (calls)Purch.-PostPage 138 "Posted Purchase Invoice" (calls)Posted Purchase InvoicePage 456 "No. Series" (calls)No. SeriesPage 51 "Purchase Invoice" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Purchases.History · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Purch. Cr. Memo Hdr.
Permissions TableData “Purch. Inv. Header” = rm, TableData “Purch. Cr. Memo Hdr.” = rm

Events published

  • OnBeforeShowPostedPurchaseInvoice(var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) (integration)
  • OnAfterTestCorrectCrMemoIsAllowed(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") (integration)
  • OnCancelPostedCrMemoOnBeforeTestCorrectCrMemoIsAllowed(var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") + BC28 (integration)
  • OnAfterCreateCopyDocument(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchaseHeader: Record "Purchase Header") (integration)
  • OnBeforeTestIfCrMemoIsCorrectiveDoc(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean) (integration)
  • OnBeforeTestInventoryPostingSetup(PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var IsHandled: Boolean) (integration)
  • OnBeforeTestGenPostingSetup(PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var IsHandled: Boolean) (integration)
  • OnBeforeTestIfUnapplied(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean) (integration)
  • OnCreateCopyDocumentOnBeforePurchHeaderInsert(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") (integration)
  • OnRunOnBeforeRunPurchPost(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") (integration)
  • OnTestIfAppliedCorrectlyBeforeCalcPartiallyApplied(var VendorLedgerEntry: Record "Vendor Ledger Entry") + BC25 (integration)
  • OnBeforeTestIfAnyFreeNumberSeries(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean) + BC28 (integration)

Procedures

  • CancelPostedCrMemo(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."): Boolean
  • TestCorrectCrMemoIsAllowed(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")
  • CheckGLAccount(AccountNo: Code[20]; PurchCrMemoLine: Record "Purch. Cr. Memo Line")

Plus 30 local procedures.

Triggers

OnRun

Relations

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Cancel Posted Purch. Cr. Memo"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources