Results for “ap_awt_buckets”
46 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
The APPS.AP_CALC_WITHHOLDING_PKG package body encapsulates the withholding tax (AWT — Automatic Withholding Tax) calculation logic used by Oracle Payables. Its principal business function is to determine the amount of tax that must be withheld from a supplier payment when an invoice subject to withholding tax is processed. The package evaluates the applicable withholding tax rules, the amount subject to tax, the withholding period, and any period limits or bucket balances accumulated to date, and returns the actual amount to be withheld. The header comment $Header: apclawtb.pls 120.20.12010000.4 2008/09/09 indicates this is a long-standing, patched component of the Payables codebase, with fixes dating back to early releases and continuing through the 12.1.x line. In Oracle EBS 12.1.1 and 12.2.2, withholding tax processing remains a core Payables feature for countries where tax authorities require payers to withhold and remit tax on behalf of suppliers, and this package is the computational engine behind that feature.
Key Procedures and Functions
The ETRM documentation classifies this package under API classification OTHER and records three documented program units.
- AP_CALCULATE_AWT_AMOUNTS — The primary entry point that performs the actual withholding calculation for an invoice or payment. It applies the applicable tax code, rate, and period limits to the taxable amount and returns the amount to be withheld. It is the highest-level routine in the package and coordinates the supporting logic.
- HANDLE_BUCKET — Manages the withholding "bucket" records that accumulate amounts withheld and amounts subject to withholding across periods. Per the source comment history, bucket manipulation was extracted from the cut-off routine into this procedure, eliminating the previous manual assumption. It reads and updates
AP_AWT_BUCKETSto maintain cumulative totals. - INSERT_TEMP_DISTRIBUTION — Creates temporary distribution rows, held in
AP_AWT_TEMP_DISTRIBUTIONS_ALL, that represent the withholding liability generated by a calculation before it is finalized into the accounting distributions.
The package body also contains the private function Do_AWT_Cut_Off, which applies period cut-off rules: given a withholding date, subject amount, withheld amount, vendor, tax name, withholding period and period limit, it returns the amount to be withheld after any period-limit restriction is applied. It declares working variables of the types AP_TAX_CODES.awt_period_type, AP_OTHER_PERIODS.period_name, AP_TAX_CODES.awt_period_limit, and AP_AWT_BUCKETS.withheld_amount_to_date.
Tables Accessed
The package reads and writes a broad set of Payables and General Ledger objects, generally through APPS synonyms. Withholding setup and rule data are sourced from AP_AWT_GROUPS, AP_AWT_GROUP_TAXES, AP_AWT_TAX_RATES, and AP_TAX_CODES. Period and limit information is obtained from AP_OTHER_PERIODS and AP_TAX_CODES.awt_period_limit. Cumulative withholding balances are maintained in AP_AWT_BUCKETS, while generated withholding entries are staged in AP_AWT_TEMP_DISTRIBUTIONS_ALL. Invoice and payment context is drawn from AP_INVOICES, AP_INVOICES_ALL, AP_INVOICE_DISTRIBUTIONS, AP_INVOICE_DISTRIBUTIONS_ALL, and AP_PAYMENT_SCHEDULES. System-level defaults come from AP_SYSTEM_PARAMETERS and AP_SYSTEM_PARAMETERS_ALL, and the accounting flexfield target for any resulting distributions is resolved via GL_CODE_COMBINATIONS. The _ALL suffixed tables reflect Multi-Org Access Control (MOAC) and partitioning practices noted in the source comment referencing bug 7232736, which moved the g_org_id declaration into the package specification.
Usage Notes
This package is not intended as a public, customer-invocable API; it is classified as OTHER and is referenced by four other packages within the Payables application. It is normally invoked indirectly — for example, during invoice validation, withholding tax calculation concurrent processing, or payment processing — rather than called directly from custom code. Developers extending withholding functionality should prefer documented public APIs where available, since the internal routines and their signatures are subject to change between patch levels, as evidenced by the numerous bug-driven revisions in the header history.
-
SYNONYM: APPS.AP_AWT_BUCKETS 12.1.1
-
SYNONYM: APPS.AP_AWT_BUCKETS 12.2.2
-
View: AP_AWT_BUCKETS_V 12.2.2
(Release 10SC only)
APPS.AP_AWT_BUCKETS_V·↳ AP_AWT_BUCKETS·↳ PO_VENDORS·Explore AP module →
-
View: AP_AWT_BUCKETS_V 12.1.1
(Release 10SC only)
APPS.AP_AWT_BUCKETS_V·↳ AP_AWT_BUCKETS·↳ PO_VENDORS·Explore AP module →
-
VIEW: APPS.AP_AWT_BUCKETS_V 12.2.2
-
VIEW: APPS.AP_AWT_BUCKETS_V 12.1.1
-
VIEW: AP.AP_AWT_BUCKETS_ALL# 12.2.2
-
VIEW: APPS.AP_AWT_BUCKETS_V 12.1.1
-
TABLE: AP.AP_AWT_BUCKETS_ALL 12.1.1
-
VIEW: APPS.AP_AWT_BUCKETS_V 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
PACKAGE BODY: APPS.AD_MORG 12.1.1
-
PACKAGE BODY: APPS.AD_MORG 12.2.2
-
Set Distribution Table.
-
Set Distribution Table.
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
Set Distribution Table.
-
Set Distribution Table.