Codeunit 5701 "Item Subst."
Base Application · Microsoft.Inventory.Item.Substitution
Across versions
- BC23-24present
- BC253 procedures added, 2 procedures removed
- BC2610 procedures added, 8 events added
- BC27unchanged
- BC281 procedures removed
- BC2910 procedures removed, 8 events removed
- BC30unchanged
Neighbourhood 10 connected objects and pages
Base Application · Microsoft.Inventory.Item.Substitution · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | TableData “Item Substitution” = rimd |
Events published
OnAfterItemSubstGet(var SalesLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary)(integration)OnBeforeSaveItemSalesUOM(var OldSalesUOM: Code[10]; Item: Record Item; var IsHandled: Boolean)(integration)OnCalcCustPriceOnAfterCalcQtyAvail(var Item: Record Item; SalesLine: Record "Sales Line"; var TempItemSubstitution: Record "Item Substitution" temporary)(integration)OnCalcCustPriceOnBeforeCalcQtyAvail(var Item: Record Item; SalesLine: Record "Sales Line"; var TempItemSubstitution: Record "Item Substitution" temporary; ItemSubstitution: Record "Item Substitution")(integration)OnAssemblyCalcCustPriceOnAfterCalcQtyAvail(var Item: Record Item; AssemblyLine: Record "Assembly Line"; var TempItemSubstitution: Record "Item Substitution" temporary)(integration)OnAssemblyCalcCustPriceOnBeforeCalcQtyAvail(var Item: Record Item; AssemblyLine: Record "Assembly Line"; var TempItemSubstitution: Record "Item Substitution" temporary)(integration)OnBeforeCalcCustPrice(var TempItemSubstitution: Record "Item Substitution" temporary; TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean; Item: Record Item)(integration)OnBeforeItemSubstGetPopulateTempSalesLine(var TempSalesline: Record "Sales Line" temporary; var TempItemSubstitution: Record "Item Substitution" temporary; var IsHandled: Boolean; SaveItemNo: Code[20]; SaveVariantCode: Code[10])(integration)OnCreateSubstListOnAfterCalcQuantityAvailable(var Item: Record Item; var TempItemSubstitution: Record "Item Substitution" temporary)+ BC26 (integration)OnCreateSubstListOnBeforeCalcQuantityAvailable(var Item: Record Item; var TempItemSubstitution: Record "Item Substitution" temporary)+ BC26 (integration)OnItemSubstGetOnAfterSubstSalesLineItem(var SalesLine: Record "Sales Line"; var SourceSalesLine: Record "Sales Line"; var TempItemSubstitution: Record "Item Substitution" temporary)(integration)OnItemSubstGetOnAfterItemSubstitutionSetFilters(var ItemSubstitution: Record "Item Substitution")(integration)OnItemSubstGetOnAfterTempItemSubstitutionSetFilters(var TempItemSubstitution: Record "Item Substitution" temporary; var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; OldSalesUOM: Code[10]; var IsHandled: Boolean)(integration)OnCalcCustPriceOnBeforeTempItemSubstitutionInsert(var TempItemSubstitution: Record "Item Substitution" temporary; ItemSubstitution: Record "Item Substitution")(integration)
Procedures
ItemSubstGet(var SalesLine: Record "Sales Line"): BooleanCalcCustPrice(var TempItemSubstitutions: Record "Item Substitution" temporary; var ItemSubstitution: Record "Item Substitution"; var TempSalesLine: Record "Sales Line" temporary)Δ BC26FindItemSubstitutions(var TempItemSubstitutions: Record "Item Substitution" temporary; ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10]; DemandDate: Date; CalcATP: Boolean; var GrossReq: Decimal; var SchedRcpt: Decimal): Boolean+ BC26ErrorMessage(ItemNo: Code[20]; VariantCode: Code[10])ItemAssemblySubstGet(var AssemblyLine: Record "Assembly Line")
Plus 6 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.
- Codeunit 5790 “Available to Promise” (3 calls:
AssemblyCalcCustPrice → CalcQtyAvailableToPromise,CalcCustPrice → CalcQtyAvailableToPromise,CreateSubstList → CalcQtyAvailableToPromise) - Codeunit 311 “Item-Check Avail.” (2 calls:
ItemAssemblySubstGet → AssemblyLineCheck,ItemSubstGet → SalesLineCheck) - Page 5718 “Item Substitution Entries” (2 calls:
ItemAssemblySubstGet → (object),ItemSubstGet → (object)) - Codeunit 5703 “Catalog Item Management” (1 call:
ItemSubstGet → CreateItemFromNonstock) - Codeunit 926 “Assembly Line-Reserve” (1 call:
ItemAssemblySubstGet → DeleteLine) - Codeunit 99000832 “Sales Line-Reserve” (1 call:
ItemSubstGet → DeleteLine)
Called by
- Codeunit 5522 “Order Planning Mgt.” (2 calls:
InsertAltSupplySubstitution → ErrorMessage,InsertAltSupplySubstitution → FindItemSubstitutions) - Codeunit 99000898 “Mfg. Item Substitution” (2 calls:
GetProdOrderCompSubst → ErrorMessage,GetProdOrderCompSubst → FindItemSubstitutions) - Table 37 “Sales Line” (1 call:
ShowItemSub → ItemSubstGet) - Table 901 “Assembly Line” (1 call:
ShowItemSub → ItemAssemblySubstGet)
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: "Item Subst."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.