tableInventoryofficial - Microsoftderived - from the source, no model text

Table 5715 "Item Substitution"

Base Application · Microsoft.Inventory.Item.Substitution

Across versions

  1. BC23present
  2. BC241 fields changed
  3. BC25-27unchanged
  4. BC2812 fields changed
  5. BC29-30unchanged

Neighbourhood 20 connected objects and pages

Table 5718 "Nonstock Item" (relates to, 3 links)Nonstock ItemTable 5401 "Item Variant" (relates to, 2 links)Item VariantTable 14 "Location" (relates to)LocationTable 5716 "Substitution Condition" (relates to)Substitution ConditionPage 5716 "Item Substitution Entry" (pages and codeunits on it, 3 links)Item Substitution EntryPage 5718 "Item Substitution Entries" (pages and codeunits on it)Item Substitution EntriesPage 5720 "Item Substitutions" (pages and codeunits on it)Item SubstitutionsPage 5954 "Service Item Substitutions" (pages and codeunits on it)Service Item SubstitutionsPage 7411 "Item Subst. Suggestion Sub" (pages and codeunits on it)Item Subst. Suggestion SubTable extension 7410 "Item Subst. Suggestion" (extended by)Item Subst. SuggestionTable 5716 "Substitution Condition" (referenced by, 4 links)Substitution ConditionTable 27 "Item" (referenced by, 2 links)ItemTable 37 "Sales Line" (referenced by)Table 5108 "Sales Line Archive" (referenced by)Sales Line ArchiveTable 5407 "Prod. Order Component" (referenced by)Prod. Order ComponentTable 5902 "Service Line" (referenced by)Table 901 "Assembly Line" (referenced by)Create item cards for goods or services (Learn pages)Manage product variants (Learn pages)Suggest substitute items with Copilot (Learn pages)

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.Item.Substitution · BC23-30 · source at ea08af5e · facts from BC29

Learn documents this table through its pages: Page 5716 “Item Substitution Entry” (3 Learn pages), Page 5718 “Item Substitution Entries” (2), Page 5720 “Item Substitutions” (2).

Properties

Property Value
Caption Item Substitution
DataClassification CustomerContent

Fields

Explanation: the field’s ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

No. Name Type Explanation Notes
1 No. Code[20] — TableRelation Table 5718 “Nonstock Item” (if (Type = const(Item)) Item.“No.” else if (Type = const(“Nonstock Item”)) “Nonstock Item”.“Entry No.”); NotBlank
2 Variant Code Δ BC28 Code[10] Specifies the variant of the item on the line. TableRelation Table 5401 “Item Variant” (“Item Variant”.Code where(“Item No.” = field(“No.”)))
3 Substitute No. Δ BC28 Code[20] Specifies the number of the item that can be used as a substitute in case the original item is unavailable. TableRelation Table 5718 “Nonstock Item” (if (“Substitute Type” = const(Item)) Item.“No.” else if (“Substitute Type” = const(“Nonstock Item”)) “Nonstock Item”.“Entry No.”); NotBlank
4 Substitute Variant Code Δ BC28 Code[10] Specifies the code of the variant that can be used as a substitute. TableRelation Table 5401 “Item Variant” (if (“Substitute Type” = const(Item)) “Item Variant”.Code where(“Item No.” = field(“Substitute No.”)))
5 Description Δ BC28 Text[100] Specifies the description of the substitute item. not editable
6 Inventory Δ BC28 Decimal Specifies how many units (such as pieces, boxes, or cans) of the item are available.
7 Interchangeable Δ BC28 Boolean Specifies that the item and the substitute item are interchangeable.
8 Condition Δ BC28 Boolean Specifies that a condition exists for this substitution. FlowField: exist(“Substitution Condition” where(Type = field(Type), “No.” = field(“No.”), “Variant Code” = field(“Variant Code”), “Substitute Type” = field(“Substitute Type”), “Substitute No.” = field(“Substitute No.”), “Substitute Variant Code” = field(“Substitute Variant Code”))); not editable
9 Location Filter Code[10] — TableRelation Table 14 “Location”; FlowFilter
100 Type Enum “Item Substitution Type” — enum Enum 102 “Item Substitution Type”
101 Substitute Type Δ BC28 Enum “Item Substitute Type” Specifies the type of the item that can be used as a substitute. enum Enum 101 “Item Substitute Type”
102 Sub. Item No. Δ BC24 Δ BC28 Code[20] Specifies the item number of the catalog substitute item. FlowField: lookup(“Nonstock Item”.“Item No.” where(“Entry No.” = field(“Substitute No.”))); not editable
103 Relations Level Δ BC28 Integer Specifies the priority level of this substitute item. not editable
104 Quantity Avail. on Shpt. Date Δ BC28 Decimal Specifies the substitute item quantity available on the shipment date.
105 Shipment Date Δ BC28 Date Specifies when items on the document are shipped or were shipped. A shipment date is usually calculated from a requested delivery date plus lead time.

Keys

  • Key1: Type, No., Variant Code, Substitute Type, Substitute No., Substitute Variant Code (clustered)

Events published

  • OnAfterSetItemVariantDescription(Type: Integer; Number: Code[20]; Variant: Code[10]; var Description: Text[100]) (integration)
  • OnBeforeConfirmDeletion(var ItemSubstitution: Record "Item Substitution"; xItemSubstitution: Record "Item Substitution"; var Result: Boolean; var IsHandled: Boolean) (integration)
  • OnCreateInterchangeableItemOnBeforeInsertOrModifyItemSubstitution(var RecItemSubstitution: Record "Item Substitution"; xRecItemSubstitution: Record "Item Substitution"; var ItemSubstitution: Record "Item Substitution") (integration)

Procedures

  • CreateSubstitutionItem2Item(ItemNo1: Code[20]; Variant1: Code[10]; ItemNo2: Code[20]; Variant2: Code[10]; Substitutable: Boolean)
  • SetDescription(Type: Integer; Number: Code[20]; var Description: Text[100])
  • SetItemVariantDescription(Type: Integer; Number: Code[20]; Variant: Code[10]; var Description: Text[100])

Plus 6 local procedures.

Triggers

OnDelete

Relations

Referenced by

11 fields in 7 objects relate to this table (TableRelation or CalcFormula).

Pages and codeunits on this table

Extended by

Ask your agent

Procedure bodies are not stored here (D10). 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: "table", object_name: "Item Substitution"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources