Search Results process_withholding_type




Overview

JL_ZZ_AP_WITHHOLDING_PKG is a Latin American localization (JL schema) PL/SQL package owned by APPS and shipped in Oracle E-Business Suite 12.1.1 and 12.2.2. It implements the withholding tax processing logic associated with Oracle Payables for jurisdictions that levy amount withheld at payment (AWT) or at invoice time. The package carries the header identifier jlzzpwhs.pls 120.8, indicating it is a localized extension rather than a core Payables object. Its role is to determine which withholding types, tax names, and rates apply to a given invoice or invoice distribution, compute the taxable base and the withheld amount, apply proration across distributions, and persist the calculated withholding details so that downstream Payables and General Ledger processes can account for them.

The package defines several PL/SQL record structures that model the withholding domain, notably Rec_Withholding, Rec_All_Withholding, and Rec_AWT_Code. These records capture invoice and distribution identifiers, withholding type and jurisdiction codes, tax identifiers and code combinations, period types, rates, line and taxable base amounts, revised tax bases, withheld and prorated amounts, exemption amounts, and applicability flags. Constants such as AWT_SUCCESS and AWT_ERROR provide standardized return statuses to callers.

Key Procedures and Functions

The package exposes nineteen documented procedures and functions that collectively drive the withholding calculation lifecycle:

Tables Accessed

The package reads and writes a defined set of Payables and localization tables through APPS synonyms. Invoice and distribution data are sourced from AP_INVOICES, AP_INVOICE_DISTRIBUTIONS, and the interface tables AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE. Withholding configuration is drawn from JL_ZZ_AP_AWT_TYPES, JL_ZZ_AP_SUPP_AWT_TYPES, JL_ZZ_AP_SUP_AWT_CD, AP_AWT_TAX_RATES, and AP_TAX_CODES. Calculated withholding buckets are held in AP_AWT_BUCKETS and the localization detail tables JL_ZZ_AP_INV_DIS_WH and JL_ZZ_AP_INV_DIS_WH_S. Period and system context come from AP_OTHER_PERIODS, GL_PERIOD_STATUSES, and AP_SYSTEM_PARAMETERS.

Usage Notes

JL_ZZ_AP_WITHHOLDING_PKG is invoked primarily from Oracle Payables invoice and payment processing, including the Invoice Workbench forms and withholding-related concurrent programs that apply localized withholding during invoice validation and payment. It is also referenced by four other packages in the EBS codebase, indicating it is a shared localization service. Customizations and extensions calling this package directly should respect the documented procedure names and record structures, avoid assuming parameter signatures not present in the shipped specification, and account for the fact that the object is a localization component — its behavior depends on the Latin American withholding setup and may not be active in all EBS installations. Callers should rely on the AWT_SUCCESS and AWT_ERROR constants for status evaluation.