Table 6788 "Withholding Tax Entry"
WithholdingTax · Microsoft.WithholdingTax
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 23 connected objects and pages
WithholdingTax · Microsoft.WithholdingTax · BC29-30 · source at 4e6a307c · facts from BC29
Learn documents this table through its pages: Page 6788 “Withholding Tax Entries” (2 Learn pages).
Properties
| Property | Value |
|---|---|
| Caption | Withholding Tax Entry |
| 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 | Entry No. | Integer | Specifies an auto-generated unique key for every transaction in this table. via Page 6788 “Withholding Tax Entries” | not editable |
| 2 | Gen. Bus. Posting Group | Code[20] | Specifies that the value is assigned from Gen. Bus. Posting Group in the Sales/Purchase/Journal transaction. via Page 6788 “Withholding Tax Entries” | TableRelation Table 250 “Gen. Business Posting Group” (Gen. Business Posting Group); not editable |
| 3 | Gen. Prod. Posting Group | Code[20] | Specifies the value is assigned from Gen. Prod. Posting Group in the Sales/Purchase/Journal transaction. via Page 6788 “Withholding Tax Entries” | TableRelation Table 251 “Gen. Product Posting Group” (Gen. Product Posting Group); not editable |
| 4 | Posting Date | Date | Specifies the date when the original entry was posted. via Page 6788 “Withholding Tax Entries” | not editable |
| 5 | Document No. | Code[20] | Specifies the document number of the original transaction. via Page 6788 “Withholding Tax Entries” | not editable |
| 6 | Document Type | Enum “Gen. Journal Document Type” | Specifies the value is assigned from Document Type in the Sales/Purchase/Journal transaction. via Page 6788 “Withholding Tax Entries” | enum Enum 6 “Gen. Journal Document Type”; not editable |
| 8 | Base | Decimal | Specifies the calculated withholding tax base amount. via Page 6788 “Withholding Tax Entries” | not editable |
| 9 | Amount | Decimal | Specifies the calculated withholding tax amount. via Page 6788 “Withholding Tax Entries” | not editable |
| 10 | Withholding Tax Calc. Type | Option | Specifies the withholding tax calculation type. via Page 6788 “Withholding Tax Entries” | OptionCaption: Normal Withholding Tax,Full Withholding Tax; not editable |
| 11 | Currency Code | Code[10] | Specifies that the value of Specifies that this field is assigned from Currency Code in the Sales/Purchase/Journal transaction. via Page 6788 “Withholding Tax Entries” | |
| 12 | Bill-to/Pay-to No. | Code[20] | Specifies the number of the Bill-to Customer or Pay-to Vendor that the entry is linked to. via Page 6788 “Withholding Tax Entries” | TableRelation Table 18 “Customer”, Table 23 “Vendor” (if (“Transaction Type” = const(Purchase)) Vendor else if (“Transaction Type” = const(Sale)) Customer) |
| 14 | User ID | Code[50] | Specifies the ID of the user that is associated with the entry. via Page 6788 “Withholding Tax Entries” | not editable; DataClassification EndUserIdentifiableInformation |
| 15 | Source Code | Code[10] | Specifies the source code that is linked to the Withholding Tax entry. via Page 6788 “Withholding Tax Entries” | TableRelation Source Code; not editable |
| 16 | Reason Code | Code[10] | Specifies the reason code for the entry. via Page 6788 “Withholding Tax Entries” | TableRelation Reason Code; not editable |
| 17 | Closed by Entry No. | Integer | Specifies the entry number of the Withholding Tax entry that has been applied to (that has closed) the entry. via Page 6788 “Withholding Tax Entries” | TableRelation Table 6788 “Withholding Tax Entry” (Withholding Tax Entry); not editable |
| 18 | Closed | Boolean | Specifies that the entry has been closed for transactions. via Page 6788 “Withholding Tax Entries” | not editable |
| 19 | Country/Region Code | Code[10] | Specifies the country code for the customer or vendor that the Withholding Tax entry is linked to. via Page 6788 “Withholding Tax Entries” | TableRelation Table 9 “Country/Region” (Country/Region) |
| 21 | Transaction No. | Integer | Specifies the transaction number assigned to the entry. via Page 6788 “Withholding Tax Entries” | not editable |
| 22 | Unrealized Amount | Decimal | Specifies the withholding tax amount in the original currency that will be realized during payment as calculated during the posting of the document. via Page 6788 “Withholding Tax Entries” | not editable |
| 23 | Unrealized Base | Decimal | Specifies the base amount in the original currency that the Withholding Tax Amount was calculated from. via Page 6788 “Withholding Tax Entries” | not editable |
| 24 | Remaining Unrealized Amount | Decimal | Specifies the calculated remaining Withholding Tax amount. via Page 6788 “Withholding Tax Entries” | not editable |
| 25 | Remaining Unrealized Base | Decimal | Specifies the calculated remaining base amount. via Page 6788 “Withholding Tax Entries” | not editable |
| 26 | External Document No. | Code[35] | Specifies the external document number for this entry. via Page 6788 “Withholding Tax Entries” | not editable |
| 27 | Transaction Type | Option | Specifies the source of the transaction. via Page 6788 “Withholding Tax Entries” | OptionCaption: ,Purchase,Sale,Settlement |
| 28 | No. Series | Code[20] | Specifies the number series that the document number on this entry belongs to. via Page 6788 “Withholding Tax Entries” | TableRelation No. Series; not editable |
| 29 | Unreal. Wthldg. Tax Entry No. | Integer | Specifies the number of the original Withholding Tax entry with the unrealized Withholding Tax amount. via Page 6788 “Withholding Tax Entries” | TableRelation Table 6788 “Withholding Tax Entry” (Withholding Tax Entry); not editable |
| 30 | Wthldg. Tax Bus. Post. Group | Code[20] | Specifies the Withholding Tax Business Posting group code that was used when the entry was posted. via Page 6788 “Withholding Tax Entries” | TableRelation Table 6784 “Wthldg. Tax Bus. Post. Group” (Wthldg. Tax Bus. Post. Group); not editable |
| 31 | Wthldg. Tax Prod. Post. Group | Code[20] | Specifies the Withholding Tax Product Posting group code that was used when the entry was posted. via Page 6788 “Withholding Tax Entries” | TableRelation Table 6785 “Wthldg. Tax Prod. Post. Group” (Wthldg. Tax Prod. Post. Group); not editable |
| 32 | Base (LCY) | Decimal | Specifies the Base Amount in LCY of the Withholding Tax, which is realized during this transaction. via Page 6788 “Withholding Tax Entries” | not editable |
| 33 | Amount (LCY) | Decimal | Specifies the Withholding Tax Amount in LCY of the Withholding Tax, which is realized during this transaction. via Page 6788 “Withholding Tax Entries” | not editable |
| 34 | Unrealized Amount (LCY) | Decimal | Specifies the withholding tax amount that will be realized during payment as calculated during the posting of the document. via Page 6788 “Withholding Tax Entries” | not editable |
| 35 | Unrealized Base (LCY) | Decimal | Specifies the base amount in your currency that the Withholding Tax Amount was calculated from. via Page 6788 “Withholding Tax Entries” | not editable |
| 36 | Withholding Tax % | Decimal | Specifies the withholding tax percent used for calculations during this transaction. via Page 6788 “Withholding Tax Entries” | not editable |
| 37 | Rem Unrealized Amount (LCY) | Decimal | Specifies the Remaining Unrealized Amount in LCY left for a particular transaction is stored. via Page 6788 “Withholding Tax Entries” | not editable |
| 38 | Rem Unrealized Base (LCY) | Decimal | Specifies the Remaining Unrealized Base in LCY left for a particular transaction is stored. via Page 6788 “Withholding Tax Entries” | not editable |
| 39 | Withholding Tax Difference | Decimal | Specifies the difference between the Unrealized and Realized Withholding Tax. via Page 6788 “Withholding Tax Entries” | not editable |
| 41 | Ship-to/Order Address Code | Code[10] | Specifies the address of the entry. via Page 6788 “Withholding Tax Entries” | TableRelation Table 222 “Ship-to Address”, Table 224 “Order Address” (if (“Transaction Type” = const(Purchase)) “Order Address”.Code where(“Vendor No.” = field(“Bill-to/Pay-to No.”)) else if (“Transaction Type” = const(Sale)) “Ship-to Address”.Code where(“Customer No.” = field(“Bill-to/Pay-to No.”))) |
| 42 | Document Date | Date | Specifies the Document Date from the applied Withholding Tax Entry is stored for applying the Withholding Tax Entry table. via Page 6788 “Withholding Tax Entries” | not editable |
| 44 | Actual Vendor No. | Code[20] | Specifies the Actual Vendor No. from which Invoices or Journals is copied. via Page 6788 “Withholding Tax Entries” | |
| 45 | Wthldg. Tax Certificate No. | Code[20] | Specifies an auto-generated no. based on the no. series. via Page 6788 “Withholding Tax Entries” | |
| 47 | Void Check | Boolean | Specifies that this field is marked internally if the transactions have been reversed due to voiding of checks. via Page 6788 “Withholding Tax Entries” | |
| 48 | Original Document No. | Code[20] | Specifies the original document no. from the Invoice or Journal is assigned to this field. via Page 6788 “Withholding Tax Entries” | |
| 49 | Void Payment Entry No. | Integer | Specifies the entry no. of the Withholding Tax Entry, which has been voided, with this transaction. via Page 6788 “Withholding Tax Entries” | |
| 50 | Wthldg. Tax Report Line No | Code[20] | Specifies an auto-generated field based on the no. series defined in the Withholding Tax Posting Setup for a particular Withholding Tax Report Type. via Page 6788 “Withholding Tax Entries” | |
| 52 | Applies-to Doc. Type | Enum “Gen. Journal Document Type” | — | enum Enum 6 “Gen. Journal Document Type” |
| 53 | Applies-to Doc. No. | Code[20] | — | |
| 54 | Applies-to Entry No. | Integer | — | |
| 55 | Withholding Tax Revenue Type | Code[10] | — | TableRelation Table 6787 “Withholding Tax Revenue Types” (“Withholding Tax Revenue Types”.Code) |
| 56 | Settled | Boolean | — | |
| 57 | Payment Amount | Decimal | — | |
| 58 | Reversed by Entry No. | Integer | — | TableRelation Table 6788 “Withholding Tax Entry” (“Withholding Tax Entry”.“Entry No.”) |
| 59 | Reversed Entry No. | Integer | — | TableRelation Table 6788 “Withholding Tax Entry” (“Withholding Tax Entry”.“Entry No.”) |
| 60 | Reversed | Boolean | — | |
| 61 | Rem Realized Amount | Decimal | — | not editable |
| 62 | Rem Realized Amount (LCY) | Decimal | — | not editable |
| 63 | Rem Realized Base | Decimal | — | not editable |
| 64 | Rem Realized Base (LCY) | Decimal | — | not editable |
| 65 | Prepayment | Boolean | — | |
| 100 | Party Type | Enum “Withholding Party Type” | Specifies the type of party (Vendor, Customer, or Employee) that this withholding tax entry relates to. via Page 6788 “Withholding Tax Entries” | enum Enum 6784 “Withholding Party Type”; not editable |
| 101 | Employee No. | Code[20] | Specifies the employee number if this withholding tax entry originated from an employee transaction. via Page 6788 “Withholding Tax Entries” | TableRelation Table 5200 “Employee” (if (“Party Type” = const(Employee)) Employee); not editable |
| 102 | Empl. Ledger Entry No. | Integer | Specifies the employee ledger entry number that this withholding tax entry is linked to. via Page 6788 “Withholding Tax Entries” | not editable |
| 103 | Calculation Base | Enum “Withholding Calculation Base” | Specifies whether the withholding tax was calculated on the gross or net (gross-up) base amount. via Page 6788 “Withholding Tax Entries” | enum Enum 6785 “Withholding Calculation Base”; not editable |
| 104 | Calculation Method | Enum “Withholding Calculation Method” | Specifies the calculation method used: Simple or Compound. via Page 6788 “Withholding Tax Entries” | enum Enum 6786 “Withholding Calculation Method”; not editable |
| 105 | Component Order | Integer | Specifies the order in which this tax component was applied when using compound calculation. via Page 6788 “Withholding Tax Entries” | not editable |
| 106 | Threshold Base | Enum “Withholding Threshold Base” | Specifies the threshold evaluation level: Record, Document, Category in Period, or Total in Period. via Page 6788 “Withholding Tax Entries” | enum Enum 6787 “Withholding Threshold Base”; not editable |
| 107 | Threshold Evaluated | Boolean | Specifies whether the threshold was evaluated for this entry. via Page 6788 “Withholding Tax Entries” | not editable |
| 108 | Threshold Exceeded | Boolean | Specifies whether the threshold was exceeded for this entry. via Page 6788 “Withholding Tax Entries” | not editable |
| 109 | Period Start Date | Date | — | not editable |
| 110 | Period End Date | Date | — | not editable |
| 111 | WHT Group Code | Code[20] | Specifies the withholding tax group code if a multi-component tax group was used. via Page 6788 “Withholding Tax Entries” | TableRelation Table 6792 “Withholding Tax Group” (Withholding Tax Group); not editable |
| 112 | Taxable Base Amount | Decimal | Specifies the effective taxable base amount after threshold evaluation. This may differ from the original base when thresholds apply. via Page 6788 “Withholding Tax Entries” | not editable |
| 28101 | Pymt. Disc. Diff. Base | Decimal | — | |
| 28102 | Pymt. Disc. Diff. Amount | Decimal | — |
Keys
- Key1: Entry No. (clustered)
- Key2: Transaction Type, Closed, Withholding Tax Difference, Amount (LCY), Base (LCY), Posting Date
- Key3: Transaction Type, Country/Region Code, Withholding Tax Difference, Posting Date
- Key4: Document No., Posting Date
- Key5: Transaction No.
- Key6: Amount (LCY), Unrealized Amount (LCY), Unrealized Base (LCY), Base (LCY), Posting Date
- Key7: Document Type, Document No.
- Key8: Transaction Type, Document No., Document Type, Bill-to/Pay-to No., Closed
- Key9: Applies-to Entry No.
- Key10: Bill-to/Pay-to No., Original Document No., Withholding Tax Revenue Type
- Key11: Bill-to/Pay-to No., Withholding Tax Revenue Type, Wthldg. Tax Prod. Post. Group
- Key12: Bill-to/Pay-to No., Wthldg. Tax Bus. Post. Group, Withholding Tax Revenue Type
- Key13: Document Type, Transaction Type, Settled, Wthldg. Tax Bus. Post. Group, Wthldg. Tax Prod. Post. Group, Posting Date
- Key14: Posting Date, Settled, Wthldg. Tax Certificate No.
- Key15: Posting Date, Wthldg. Tax Certificate No.
- Key16: Document Type, Transaction Type, Bill-to/Pay-to No., Transaction No.
- Key17: Transaction Type, Bill-to/Pay-to No., Transaction No.
- Key18: Withholding Tax Revenue Type, Posting Date
- Key19: Transaction Type, Bill-to/Pay-to No.
Trigger event subscribers
- OnAfterInsertEvent: Codeunit 6792 “Wthldg Tax Preview Handler” SavePreviewWithholdingTaxEntry
Procedures
GetCurrencyCode(): Code[10]GetLastEntryNo(): Integer
Triggers
OnInsert
Relations
- drill-down page Page 6788 “Withholding Tax Entries”
- lookup page Page 6788 “Withholding Tax Entries”
- Bill-to/Pay-to No.: TableRelation Table 18 “Customer” (conditional)
- Ship-to/Order Address Code: TableRelation Table 222 “Ship-to Address” (conditional)
- Ship-to/Order Address Code: TableRelation Table 224 “Order Address” (conditional)
- Bill-to/Pay-to No.: TableRelation Table 23 “Vendor” (conditional)
- Gen. Bus. Posting Group: TableRelation Table 250 “Gen. Business Posting Group”
- Gen. Prod. Posting Group: TableRelation Table 251 “Gen. Product Posting Group”
- Employee No.: TableRelation Table 5200 “Employee”
- Wthldg. Tax Bus. Post. Group: TableRelation Table 6784 “Wthldg. Tax Bus. Post. Group”
- Wthldg. Tax Prod. Post. Group: TableRelation Table 6785 “Wthldg. Tax Prod. Post. Group”
- Withholding Tax Revenue Type: TableRelation Table 6787 “Withholding Tax Revenue Types”
- Closed by Entry No.: TableRelation Table 6788 “Withholding Tax Entry”
- Reversed by Entry No.: TableRelation Table 6788 “Withholding Tax Entry”
- Reversed Entry No.: TableRelation Table 6788 “Withholding Tax Entry”
- Unreal. Wthldg. Tax Entry No.: TableRelation Table 6788 “Withholding Tax Entry”
- WHT Group Code: TableRelation Table 6792 “Withholding Tax Group”
- Country/Region Code: TableRelation Table 9 “Country/Region”
Referenced by
16 fields in 6 objects relate to this table (TableRelation or CalcFormula).
- Table 6788 “Withholding Tax Entry”: Closed by Entry No., Reversed by Entry No., Reversed Entry No., Unreal. Wthldg. Tax Entry No.
- Table extension 6798 “Withholding Purch. Inv. Header”: Paid Wthldg. Tax Pre. Amt(LCY), Rem. Wthldg. Tax Pre. Amt(LCY), Tot. Wthldg. Tax Pre. Amt(LCY)
- Table extension 6799 “WHT Purch. Cr. Memo Hdr.”: Paid Wthldg. Tax Pre. Amt(LCY), Rem. Wthldg. Tax Pre. Amt(LCY), Tot. Wthldg. Tax Pre. Amt(LCY)
- Table 6790 “Temp Withholding Tax Entry”: Reversed by Entry No., Reversed Entry No.
- Table extension 6792 “Withholding Vend Led Entry Ext”: Withholding Tax Amount, Withholding Tax Amount (LCY)
- Table extension 6795 “Withholding G/L Register Ext”: From Withholding Tax Entry No., To Withholding Tax Entry No.
Pages and codeunits on this table
- Page 6788 “Withholding Tax 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 8703 “Feature Telemetry” (2 calls:
OnInsert → LogUptake,OnInsert → LogUsage) - Codeunit 703 “Find Record Management” (1 call:
GetLastEntryNo → GetLastEntryIntFieldValue)
Recent changes
- 2026-08-14 #10209 Promote AA0471, AA0472 and AA0474 to Error in the base ruleset (main, BC30, other)
- 2026-07-29 #9311 Withholding Tax for Employee (main, BC30, feature)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Calculate withholding tax for vendors — possibly related: Documents withholding tax entry calculation and processing for vendor payments. (model-linked)
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: "Withholding Tax Entry"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.