Results for “pay_us_tax_bals_adj_api”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PAY_US_TAX_BALS_ADJ_API is a PL/SQL package body in the Oracle EBS Payroll (PAY) application, owned by the APPS schema and classified as an API. It defines procedures that constitute the main PLSQL execution engine for creating and processing United States statutory tax balance adjustments, chiefly for State Unemployment Insurance (SUI), State Disability Insurance (SDI), and related city, county, and school district taxes. The package is delivered as the file pytbaapi.pkb; the version history references release lineage associated with 12.1.1 and 12.2.2 (Header revision 120.22.12020000.9). In business terms, the package supports the retroactive correction of taxable wage balances when an adjustment must be recorded against an employee's SUI/SDI or local tax balances, so that payroll tax reporting and quarterly returns reflect accurate figures. It resolves the applicable tax definitions, validates that a tax authority exists for the assignment, determines the balance dimension and balance type to be adjusted, and drives the appropriate element entries through the adjustment cycle.
Key Procedures and Functions
- CREATE_TAX_BALANCE_ADJUSTMENT — The documented public entry point of the package. It accepts an adjustment request and orchestrates the creation of the corresponding tax balance adjustment. Internally it identifies the taxable balance (SUI/SDI, employee or employer share, city, county, or school district), validates the existence of the tax via the tax-existence check, applies processing-limit logic (including negative adjustment handling), and invokes the internal process_element logic for the relevant SUI_EE, SUI_ER, SDI_ER, and SDI_EE classifications when an adjustment is required.
- Internal processing helpers — The body documents supporting logic referenced as process_elements and process_limit, along with the csr_sdi_check cursor. The SDI check cursor was modified to validate business_group_id on the assignment record so that a single row is returned when the same assignment number exists across multiple business groups. The process_limit routine was changed to accommodate negative amounts and negative adjustments. Element processing was revised so that SUI/SDI elements are executed whenever an adjustment exists, rather than only when the gross amount differs from zero. These helpers are private to the package body and are not exposed as documented public APIs.
Tables Accessed
The package reads and writes the following documented tables through APPS synonyms:
- PAY_ELEMENT_TYPES_F, PAY_ELEMENT_CLASSIFICATIONS, PAY_INPUT_VALUES_F — define the SUI/SDI and local tax elements and the input values required to create adjustment entries.
- PAY_BALANCE_TYPES, PAY_BALANCE_DIMENSIONS, PAY_DEFINED_BALANCES — resolve the taxable balances and dimensions targeted by the adjustment.
- PAY_TAXABILITY_RULES, PAY_CONSOLIDATION_SETS, PAY_PAYROLL_ACTIONS — support taxability determination, consolidation, and the payroll action context for the adjustment run.
- PAY_US_CITY_TAX_INFO_F, PAY_US_COUNTIES, PAY_US_CITY_SCHOOL_DSTS — supply United States city, county, and school district tax authority data used in validation and adjustment.
- HR_ORGANIZATION_INFORMATION, HR_SOFT_CODING_KEYFLEX, FND_SESSIONS — provide business group, organization, and session context, including the assignment and business group checks described in the change history.
Usage Notes
PAY_US_TAX_BALS_ADJ_API is an API rather than a concurrent program, and it is not referenced by any other documented package, so it is typically invoked directly from customer extensions, correction scripts, or supporting payroll processes that need to write US tax balance adjustments. The public procedure CREATE_TAX_BALANCE_ADJUSTMENT should be called within a session where the correct business group and effective dates are set, since the package validates assignment and business group identity. Because the body performs balance and element adjustments, callers should commit only after all intended adjustments are complete, consistent with the historical change that added a commit before the exit statement. Testing should include negative adjustment scenarios, given the documented corrections for negative amounts and the requirement to process SUI/SDI elements even when the gross amount is zero.
-
VIEW: APPS.HR_TAX_UNITS_V 12.2.2
-
SYNONYM: APPS.PAY_US_STATES 12.1.1
-
SYNONYM: APPS.PAY_US_STATES 12.2.2
-
SYNONYM: APPS.PER_ADDRESSES 12.2.2