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.

When SAP calls the engine

Business eventWhat happensPractical notes
Sales order pricingTax is estimated for the orderUsually not stored in the audit file as final; re-determined later
Billing documentTax is determined for the invoice and postedThis is the call that should land in the engine audit file
Credit and debit memosTax is determined for the adjustmentShould reference the original invoice so jurisdiction and rate mirror it
Purchase orderExpected tax is estimatedShip-to comes from the plant or account assignment
Invoice verificationBilled tax is compared with expected taxDrives use tax accrual and tolerance handling
Goods movements for consumptionUse tax on items taken from exempt stockOften missed; depends on the add-on and configuration
Direct FI postingsTax on manual journal entries with tax codesDecide 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

  1. The SAP document Check the tax code, jurisdiction code and tax conditions on the line, and whether the document was re-priced after creation.
  2. 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.
  3. The engine audit or transaction log Confirm the engine received the same values and see which rules applied.
  4. Master data Customer, vendor, plant and material records behind the values, especially addresses and tax classifications.
  5. 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.