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

Codeunit 81 "Sales-Post (Yes/No)"

Base Application · Microsoft.Sales.Posting

Across versions

  1. BC23present
  2. BC241 procedures added
  3. BC251 events added
  4. BC261 events added, 1 events removed
  5. BC27-30unchanged

Neighbourhood 13 connected objects and pages

Table 36 "Sales Header" (relates to)Sales HeaderCodeunit 80 "Sales-Post" (calls, 4 links)Sales-PostCodeunit 19 "Gen. Jnl.-Post Preview" (calls, 2 links)Gen. Jnl.-Post PreviewPage 9301 "Sales Invoice List" (calls, 2 links)Sales Invoice ListPage 9305 "Sales Order List" (calls, 2 links)Sales Order ListCodeunit 79 "Sales-Post and Send" (calls)Sales-Post and SendCodeunit 88 "Sales Post via Job Queue" (calls)Sales Post via Job QueueCodeunit 9070 "Document Errors Mgt." (calls)Document Errors Mgt.Codeunit 99 "Posting Selection Management" (calls)Posting Selection ManagementPage 42 "Sales Order" (calls)Sales OrderPage 43 "Sales Invoice" (calls)Sales InvoicePage 44 "Sales Credit Memo" (calls)Sales Credit MemoPage 6630 "Sales Return Order" (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.Sales.Posting · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Sales Header

Events published

  • OnAfterPost(var SalesHeader: Record "Sales Header"; PostAndSend: Boolean) (integration): Raised after the sales document has been posted.
  • OnAfterConfirmPost(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) + BC26 − BC26 (integration): Raised after the user confirms posting the sales document.
  • OnRunPreviewOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header") (integration): Raised after the posting flags (Ship, Receive, Invoice) are set during posting preview.
  • OnBeforeConfirmPost(var SalesHeader: Record "Sales Header"; var DefaultOption: Integer; var Result: Boolean; var IsHandled: Boolean) (integration): Raised before displaying the posting confirmation dialog.
  • OnBeforeConfirmSalesPost(var SalesHeader: Record "Sales Header"; var HideDialog: Boolean; var IsHandled: Boolean; var DefaultOption: Integer; var PostAndSend: Boolean) (integration): Raised before confirming and posting the sales document.
  • OnBeforeOnRun(var SalesHeader: Record "Sales Header") (integration): Raised before the OnRun trigger executes.
  • OnBeforeRunSalesPost(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var SuppressCommit: Boolean) (integration): Raised before running the Sales-Post codeunit.
  • OnConfirmPostOnBeforeSetSelection(var SalesHeader: Record "Sales Header") (integration): Raised before setting the posting selection options in the confirmation dialog.
  • OnBeforeRunPreview(var Result: Boolean; RecVar: Variant; var IsHandled: Boolean) + BC25 (integration): Raised before running the posting preview.

Event subscriptions

  • OnRunPreview subscribes to Codeunit “Gen. Jnl.-Post Preview” OnRunPreview

Procedures

  • PostAndSend(var SalesHeader: Record "Sales Header"): Posts the sales document and sends it to the customer using the configured document sending profile.
  • Preview(var SalesHeader: Record "Sales Header"): Previews the posting of the sales document without actually posting it, showing the expected ledger entries.
  • MessageIfPostingPreviewMultipleDocuments(var SalesHeaderToPreview: Record "Sales Header"; DocumentNo: Code[20]) + BC24: Displays a message if previewing multiple sales documents and indicates which document is being previewed.

Plus 3 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

Countries that replace it

AU, NZ

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

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: "Sales-Post (Yes/No)"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources