codeunitSales & Receivablesofficial - Microsoftderived - from the source, no model text

Codeunit 1339 "Cancel Posted Sales Cr. Memo"

Base Application · Microsoft.Sales.History

Across versions

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

Neighbourhood 12 connected objects and pages

Table 114 "Sales Cr.Memo Header" (relates to)Sales Cr.Memo HeaderCodeunit 408 "DimensionManagement" (calls, 5 links)DimensionManagementCodeunit 1334 "Cancel PstdSalesCrM (Yes/No)" (calls, 2 links)Cancel PstdSalesCrM (Yes/No)Codeunit 6620 "Copy Document Mgt." (calls, 2 links)Copy Document Mgt.Page 20038 "APIV1 - Sales Credit Memos" (calls, 2 links)APIV1 - Sales Credit MemosPage 30038 "APIV2 - Sales Credit Memos" (calls, 2 links)APIV2 - Sales Credit MemosCodeunit 11 "Gen. Jnl.-Check Line" (calls)Gen. Jnl.-Check LineCodeunit 226 "CustEntry-Apply Posted Entries" (calls)Codeunit 700 "Page Management" (calls)Page ManagementCodeunit 80 "Sales-Post" (calls)Sales-PostPage 43 "Sales Invoice" (calls)Sales InvoicePage 456 "No. Series" (calls)No. Series

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.Sales.History · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Sales Cr.Memo Header
Permissions TableData “Sales Invoice Header” = rm, TableData “Sales Cr.Memo Header” = rm

Events published

  • OnAfterCreateCopyDocument(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesHeader: Record "Sales Header") (integration)
  • OnAfterTestCorrectCrMemoIsAllowed(var SalesCrMemoHeader: Record "Sales Cr.Memo Header") (integration)
  • OnBeforeTestInventoryPostingSetup(SalesCrMemoLine: Record "Sales Cr.Memo Line"; var IsHandled: Boolean) (integration)
  • OnCreateCopyDocumentOnBeforeSalesHeaderInsert(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") (integration)
  • OnBeforeTestIfUnapplied(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowSalesInvoice(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowPostedSalesInvoice(var SalesInvHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) (integration)
  • OnBeforeTestCorrectCrMemoIsAllowed(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) (integration)
  • OnBeforeTestIfCrMemoIsCorrectiveDoc(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) + BC24 (integration)
  • OnTestIfAppliedCorrectlyOnAfterCalcAmounts(var CustLedgerEntry: Record "Cust. Ledger Entry") + BC25 (integration)
  • OnBeforeTestIfAnyFreeNumberSeries(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) + BC28 (integration)

Procedures

  • CancelPostedCrMemo(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"): Boolean: Cancels the posted sales credit memo by creating and posting a corrective sales invoice.
  • TestCorrectCrMemoIsAllowed(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"): Tests whether the posted sales credit memo can be canceled by checking customer status, dimensions, and other conditions.

Plus 29 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 Sales Cr. Memo"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources