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

LayerWhat it doesWhere 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 adapterPackages 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 engineDecides 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

FlowTypical events that calculate taxWhat a failure looks like
Order to cashOrder 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 payPurchase 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

When something goes wrong: which layer?

SymptomFirst questionLikely layer
Wrong rate or jurisdictionWhat address and date were in the request?Master data or the engine’s rules
Tax hold on an AP invoice with no obvious reasonDid the adapter log an error, or a response it could not map?Adapter or engine configuration
No adapter log rows at allDid eBTax even call the provider for this regime and operating unit?eBTax configuration or data
Process stuck (for example ship confirm), tax looks fineDid 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.