How SAP calls an external tax engine
A practical walk-through of the SAP side of an external tax integration: the tax procedure, the jurisdiction code, the business events that trigger a call, what the engine returns, and where to look when something goes wrong.
By Herb Park, Clarent Technologies
How tax gets routed to the engine
SAP calculates tax through a tax calculation procedure assigned to each country. For US sales and use tax with an external engine, the country’s procedure is set up for jurisdiction-code based, external calculation, and tax codes indicate that the amount should be determined externally. When a document is priced or posted, SAP collects the tax-relevant data for each line and hands it to the external interface, which the engine vendor’s add-on connects to the engine.
- Tax procedure: defines the tax conditions and that calculation is external.
- Tax codes: a small set marking lines as taxable via the engine, plus exceptions such as exempt or self-assessed codes.
- Jurisdiction codes: identify state, county, city and district; derived from addresses on customers, plants and other master data.
- Interface configuration: the connection (typically an RFC destination for on-premise integrations) and the vendor add-on settings that map SAP fields to the engine request.
When SAP calls the engine
| Business event | What happens | Practical notes |
|---|---|---|
| Sales order pricing | Tax is estimated for the order | Usually not stored in the audit file as final; re-determined later |
| Billing document | Tax is determined for the invoice and posted | This is the call that should land in the engine audit file |
| Credit and debit memos | Tax is determined for the adjustment | Should reference the original invoice so jurisdiction and rate mirror it |
| Purchase order | Expected tax is estimated | Ship-to comes from the plant or account assignment |
| Invoice verification | Billed tax is compared with expected tax | Drives use tax accrual and tolerance handling |
| Goods movements for consumption | Use tax on items taken from exempt stock | Often missed; depends on the add-on and configuration |
| Direct FI postings | Tax on manual journal entries with tax codes | Decide which postings should call the engine at all |
What goes out, what comes back
For each line SAP passes company code, document type, dates, customer or vendor, material or service, amounts, and the jurisdiction codes or addresses for ship-from and ship-to. The add-on may enrich this with values from customer, material or plant master data and from user exits. The engine returns tax per jurisdiction level, which SAP posts through its tax conditions to the tax accounts.
Where to look when it goes wrong
- The SAP document Check the tax code, jurisdiction code and tax conditions on the line, and whether the document was re-priced after creation.
- The integration log Vendor add-ons provide a log of requests and responses on the SAP side. Confirm the call happened and what was sent.
- The engine audit or transaction log Confirm the engine received the same values and see which rules applied.
- Master data Customer, vendor, plant and material records behind the values, especially addresses and tax classifications.
- Recent changes Transports, add-on upgrades, content releases and engine configuration changes around the date the behavior changed.
Moving to S/4HANA? Read the S/4HANA cutover checklist next; it covers the decisions above that are hard to change after go-live.