How Oracle EBS calls an external tax engine
In Oracle E-Business Suite R12, every tax calculation goes through Oracle E-Business Tax. This lesson walks through how a third-party engine plugs into it, which business flows trigger a call, where results are stored, and where to look when something goes wrong.
By Herb Park, Clarent Technologies
In Oracle E-Business Suite R12, Payables, Receivables, Order Management, Purchasing and the other subledgers do not calculate tax themselves. They hand transactions to Oracle E-Business Tax (eBTax, the ZX schema), which either calculates tax with its own rules or passes the transaction to a tax service provider: a third-party engine such as ONESOURCE, Vertex or another partner. Knowing which layer did what is the key to diagnosing problems.
The layers
| Layer | What it does | Where you see it |
|---|---|---|
| Subledger (AP, AR, OM, PO) | Creates the transaction and asks for tax at defined events. | Invoice Workbench, Transactions, Sales Orders, holds |
| Oracle E-Business Tax (ZX) | Gathers the tax-relevant facts, decides whether a provider handles the regime, stores the resulting tax lines. | ZX_LINES_DET_FACTORS (inputs), ZX_LINES (tax lines), tax regimes and tax profiles |
| Provider adapter | Packages eBTax data into the engine’s request, calls the engine, maps the response back into tax lines. | The adapter’s own log table (for the ONESOURCE adapter, SABRIX_LOG) |
| External engine | Decides jurisdiction, taxability, rate and tax code. | The engine’s audit or transaction records |
A provider is attached to one or more tax regimes (for example a US sales tax regime or a country VAT regime) and to the operating units that subscribe to them. If a transaction falls under a regime the provider owns, eBTax calls the provider; otherwise eBTax applies its own rules. That is why two operating units on the same instance can behave differently.
When tax is called
| Flow | Typical events that calculate tax | What a failure looks like |
|---|---|---|
| Order to cash | Order line entry and changes (a tax quote), ship confirm and Interface Trip Stop, AutoInvoice import, manual AR transactions, credit memos. | Wrong tax on the order or invoice; lines stuck after ship confirm; AutoInvoice errors. |
| Procure to pay | Purchase order approval (estimated tax), AP invoice validation, self-assessed (use) tax on purchases. | Invoices on tax holds; tax lines missing after validation; unexpected self-assessed tax. |
What gets stored where
ZX_LINES_DET_FACTORS: one row per transaction line with the facts used for tax (parties, locations, product, dates, transaction type). If these are wrong, the request to the engine will be wrong.ZX_LINES: the resulting tax lines, including those returned by a provider. This is what the subledger accounts and reports from.- The adapter log: the actual request and response exchanged with the engine. See Pulling the tax request and response from Oracle EBS.
When something goes wrong: which layer?
| Symptom | First question | Likely layer |
|---|---|---|
| Wrong rate or jurisdiction | What address and date were in the request? | Master data or the engine’s rules |
| Tax hold on an AP invoice with no obvious reason | Did the adapter log an error, or a response it could not map? | Adapter or engine configuration |
| No adapter log rows at all | Did eBTax even call the provider for this regime and operating unit? | eBTax configuration or data |
| Process stuck (for example ship confirm), tax looks fine | Did eBTax raise an error while recalculating? | eBTax data; see this casebook entry |
Upgrades change the adapter, not only the engine
An engine upgrade usually brings a new adapter version, and the adapter decides how responses are interpreted. A response the old adapter accepted can become a hold after the upgrade even when no rule changed. See After a tax engine upgrade.
Object names and setup screens vary by release and by provider; treat the names here as the common R12 pattern and confirm against your instance and your provider’s integration guide.