---
title: "Table 175 Standard Vendor Purchase Code"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/175-standard-vendor-purchase-code/
type: table
id: 175
name: "Standard Vendor Purchase Code"
app: "Base Application"
namespace: Microsoft.Purchases.Document
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/175-standard-vendor-purchase-code/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 175 Standard Vendor Purchase Code

Jonas Paprotka, https://jonas-paprotka.de/ref/table/175-standard-vendor-purchase-code/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Purchases.Document |
| Versions | 17-28 |
| Source file | Purchases/Document/StandardVendorPurchaseCode.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Vendor No. | Code[20] | 17-28 | - | - |
| 2 | Code | Code[10] | 17-28 | - | - |
| 3 | Description | Text[100] | 17-28 | - | - |
| 13 | Currency Code | Code[10] | 17-28 | - | - |
| 15 | Insert Rec. Lines On Quotes | Option | 17-28 | - | - |
| 16 | Insert Rec. Lines On Orders | Option | 17-28 | - | - |
| 17 | Insert Rec. Lines On Invoices | Option | 17-28 | - | - |
| 18 | Insert Rec. Lines On Cr. Memos | Option | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Vendor No., Code | 17-28 |
| Key2 | Code, Currency Code | 21-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InsertPurchLines | (Record Purchase Header) | - | public | 17-28 | - | - |
| ApplyStdCodesToPurchaseLines | (Record Purchase Header, Record Standard Vendor Purchase Code) | - | public | 17-28 | - | - |
| InsertExtendedText | (Record Purchase Line) | - | public | 17-28 | - | - |
| InsertExtendedText | (Record Purchase Line, Record Purchase Header) | - | public | 17-28 | - | - |
| GetNextLineNo | (Record Purchase Line) | Integer | public | 17-28 | - | - |
| SetFilterByAutomaticAndAlwaysAskCodes | (Record Purchase Header) | - | public | 17-28 | - | - |
| IsInsertRecurringLinesOnDocumentAutomatic | (Record Purchase Header) | Boolean | public | 17-28 | - | - |
| ShouldAutoInsertRecurringLinesOnDocument | (Record Purchase Header) | Boolean | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeApplyStdCodesToPurchaseLines | (var Record Purchase Line, Record Standard Purchase Line) | 17-28 | - | - |
| Integration event | OnApplyStdCodesToPurchaseLinesOnBeforeStdPurchLineFind | (var Record Standard Vendor Purchase Code, var Record Standard Purchase Line, var Record Purchase Line, Record Purchase Header, Record Standard Purchase Code) | 17-28 | - | - |
| Integration event | OnInsertPurchLinesOnBeforeApplyStdVendPurchCodes | (var Record Standard Vendor Purchase Code, var Boolean) | 17-24 | - | - |
| Integration event | OnAfterApplyStdCodesToPurchaseLines | (var Record Standard Vendor Purchase Code, var Record Standard Purchase Line, var Record Purchase Line, Record Purchase Header, Record Standard Purchase Code) | 19-28 | - | - |
| Integration event | OnAfterCombineDimensions | (var Record Purchase Line, Record Standard Purchase Line) | 20-28 | - | - |
| Integration event | OnApplyStdCodesToPurchaseLinesOnAfterPurchLineInsert | (var Record Purchase Line, var Record Purchase Header, var Record Standard Purchase Line) | 21-28 | - | - |
| Integration event | OnInsertPurchLinesOnBeforeApplyStdVendPurchCodes | (var Record Standard Vendor Purchase Code, var Boolean, var Record Purchase Header) | 25-28 | - | - |
| Integration event | OnApplyStdCodesToPurchaseLinesOnLoopStdPurchLine | (var Record Standard Vendor Purchase Code, var Record Standard Purchase Line, var Record Purchase Line, var Record Purchase Header, var Record Standard Purchase Code, var Boolean) | 27-28 | - | - |
| Integration event | OnAfterSetFilterByAutomaticAndAlwaysAskCodes | (var Record Standard Vendor Purchase Code, var Record Purchase Header) | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
