---
title: "Table 252 General Posting Setup"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/252-general-posting-setup/
type: table
id: 252
name: "General Posting Setup"
app: "Base Application"
namespace: Microsoft.Finance.GeneralLedger.Setup
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/252-general-posting-setup/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 252 General Posting Setup

Jonas Paprotka, https://jonas-paprotka.de/ref/table/252-general-posting-setup/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.GeneralLedger.Setup |
| Versions | 17-28 |
| Source file | Finance/GeneralLedger/Setup/GeneralPostingSetup.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Gen. Bus. Posting Group | Code[20] | 17-28 | - | - |
| 2 | Gen. Prod. Posting Group | Code[20] | 17-28 | - | - |
| 10 | Sales Account | Code[20] | 17-28 | - | - |
| 11 | Sales Line Disc. Account | Code[20] | 17-28 | - | - |
| 12 | Sales Inv. Disc. Account | Code[20] | 17-28 | - | - |
| 13 | Sales Pmt. Disc. Debit Acc. | Code[20] | 17-28 | - | - |
| 14 | Purch. Account | Code[20] | 17-28 | - | - |
| 15 | Purch. Line Disc. Account | Code[20] | 17-28 | - | - |
| 16 | Purch. Inv. Disc. Account | Code[20] | 17-28 | - | - |
| 17 | Purch. Pmt. Disc. Credit Acc. | Code[20] | 17-28 | - | - |
| 18 | COGS Account | Code[20] | 17-28 | - | - |
| 19 | Inventory Adjmt. Account | Code[20] | 17-28 | - | - |
| 27 | Sales Credit Memo Account | Code[20] | 17-28 | - | - |
| 28 | Purch. Credit Memo Account | Code[20] | 17-28 | - | - |
| 30 | Sales Pmt. Disc. Credit Acc. | Code[20] | 17-28 | - | - |
| 31 | Purch. Pmt. Disc. Debit Acc. | Code[20] | 17-28 | - | - |
| 32 | Sales Pmt. Tol. Debit Acc. | Code[20] | 17-28 | - | - |
| 33 | Sales Pmt. Tol. Credit Acc. | Code[20] | 17-28 | - | - |
| 34 | Purch. Pmt. Tol. Debit Acc. | Code[20] | 17-28 | - | - |
| 35 | Purch. Pmt. Tol. Credit Acc. | Code[20] | 17-28 | - | - |
| 36 | Sales Prepayments Account | Code[20] | 17-28 | - | - |
| 37 | Purch. Prepayments Account | Code[20] | 17-28 | - | - |
| 50 | Description | Text[100] | 17-28 | - | - |
| 51 | View All Accounts on Lookup | Boolean | 17-28 | - | - |
| 52 | Blocked | Boolean | 20-28 | - | - |
| 5600 | Purch. FA Disc. Account | Code[20] | 17-28 | - | - |
| 5801 | Invt. Accrual Acc. (Interim) | Code[20] | 17-28 | - | - |
| 5803 | COGS Account (Interim) | Code[20] | 17-28 | - | - |
| 6000 | Direct Cost Non-Inv. App. Acc. | Code[20] | 26-28 | - | - |
| 99000752 | Direct Cost Applied Account | Code[20] | 17-28 | - | - |
| 99000753 | Overhead Applied Account | Code[20] | 17-28 | - | - |
| 99000754 | Purchase Variance Account | Code[20] | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Gen. Bus. Posting Group, Gen. Prod. Posting Group | 17-28 |
| Key2 | Gen. Prod. Posting Group, Gen. Bus. Posting Group | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CheckGLAcc | (Code[20]) | - | public | 17-28 | - | - |
| FindSetupMissingSalesDiscountAccount | (Option, var Integer) | Boolean | public | 17-28 | - | - |
| FindSetupMissingPurchDiscountAccount | (Option, var Integer) | Boolean | public | 17-28 | - | - |
| GetCOGSAccount | () | Code[20] | public | 17-28 | - | - |
| GetCOGSInterimAccount | () | Code[20] | public | 17-28 | - | - |
| GetInventoryAdjmtAccount | () | Code[20] | public | 17-28 | - | - |
| GetInventoryAccrualAccount | () | Code[20] | public | 17-28 | - | - |
| GetSalesAccount | () | Code[20] | public | 17-28 | - | - |
| GetSalesCrMemoAccount | () | Code[20] | public | 17-28 | - | - |
| GetSalesInvDiscAccount | () | Code[20] | public | 17-28 | - | - |
| GetSalesLineDiscAccount | () | Code[20] | public | 17-28 | - | - |
| GetSalesPmtDiscountAccount | (Boolean) | Code[20] | public | 17-28 | - | - |
| GetSalesPmtToleranceAccount | (Boolean) | Code[20] | public | 17-28 | - | - |
| GetSalesPrepmtAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchCrMemoAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchInvDiscAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchLineDiscAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchPmtDiscountAccount | (Boolean) | Code[20] | public | 17-28 | - | - |
| GetPurchPmtToleranceAccount | (Boolean) | Code[20] | public | 17-28 | - | - |
| GetPurchPrepmtAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchFADiscAccount | () | Code[20] | public | 17-28 | - | - |
| GetDirectCostAppliedAccount | () | Code[20] | public | 17-28 | - | - |
| GetOverheadAppliedAccount | () | Code[20] | public | 17-28 | - | - |
| GetPurchaseVarianceAccount | () | Code[20] | public | 17-28 | - | - |
| SetAccountsVisibility | (var Boolean, var Boolean, var Boolean, var Boolean, var Boolean, var Boolean) | - | public | 17-28 | - | - |
| SuggestSetupAccounts | () | - | public | 17-28 | - | - |
| SuggestAccount | (var RecordRef, Integer) | - | protected | 17-28 | - | - |
| CheckOrdersPrepmtToDeduct | (Text) | - | internal | 19-28 | - | - |
| CheckPrepmtSalesLinesToDeduct | (Text) | - | internal | 22-28 | - | - |
| CheckPrepmtPurchLinesToDeduct | (Text) | - | internal | 22-28 | - | - |
| LookupGLAccount | (var Code[20], Option, Text) | - | protected | 23-28 | - | - |
| GetDirectCostNonInvtAppliedAccount | () | Code[20] | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterSuggestInvtAccounts | (var Record General Posting Setup, var RecordRef) | 17-28 | - | - |
| Integration event | OnAfterSuggestSalesAccounts | (var Record General Posting Setup, var RecordRef) | 17-28 | - | - |
| Integration event | OnAfterSuggestPurchAccounts | (var Record General Posting Setup, var RecordRef) | 17-28 | - | - |
| Integration event | OnBeforeGetSalesPrepmtAccount | (var Code[20], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetPurchPrepmtAccount | (var Code[20], var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeGetCOGSAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetCOGSInterimAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetInventoryAdjmtAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetInventoryAccrualAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetSalesAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetSalesCrMemoAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetSalesInvDiscAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetSalesLineDiscAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetSalesPmtDiscountAccount | (Boolean, var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetSalesPmtToleranceAccount | (Boolean, var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchCrMemoAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchInvDiscAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchLineDiscAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchPmtDiscountAccount | (Boolean, var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchPmtToleranceAccount | (Boolean, var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchFADiscAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetDirectCostAppliedAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetOverheadAppliedAccount | (var Code[20], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetPurchaseVarianceAccount | (var Code[20], var Boolean) | 23-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.
