codeunitInventoryofficial - Microsoftderived - from the source, no model text

Codeunit 5530 "Calc. Item Availability"

Base Application · Microsoft.Inventory.Availability

Across versions

  1. BC23-24present
  2. BC254 procedures removed, 3 events added
  3. BC26unchanged
  4. BC278 events added, 7 events removed
  5. BC28-29unchanged
  6. BC302 procedures removed, 2 events removed

Neighbourhood 35 connected objects and pages

Codeunit 99000875 "Prod. Order Availability Mgt." (event subscribers, 4 links)Prod. Order Availability Mgt.Codeunit 6452 "Serv. Availability Mgt." (event subscribers, 3 links)Codeunit 99000874 "Assembly Availability Mgt." (event subscribers, 3 links)Assembly Availability Mgt.Codeunit 99000871 "Job Planning Availability Mgt." (event subscribers, 2 links)Job Planning Availability Mgt.Codeunit 5531 "Calc. Inventory Page Data" (calls, 4 links)Calc. Inventory Page DataCodeunit 99000872 "Sales Availability Mgt." (calls, 3 links)Sales Availability Mgt.Codeunit 99000876 "Transfer Availability Mgt." (calls, 3 links)Codeunit 99000879 "Req. Line Availability Mgt." (calls, 3 links)Req. Line Availability Mgt.Codeunit 99000874 "Assembly Availability Mgt." (calls, 2 links)Assembly Availability Mgt.Codeunit 99000875 "Prod. Order Availability Mgt." (calls, 2 links)Prod. Order Availability Mgt.Codeunit 99000973 "Purch. Availability Mgt." (calls, 2 links)Purch. Availability Mgt.Codeunit 6452 "Serv. Availability Mgt." (calls)Codeunit 99000871 "Job Planning Availability Mgt." (calls)Job Planning Availability Mgt.Page 130 "Posted Sales Shipment" (calls)Posted Sales ShipmentPage 132 "Posted Sales Invoice" (calls)Posted Sales InvoicePage 134 "Posted Sales Credit Memo" (calls)Page 136 "Posted Purchase Receipt" (calls)Posted Purchase ReceiptPage 138 "Posted Purchase Invoice" (calls)Posted Purchase InvoicePage 140 "Posted Purchase Credit Memo" (calls)Page 38 "Item Ledger Entries" (calls)Page 42 "Sales Order" (calls)Page 43 "Sales Invoice" (calls)Page 44 "Sales Credit Memo" (calls)Page 50 "Purchase Order" (calls)Page 507 "Blanket Sales Order" (calls)Page 509 "Blanket Purchase Order" (calls)Page 51 "Purchase Invoice" (calls)Page 52 "Purchase Credit Memo" (calls)Page 5740 "Transfer Order" (calls)Page 5743 "Posted Transfer Shipment" (calls)Page 5745 "Posted Transfer Receipt" (calls)Page 6630 "Sales Return Order" (calls)Page 6640 "Purchase Return Order" (calls)Page 6650 "Posted Return Shipment" (calls)Page 6660 "Posted Return Receipt" (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.Inventory.Availability · BC23-30 · source at ea08af5e · facts from BC29

Events published

  • OnAfterGetDocumentEntries(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item; var CurrEntryNo: Integer) Δ BC25 (integration)
  • OnBeforeGetDocumentEntries(var InventoryEventBuffer: Record "Inventory Event Buffer"; var Item: Record Item) + BC25 (integration)
  • OnAfterGetAnticipatedDemand(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item; ForecastName: Code[10]; ExcludeForecastBefore: Date; IncludeBlanketOrders: Boolean; EntryNo: Integer) (integration)
  • OnAfterGetPlanningLines(var InvtEventBuf: Record "Inventory Event Buffer"; Item: Record "Item"; ReqLine: Record "Requisition Line"; FromRecRef: RecordRef) (integration)
  • OnAfterGetSourceReferences(FromRecordID: RecordID; TransferDirection: Enum "Transfer Direction"; var SourceType: Integer; var SourceSubtype: Integer; var SourceID: Code[20]; var SourceBatchName: Code[10]; var SourceProdOrderLine: Integer; var SourceRefNo: Integer; var IsHandled: Boolean; RecRef: RecordRef) + BC25 − BC25 (integration)
  • OnAfterShowDocument(RecordID: RecordID; var IsHandled: Boolean; RecRef: RecordRef) + BC25 − BC25 (integration)
  • OnBeforeRunSalesHeaderPage(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) (integration)
  • OnBeforeRunPurchHeaderPage(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) (integration)
  • OnBeforeRunProductionOrderPage(var ProductionOrder: Record Microsoft.Manufacturing.Document."Production Order"; var IsHandled: Boolean) + BC27 − BC27 − BC30 (integration, obsolete 27.0)
  • OnBeforeTryGetQtyOnInventory(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item; var Result: Boolean; var IsHandled: Boolean) (integration)
  • OnGetBlanketSalesOrdersOnAfterAssignQtyReleased(BlanketSalesLine: Record "Sales Line"; QtyReleased: Decimal) (integration)
  • OnGetBlanketSalesOrdersOnAfterTransferFromSalesBlanketOrder(BlanketSalesLine: Record "Sales Line"; var InventoryEventBuffer: Record "Inventory Event Buffer") (integration)
  • OnGetBlanketSalesOrdersOnAfterAdjustQtyReleasedFromInvtEventBuf(InventoryEventBuffer: Record "Inventory Event Buffer") (integration)
  • OnGetPlanningLinesOnAfterReqLineSetFilters(var ReqLine: record "Requisition Line"; var Item: record Item) (integration)
  • OnGetRemainingForecastOnAfterSetItemFilters(var Item: Record Item; ProductionForecastEntry: Record Microsoft.Manufacturing.Forecast."Production Forecast Entry") + BC27 − BC27 (integration)
  • OnGetRemainingForecastOAfterInvtEventBufSetFilters(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProductionForecastEntry: Record Microsoft.Manufacturing.Forecast."Production Forecast Entry") + BC27 − BC27 (integration)
  • OnGetRemainingForecastOAfterInsertEntry(var InventoryEventBuffer: Record "Inventory Event Buffer"; var Item: Record Item; ProductionForecastEntry: Record Microsoft.Manufacturing.Forecast."Production Forecast Entry") + BC27 − BC27 (integration)
  • OnGetRemainingForecastOnBeforeCalcForecastQuantityBase(var ProductionForecastEntry: Record Microsoft.Manufacturing.Forecast."Production Forecast Entry") + BC27 − BC27 (integration)
  • OnGetRemainingForecastOnBeforeLoopOnAfterSetItemFilters(var Item: Record Item; ProductionForecastEntry: Record Microsoft.Manufacturing.Forecast."Production Forecast Entry"; ProductionForecastEntry2: Record Microsoft.Manufacturing.Forecast."Production Forecast Entry") + BC27 − BC27 (integration)
  • OnTryGetQtyOnInventoryOnBeforeInsertEntry(var InvtEventBuf: Record "Inventory Event Buffer"; var ItemLedgerEntry: Record "Item Ledger Entry") (integration)
  • OnBeforeShowDocument(var RecRef: RecordRef) (integration)
  • OnBeforeShowSalesShipmentHeader(SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowSalesInvoiceHeader(SalesInvHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowSalesCrMemoHeader(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowPurchRcptHeader(PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowPurchInvHeader(PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowPurchCrMemoHdr(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var IsHandled: Boolean) (integration)
  • OnBeforeShowReturnRcptHeader(ReturnRcptHeader: Record "Return Receipt Header"; var IsHandled: Boolean) (integration)
  • OnBeforeShowReturnShptHeader(ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) (integration)
  • OnTryGetPurchOrderSupplyEntriesOnBeforeInsertEntry(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) (integration)
  • OnGetPlanningTransDemandOnAfterTransferReqLineSetFilters(var RequisitionLine: Record "Requisition Line"; var Item: Record Item) (integration)
  • OnParentIsInPlanningOnAfterReqLineSetFilters(var RequisitionLine: Record "Requisition Line"; var ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component") + BC27 − BC27 − BC30 (integration, obsolete 27.0)
  • OnParentIsInPlanning(InvtEventBuf: Record "Inventory Event Buffer"; var ParentActionMessage: Enum "Action Message Type"; var Result: Boolean) + BC27 (integration)

Procedures

  • CalcNewInvtEventBuf(var Item: Record Item; ForecastName: Code[10]; IncludeBlanketOrders: Boolean; ExcludeForecastBefore: Date; IncludePlan: Boolean)
  • GetInvEventBuffer(var RequestInvtEventBuf: Record "Inventory Event Buffer")
  • GetDocumentEntries(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item)
  • InsertEntry(var NewInvtEventBuffer: Record "Inventory Event Buffer")
  • NextEntryNo(): Integer
  • GetSourceReferences(FromRecordID: RecordID; TransferDirection: Enum "Transfer Direction"; var SourceType: Integer; var SourceSubtype: Integer; var SourceID: Code[20]; var SourceBatchName: Code[10]; var SourceProdOrderLine: Integer; var SourceRefNo: Integer): Boolean
  • ShowDocument(RecordID: RecordID)
  • RunOnBeforeRunProductionOrderPage(var ProductionOrder: Record Microsoft.Manufacturing.Document."Production Order"; var IsHandled: Boolean) + BC27 − BC30 (internal)
  • RunOnParentIsInPlanningOnAfterReqLineSetFilters(var RequisitionLine: Record "Requisition Line"; var ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component") + BC27 − BC30 (internal)

Plus 23 local procedures.

Triggers

OnRun

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

Recent changes

Deprecations

  • procedure RunOnBeforeRunProductionOrderPage: guarded (#if not CLEAN27)
  • procedure RunOnParentIsInPlanningOnAfterReqLineSetFilters: guarded (#if not CLEAN27)
  • procedure OnBeforeRunProductionOrderPage: Pending 27.0 (#if not CLEAN27), “Moved to codeunit ProdOrderAvailabilityMgt”
  • procedure OnParentIsInPlanningOnAfterReqLineSetFilters: Pending 27.0 (#if not CLEAN27), “Moved to codeunit ProdOrderAvailabilityMgt”

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

Evidence 1 sources