Table 175 "Standard Vendor Purchase Code"
Base Application · Microsoft.Purchases.Document
Across versions
- BC23present
- BC24declaration changed
- BC251 events added, 1 events removed
- BC26unchanged
- BC272 events added
- BC287 fields changed
- BC29-30unchanged
Neighbourhood 7 connected objects and pages
Base Application · Microsoft.Purchases.Document · BC23-30 · source at ea08af5e · facts from BC29
Learn documents this table through its pages: Page 178 “Standard Vendor Purchase Codes” (1 Learn page).
Properties
| Property | Value |
|---|---|
| Caption | Standard Vendor Purchase Code |
| 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 | Vendor No. Δ BC28 | Code[20] | Specifies the number of the vendor to which the standard purchase code is assigned. | TableRelation Table 23 “Vendor”; NotBlank |
| 2 | Code Δ BC28 | Code[10] | Specifies a standard purchase code from the Standard Purchase Code table. | TableRelation Table 173 “Standard Purchase Code” (Standard Purchase Code); NotBlank |
| 3 | Description Δ BC28 | Text[100] | Specifies a description of the standard purchase code. | |
| 13 | Currency Code | Code[10] | — | TableRelation Table 4 “Currency”; not editable |
| 15 | Insert Rec. Lines On Quotes Δ BC28 | Option | Specifies how you want to use standard purchase codes on purchase quotes. | OptionCaption: Manual,Automatic,Always Ask; DataClassification SystemMetadata |
| 16 | Insert Rec. Lines On Orders Δ BC28 | Option | Specifies how you want to use standard purchase codes on purchase orders. | OptionCaption: Manual,Automatic,Always Ask; DataClassification SystemMetadata |
| 17 | Insert Rec. Lines On Invoices Δ BC28 | Option | Specifies how you want to use standard purchase codes on purchase invoices. | OptionCaption: Manual,Automatic,Always Ask; DataClassification SystemMetadata |
| 18 | Insert Rec. Lines On Cr. Memos Δ BC28 | Option | Specifies how you want to use standard purchase codes on purchase credit memos. | OptionCaption: Manual,Automatic,Always Ask; DataClassification SystemMetadata |
Keys
- Key1: Vendor No., Code (clustered)
- Key2: Code, Currency Code
Events published
OnBeforeApplyStdCodesToPurchaseLines(var PurchLine: Record "Purchase Line"; StdPurchLine: Record "Standard Purchase Line")(integration)OnAfterCombineDimensions(var PurchaseLine: Record "Purchase Line"; StdPurchaseLine: Record "Standard Purchase Line")(integration)OnAfterApplyStdCodesToPurchaseLines(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code"; var StandardPurchaseLine: Record "Standard Purchase Line"; var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; StandardPurchaseCode: Record "Standard Purchase Code")(integration)OnApplyStdCodesToPurchaseLinesOnBeforeStdPurchLineFind(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code"; var StandardPurchaseLine: Record "Standard Purchase Line"; var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; StandardPurchaseCode: Record "Standard Purchase Code")(integration)OnApplyStdCodesToPurchaseLinesOnLoopStdPurchLine(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code"; var StandardPurchaseLine: Record "Standard Purchase Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var StandardPurchaseCode: Record "Standard Purchase Code"; var IsHandled: Boolean)+ BC27 (integration)OnApplyStdCodesToPurchaseLinesOnAfterPurchLineInsert(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var StandardPurchaseLine: Record "Standard Purchase Line")(integration)OnInsertPurchLinesOnBeforeApplyStdVendPurchCodes(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code"; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header")+ BC25 − BC25 (integration)OnAfterSetFilterByAutomaticAndAlwaysAskCodes(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code"; var PurchaseHeader: Record "Purchase Header")+ BC27 (integration)
Procedures
InsertPurchLines(PurchHeader: Record "Purchase Header")ApplyStdCodesToPurchaseLines(PurchHeader: Record "Purchase Header"; StdVendPurchCode: Record "Standard Vendor Purchase Code")InsertExtendedText(PurchLine: Record "Purchase Line")InsertExtendedText(PurchLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header")GetNextLineNo(PurchLine: Record "Purchase Line"): IntegerSetFilterByAutomaticAndAlwaysAskCodes(PurchaseHeader: Record "Purchase Header")IsInsertRecurringLinesOnDocumentAutomatic(PurchaseHeader: Record "Purchase Header"): BooleanShouldAutoInsertRecurringLinesOnDocument(PurchaseHeader: Record "Purchase Header"): Boolean
Plus 1 local procedures.
Triggers
OnRename
Relations
- Code: TableRelation Table 173 “Standard Purchase Code”
- Vendor No.: TableRelation Table 23 “Vendor”
- Currency Code: TableRelation Table 4 “Currency”
Pages and codeunits on this table
- Page 178 “Standard Vendor Purchase Codes” (source table)
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 378 “Transfer Extended Text” (2 calls:
InsertExtendedText → InsertPurchExtText,InsertExtendedText → PurchCheckIfAnyExtText) - Codeunit 408 “DimensionManagement” (1 call:
CombineDimensions → GetCombinedDimensionSetID)
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: "table", object_name: "Standard Vendor Purchase Code"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.