Table 380 "Detailed Vendor Ledg. Entry"
Base Application · Microsoft.Purchases.Payables
- 40fields
- 8procedures
- 3events
- 2Learn pages
- 6countries replace it
- 46fields reference it
- 2event subscribers
- 1objects it calls
Across versions
- BC23present
- BC241 events added
- BC25unchanged
- BC261 procedures changed
- BC27unchanged
- BC2824 fields changed
- BC292 fields added, 1 fields changed
- BC30unchanged
Neighbourhood 30 connected objects and pages
Base Application · Microsoft.Purchases.Payables · BC23-30 · source at ea08af5e · facts from BC29
Learn documents this table through its pages: Page 574 “Detailed Vendor Ledg. Entries” (1 Learn page), Page 624 “Unapply Vendor Entries” (1).
Properties
| Property | Value |
|---|---|
| Caption | Detailed Vendor Ledg. Entry |
| DataClassification | CustomerContent |
| Permissions | TableData “Detailed Vendor Ledg. Entry” = m |
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 | Entry No. Δ BC28 | Integer | Specifies the number of the entry, as assigned from the specified number series when the entry was created. | |
| 2 | Vendor Ledger Entry No. Δ BC28 | Integer | Specifies the entry number of the vendor ledger entry that the detailed vendor ledger entry line was created for. | TableRelation Table 25 “Vendor Ledger Entry” (Vendor Ledger Entry) |
| 3 | Entry Type Δ BC28 | Enum “Detailed CV Ledger Entry Type” | Specifies the entry type of the detailed vendor ledger entry. | enum Enum 379 “Detailed CV Ledger Entry Type” |
| 4 | Posting Date Δ BC28 | Date | Specifies the posting date of the detailed vendor ledger entry. | |
| 5 | Document Type Δ BC28 | Enum “Gen. Journal Document Type” | Specifies the document type of the detailed vendor ledger entry. | enum Enum 6 “Gen. Journal Document Type” |
| 6 | Document No. Δ BC28 | Code[20] | Specifies the document number of the transaction that created the entry. | |
| 7 | Amount Δ BC28 | Decimal | Specifies the amount of the detailed vendor ledger entry. | |
| 8 | Amount (LCY) Δ BC28 | Decimal | Specifies the amount of the entry in LCY. via Page 129 “Detailed Vend. Entries Preview” | |
| 9 | Vendor No. Δ BC28 | Code[20] | Specifies the number of the vendor account to which the entry is posted. | TableRelation Table 23 “Vendor” |
| 10 | Currency Code Δ BC28 | Code[10] | Specifies the code for the currency if the amount is in a foreign currency. | TableRelation Table 4 “Currency” |
| 11 | User ID Δ BC28 | Code[50] | Specifies the ID of the user who posted the entry, to be used, for example, in the change log. | TableRelation User.“User Name”; DataClassification EndUserIdentifiableInformation |
| 12 | Source Code Δ BC28 | Code[10] | Specifies the source code that specifies where the entry was created. | TableRelation Table 230 “Source Code” (Source Code) |
| 13 | Transaction No. Δ BC29 | Integer | Specifies the transaction number that groups related G/L entries from the same posting. | TableRelation Table 57 “G/L Transaction” (G/L Transaction) |
| 14 | Journal Batch Name | Code[10] | — | |
| 15 | Reason Code Δ BC28 | Code[10] | Specifies the reason code, a supplementary source code that enables you to trace the entry. | TableRelation Table 231 “Reason Code” (Reason Code) |
| 16 | Debit Amount Δ BC28 | Decimal | Specifies the total of the ledger entries that represent debits. | |
| 17 | Credit Amount Δ BC28 | Decimal | Specifies the total of the ledger entries that represent credits. | |
| 18 | Debit Amount (LCY) Δ BC28 | Decimal | Specifies the total of the ledger entries that represent debits, expressed in LCY. via Page 129 “Detailed Vend. Entries Preview” | |
| 19 | Credit Amount (LCY) Δ BC28 | Decimal | Specifies the total of the ledger entries that represent credits, expressed in LCY. via Page 129 “Detailed Vend. Entries Preview” | |
| 20 | Initial Entry Due Date Δ BC28 | Date | Specifies the date on which the initial entry is due for payment. | |
| 21 | Initial Entry Global Dim. 1 Δ BC28 | Code[20] | Specifies the Global Dimension 1 code of the initial vendor ledger entry. | TableRelation Table 349 “Dimension Value” (“Dimension Value”.Code where(“Global Dimension No.” = const(1))) |
| 22 | Initial Entry Global Dim. 2 Δ BC28 | Code[20] | Specifies the Global Dimension 2 code of the initial vendor ledger entry. | TableRelation Table 349 “Dimension Value” (“Dimension Value”.Code where(“Global Dimension No.” = const(2))) |
| 24 | Gen. Bus. Posting Group | Code[20] | — | TableRelation Table 250 “Gen. Business Posting Group” (Gen. Business Posting Group) |
| 25 | Gen. Prod. Posting Group | Code[20] | — | TableRelation Table 251 “Gen. Product Posting Group” (Gen. Product Posting Group) |
| 29 | Use Tax | Boolean | — | |
| 30 | VAT Bus. Posting Group | Code[20] | — | TableRelation Table 323 “VAT Business Posting Group” (VAT Business Posting Group) |
| 31 | VAT Prod. Posting Group | Code[20] | — | TableRelation Table 324 “VAT Product Posting Group” (VAT Product Posting Group) |
| 35 | Initial Document Type Δ BC28 | Enum “Gen. Journal Document Type” | Specifies the document type that the initial vendor ledger entry was created with. | enum Enum 6 “Gen. Journal Document Type” |
| 36 | Applied Vend. Ledger Entry No. | Integer | — | |
| 37 | Unapplied Δ BC28 | Boolean | Specifies whether the entry has been unapplied (undone) from the Unapply Vendor Entries window by the entry no. shown in the Unapplied by Entry No. field. | |
| 38 | Unapplied by Entry No. Δ BC28 | Integer | Specifies the number of the correcting entry, if the original entry has been unapplied (undone) from the Unapply Vendor Entries window. | TableRelation Table 380 “Detailed Vendor Ledg. Entry” (Detailed Vendor Ledg. Entry) |
| 39 | Remaining Pmt. Disc. Possible | Decimal | — | |
| 40 | Max. Payment Tolerance | Decimal | — | |
| 41 | Tax Jurisdiction Code | Code[10] | — | TableRelation Table 320 “Tax Jurisdiction” (Tax Jurisdiction); not editable |
| 42 | Application No. | Integer | — | not editable |
| 43 | Ledger Entry Amount | Boolean | — | not editable |
| 44 | Posting Group Δ BC28 | Code[20] | Specifies the vendor’s market type to link business transactions to. | TableRelation Table 93 “Vendor Posting Group” (Vendor Posting Group); not editable |
| 45 | Exch. Rate Adjmt. Reg. No. | Integer | — | TableRelation Table 86 “Exch. Rate Adjmt. Reg.” (Exch. Rate Adjmt. Reg.); not editable |
| 95 | G/L Register No. + BC29 | Integer | Specifies the G/L register number that groups related G/L entries from the same posting. | TableRelation Table 45 “G/L Register” (G/L Register); not editable |
| 7000004 | Excluded from calculation + BC29 | Boolean | — | not editable |
Keys
- Key1: Entry No. (clustered)
- Key2: Vendor No., Currency Code, Excluded from calculation
- Key3: Vendor Ledger Entry No., Entry Type, Posting Date
- Key4: Vendor Ledger Entry No., Ledger Entry Amount, Posting Date, Excluded from calculation
- Key5: Initial Document Type, Entry Type, Vendor No., Currency Code, Initial Entry Global Dim. 1, Initial Entry Global Dim. 2, Posting Date
- Key6: Vendor No., Currency Code, Initial Entry Global Dim. 1, Initial Entry Global Dim. 2, Initial Entry Due Date, Posting Date, Excluded from calculation
- Key7: Document No., Document Type, Posting Date
- Key8: Applied Vend. Ledger Entry No., Entry Type
- Key9: Transaction No., Vendor No., Entry Type
- Key10: Application No., Vendor No., Entry Type
- Key11: Initial Document Type, Initial Entry Due Date
- Key12: Vendor No., Entry Type, Posting Date
Events published
OnAfterUpdateDebitCredit(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; Correction: Boolean)(integration)OnBeforeSetLedgerEntryAmount(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; var IsHandled: Boolean)+ BC24 (integration)OnSetZeroTransNoOnBeforeDetailedVendorLedgEntryModify(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry")(integration)
Trigger event subscribers
- OnAfterInsertEvent: Codeunit 20 “Posting Preview Event Handler” OnInsertDetailedVendorLedgEntry
- OnAfterModifyEvent: Codeunit 20 “Posting Preview Event Handler” OnModifyDetailedVendorLedgerEntry
Procedures
GetLastEntryNo(): IntegerΔ BC26UpdateDebitCredit(Correction: Boolean)SetZeroTransNo(TransactionNo: Integer)GetUnrealizedGainLossAmount(EntryNo: Integer): Decimal
Plus 1 local procedures.
Triggers
OnInsert
Relations
- drill-down page Page 574 “Detailed Vendor Ledg. Entries”
- lookup page Page 574 “Detailed Vendor Ledg. Entries”
- Vendor No.: TableRelation Table 23 “Vendor”
- Source Code: TableRelation Table 230 “Source Code”
- Reason Code: TableRelation Table 231 “Reason Code”
- Vendor Ledger Entry No.: TableRelation Table 25 “Vendor Ledger Entry”
- Gen. Bus. Posting Group: TableRelation Table 250 “Gen. Business Posting Group”
- Gen. Prod. Posting Group: TableRelation Table 251 “Gen. Product Posting Group”
- Tax Jurisdiction Code: TableRelation Table 320 “Tax Jurisdiction”
- VAT Bus. Posting Group: TableRelation Table 323 “VAT Business Posting Group”
- VAT Prod. Posting Group: TableRelation Table 324 “VAT Product Posting Group”
- Initial Entry Global Dim. 1: TableRelation Table 349 “Dimension Value”
- Initial Entry Global Dim. 2: TableRelation Table 349 “Dimension Value”
- Unapplied by Entry No.: TableRelation Table 380 “Detailed Vendor Ledg. Entry”
- Currency Code: TableRelation Table 4 “Currency”
- G/L Register No.: TableRelation Table 45 “G/L Register”
- Transaction No.: TableRelation Table 57 “G/L Transaction”
- Exch. Rate Adjmt. Reg. No.: TableRelation Table 86 “Exch. Rate Adjmt. Reg.”
- Posting Group: TableRelation Table 93 “Vendor Posting Group”
Referenced by
46 fields in 9 objects relate to this table (TableRelation or CalcFormula).
- Table 23 “Vendor”: Balance, Balance (LCY), Balance Due, Balance Due (LCY), Cr. Memo Amounts, Cr. Memo Amounts (LCY), Credit Amount, Credit Amount (LCY), Debit Amount, Debit Amount (LCY), Fin. Charge Memo Amounts (LCY), Finance Charge Memo Amounts, Inv. Amounts (LCY), Invoice Amounts, Net Change, Net Change (LCY), Other Amounts, Other Amounts (LCY), Payments, Payments (LCY), Pmt. Disc. Tolerance (LCY), Pmt. Discounts (LCY), Pmt. Tolerance (LCY), Refunds, Refunds (LCY), Reminder Amounts, Reminder Amounts (LCY)
- Table 25 “Vendor Ledger Entry”: Amount, Amount (LCY), Credit Amount, Credit Amount (LCY), Debit Amount, Debit Amount (LCY), Original Amount, Original Amt. (LCY), Remaining Amount, Remaining Amt. (LCY)
- Table 4 “Currency”: Vendor Balance, Vendor Balance (LCY), Vendor Balance Due
- Table 122 “Purch. Inv. Header”: Remaining Amount
- Table 124 “Purch. Cr. Memo Hdr.”: Remaining Amount
- Table 380 “Detailed Vendor Ledg. Entry”: Unapplied by Entry No.
- Table 86 “Exch. Rate Adjmt. Reg.”: Adjusted Vendors
- Table 9151 “My Vendor”: Balance (LCY)
- Table 98 “General Ledger Setup”: Vendor Balances Due
Pages and codeunits on this table
- Page 129 “Detailed Vend. Entries Preview” (source table)
- Page 574 “Detailed Vendor Ledg. Entries” (source table)
- Page 624 “Unapply Vendor Entries” (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 703 “Find Record Management” (1 call:
GetLastEntryNo → GetLastEntryIntFieldValue)
Recent changes
- 2026-07-20 #9089 Merge-ES-Excluded-from-Calculation-to-W1 (main, BC30, feature)
Countries that replace it
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
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: "Detailed Vendor Ledg. Entry"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.