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

Codeunit 99000872 "Sales Availability Mgt."

Base Application · Microsoft.Sales.Document

Across versions

  1. BC23-24not present
  2. BC25added
  3. BC262 events added
  4. BC27unchanged
  5. BC281 events added
  6. BC29-30unchanged

Neighbourhood 11 connected objects and pages

Codeunit 6450 "Serv. Integration Mgt." (event subscribers)Serv. Integration Mgt.Codeunit 353 "Item Availability Forms Mgt" (calls, 7 links)Item Availability Forms MgtCodeunit 5830 "Calc. Availability Overview" (calls, 4 links)Calc. Availability OverviewCodeunit 99000832 "Sales Line-Reserve" (calls, 4 links)Sales Line-ReserveCodeunit 99000845 "Reservation Management" (calls, 4 links)Reservation ManagementCodeunit 5530 "Calc. Item Availability" (calls, 3 links)Calc. Item AvailabilityCodeunit 99000831 "Reservation Engine Mgt." (calls, 2 links)Reservation Engine Mgt.Codeunit 99000886 "Capable to Promise" (calls, 2 links)Capable to PromiseCodeunit 99000889 "AvailabilityManagement" (calls, 2 links)AvailabilityManagementCodeunit 311 "Item-Check Avail." (calls)Item-Check Avail.Codeunit 99000874 "Assembly Availability Mgt." (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.Document · BC25-30 · source at ea08af5e · facts from BC29

Events published

  • OnAfterTransferToOrderPromisingLine(var OrderPromisingLine: Record "Order Promising Line"; var SalesLine: Record "Sales Line") (integration)
  • OnBeforeShowItemAvailFromSalesLine(var Item: Record Item; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; AvailabilityType: Enum "Item Availability Type") (integration)
  • OnAfterTransferFromSales(var InventoryEventBuffer: Record "Inventory Event Buffer"; SalesLine: Record "Sales Line") (integration)
  • OnAfterTransferFromSalesBlanketOrder(var InventoryEventBuffer: Record "Inventory Event Buffer"; SalesLine: Record "Sales Line") (integration)
  • OnAfterTransferFromSalesReturn(var InventoryEventBuffer: Record "Inventory Event Buffer"; SalesLine: Record "Sales Line") (integration)
  • OnOpenPageOnSetSourceOnAfterSetShouldExit(CrntSourceType: Enum "Order Promising Line Source Type"; var ShouldExit: Boolean) (integration)
  • OnAfterClearDatesCalcCTP(var OrderPromisingLine: Record "Order Promising Line"; var SalesLine: Record "Sales Line") + BC26 (integration)
  • OnSetSalesHeaderOnAfterFilterSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") + BC26 (integration)
  • OnBeforeOnUpdateSourceLine(var OrderPromisingLine: Record "Order Promising Line"; var IsHandled: Boolean) + BC28 (integration)

Event subscriptions

  • OnSetSourceRecord subscribes to Codeunit “AvailabilityManagement” OnSetSourceRecord
  • OnCalcCapableToPromiseLine subscribes to Codeunit “AvailabilityManagement” OnCalcCapableToPromiseLine
  • OnGetRequestedDeliveryDate subscribes to Codeunit “AvailabilityManagement” OnGetRequestedDeliveryDate
  • OnUpdateSourceLine subscribes to Codeunit “AvailabilityManagement” OnUpdateSourceLine
  • OnCreateReservationsOnCalcNeededQuantity subscribes to Codeunit “AvailabilityManagement” OnCreateReservationsOnCalcNeededQuantity
  • OnCreateReservationsOnBindToTracking subscribes to Codeunit “AvailabilityManagement” OnCreateReservationsOnBindToTracking
  • OnCancelReservations subscribes to Codeunit “AvailabilityManagement” OnCancelReservations
  • OnLookupDemandNo subscribes to Page “Demand Overview” OnLookupDemandNo
  • OnSourceTypeTextOnFormat subscribes to Page “Demand Overview” OnSourceTypeTextOnFormat
  • OnGetDemandDates subscribes to Codeunit “Calc. Availability Overview” OnGetDemandDates
  • OnGetSupplyDates subscribes to Codeunit “Calc. Availability Overview” OnGetSupplyDates
  • OnGetDemandEntries subscribes to Codeunit “Calc. Availability Overview” OnGetDemandEntries
  • OnGetSupplyEntries subscribes to Codeunit “Calc. Availability Overview” OnGetSupplyEntries
  • OnCheckItemInRange subscribes to Codeunit “Calc. Availability Overview” OnCheckItemInRange
  • OnDemandExist subscribes to Codeunit “Calc. Availability Overview” OnDemandExist
  • OnSupplyExist subscribes to Codeunit “Calc. Availability Overview” OnSupplyExist
  • OnValidateRequestedDeliveryDate subscribes to Table “Order Promising Line” OnValidateRequestedDeliveryDate
  • OnValidatePlannedDeliveryDate subscribes to Table “Order Promising Line” OnValidatePlannedDeliveryDate
  • OnValidateEarliestDeliveryDate subscribes to Table “Order Promising Line” OnValidateEarliestDeliveryDate
  • OnOpenPageOnSetSource subscribes to Page “Order Promising Lines” OnOpenPageOnSetSource
  • OnLookupAvailableInventory subscribes to Table “Availability Info. Buffer” OnLookupAvailableInventory
  • OnLookupGrossRequirement subscribes to Table “Availability Info. Buffer” OnLookupGrossRequirement
  • OnLookupPlannedOrderReceipt subscribes to Table “Availability Info. Buffer” OnLookupPlannedOrderReceipt
  • OnLookupScheduledReceipt subscribes to Table “Availability Info. Buffer” OnLookupScheduledReceipt
  • OnAfterCalcItemPlanningFields subscribes to Codeunit “Item Availability Forms Mgt” OnAfterCalcItemPlanningFields
  • OnTransferToPeriodDetailsElseCase subscribes to Codeunit “Calc. Inventory Page Data” OnTransferToPeriodDetailsElseCase
  • OnAfterMakeEntries subscribes to Page “Item Availability Line List” OnAfterMakeEntries
  • OnAfterLookupEntries subscribes to Page “Item Availability Line List” OnAfterLookupEntries

Procedures

  • SetSalesHeader(var OrderPromisingLine: Record "Order Promising Line"; var SalesHeader: Record "Sales Header"; var CaptionText: Text): Sets the sales header for order promising and populates order promising lines.
  • TransferToOrderPromisingLine(var OrderPromisingLine: Record "Order Promising Line"; var SalesLine: Record "Sales Line"): Transfers sales line data to an order promising line record.
  • ShowItemAvailabilityFromSalesLine(var SalesLine: Record "Sales Line"; AvailabilityType: Enum "Item Availability Type"): Shows item availability information from a sales line for the specified availability type.
  • ShowSalesLines(var Item: Record Item): Shows sales order lines for the specified item.
  • TransferFromSales(var InventoryEventBuffer: Record "Inventory Event Buffer"; SalesLine: Record "Sales Line"): Transfers sales line data to an inventory event buffer for availability calculation.
  • TransferFromSalesBlanketOrder(var InventoryEventBuffer: Record "Inventory Event Buffer"; SalesLine: Record "Sales Line"; UnconsumedQtyBase: Decimal): Transfers blanket sales order line data to an inventory event buffer.
  • TransferFromSalesReturn(var InventoryEventBuffer: Record "Inventory Event Buffer"; SalesLine: Record "Sales Line"): Transfers sales return order line data to an inventory event buffer.

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

  • Codeunit 5530 “Calc. Item Availability” (3 calls: GetBlanketSalesOrders → TransferFromSalesBlanketOrder, TryGetSalesOrdersDemandEntries → TransferFromSales, TryGetSalesRetOrderSupplyEntries → TransferFromSalesReturn)

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

Evidence 1 sources