codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 2678 "Sales Alloc. Acc. Mgt."

Base Application · Microsoft.Finance.AllocationAccount.Sales

Across versions

  1. BC23present
  2. BC244 procedures added, 1 procedures removed
  3. BC251 procedures added, 1 procedures changed
  4. BC26unchanged
  5. BC271 procedures added, 1 events added
  6. BC28-30unchanged

Neighbourhood 6 connected objects and pages

Codeunit 2675 "Allocation Account Mgt." (calls, 3 links)Allocation Account Mgt.Codeunit 2674 "Alloc. Acc. Handle Doc. Post" (calls, 2 links)Alloc. Acc. Handle Doc. PostCodeunit 408 "DimensionManagement" (calls, 2 links)DimensionManagementCodeunit 1720 "Deferral Utilities" (calls)Deferral UtilitiesCodeunit 2676 "Alloc. Acc. Telemetry" (calls)Alloc. Acc. TelemetryTable 2672 "Allocation Line" (calls)Allocation Line

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

Events published

  • OnBeforeCreateSalesLine(var SalesLine: Record "Sales Line"; var AllocationLine: Record "Allocation Line"; var AllocationSalesLine: Record "Sales Line") (integration): Integration event raised before creating sales line from allocation line during distribution process. Enables custom modification of sales line fields before standard allocation line processing.
  • OnBeforeVerifySalesLine(var SalesLine: Record "Sales Line") (integration): Integration event raised before verifying sales line during allocation account validation. Enables custom validation logic for sales lines before standard allocation verification.
  • OnLoadManualAllocationLinesOnBeforeInsertAllocationLine(var AllocAccManualOverride: Record "Alloc. Acc. Manual Override"; var AllocationLine: Record "Allocation Line") + BC27 (integration)

Event subscriptions

  • HandlePostDocument subscribes to Codeunit “Sales-Post” OnBeforePostSalesDoc
  • HandleShowDimensions subscribes to Table “Sales Line” OnBeforeShowDimensions
  • HandleAfterCheckSalesApprovalPossible subscribes to Codeunit “Approvals Mgmt.” OnAfterCheckSalesApprovalPossible
  • CheckBeforeModifyLine subscribes to Table “Sales Line” OnBeforeModifyEvent
  • HandleValidateLineNo subscribes to Table “Sales Line” OnBeforeValidateNo

Procedures

  • GetOrGenerateAllocationLines(var AllocationLine: Record "Allocation Line"; var ParentSystemId: Guid) (internal)
  • GetOrGenerateAllocationLines(var AllocationLine: Record "Allocation Line"; var ParentSystemId: Guid; var AmountToAllocate: Decimal; var PostingDate: Date) (internal)
  • LoadManualAllocationLines(var SalesLine: Record "Sales Line"; var AllocationLine: Record "Allocation Line") (internal)
  • CreateLinesFromAllocationAccountLine(var AllocationAccountSalesLine: Record "Sales Line"): Creates individual sales lines from allocation account distribution lines based on allocation percentages or amounts. Processes allocation account configuration and generates corresponding G/L account lines with calculated amounts.
  • VerifyAllocationAccount(var AllocationAccount: Record "Allocation Account") (internal)
  • VerifySelectedAllocationAccountNo(var SalesLine: Record "Sales Line") Δ BC25: Validates the selected allocation account number on sales line and verifies compatibility. Ensures the allocation account is properly configured and the sales line uses G/L account type.

Plus 23 local procedures.

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: "Sales Alloc. Acc. Mgt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources