Search Results ra_tax_exemptions_all




Overview

The RA_TAX_EXEMPTIONS_ALL table is a core data structure within the Oracle E-Business Suite Receivables (AR) module, versions 12.1.1 and 12.2.2. It serves as the central repository for defining tax exemption rules. Its primary function is to store the percentage rate at which a specific customer, customer site, or inventory item is exempt from a particular tax code. This enables the system to automatically calculate and apply partial or full tax exemptions during the transaction entry and invoice generation processes, ensuring accurate tax compliance and reporting. The table is multi-org enabled, as indicated by the "_ALL" suffix, meaning it stores data for multiple operating units.

Key Information Stored

The table's primary key is TAX_EXEMPTION_ID, a unique system-generated identifier for each exemption record. The core functional columns define the scope and value of the exemption. These typically include CUSTOMER_ID and SITE_USE_ID to link to the customer (HZ_CUST_ACCOUNTS) and ship-to bill-to site (HZ_CUST_SITE_USES_ALL), respectively. A TAX_CODE column identifies the specific tax from which the exemption applies. The EXEMPTION_RATE column stores the critical percentage value of the exemption. Furthermore, the table contains a series of LOCATION_ID_SEGMENT columns (1 through 10), which are foreign keys used to define the geographical or jurisdictional context for the tax rule, linking to the application's flexfield-based location hierarchy.

Common Use Cases and Queries

The primary use case is the automated application of tax exemptions during invoice creation. When a transaction line is created, the system queries this table to find a matching exemption rule based on the customer, site, item, and tax code, applying the exemption rate to the calculated tax amount. Common reporting and audit queries involve listing all exemptions for a specific customer or tax jurisdiction. A sample SQL pattern to retrieve active exemptions for a customer would be:

  • SELECT customer_id, tax_code, exemption_rate
  • FROM ra_tax_exemptions_all
  • WHERE customer_id = :p_cust_id
  • AND org_id = :p_org_id;

Another critical operational query is to validate the exemption details applied to a specific invoice line by joining with RA_CUSTOMER_TRX_LINES_ALL on TAX_EXEMPTION_ID.

Related Objects

RA_TAX_EXEMPTIONS_ALL has integral relationships with several key EBS objects. It is directly referenced by the RA_CUSTOMER_TRX_LINES_ALL table via the TAX_EXEMPTION_ID foreign key, which ties each taxed invoice line to the specific exemption rule applied. It maintains fundamental foreign key relationships to the Trading Community Architecture (TCA) base tables HZ_CUST_ACCOUNTS (for the customer) and HZ_CUST_SITE_USES_ALL (for the customer site). The ten LOCATION_ID_SEGMENT columns are foreign keys to the application's location flexfield segments, which define the tax jurisdiction. From a programmatic standpoint, tax calculation and exemption logic are typically managed through the Oracle Tax Engine and related AR APIs rather than direct DML on this table.