Symptom
When sales orders are created in SAP S/4HANA Cloud via API from an External E-Commerce Platform, a rounding difference of 0.01 to 0.1 in the gross amount (amount including tax) is observed between the two platforms in the Billing Document.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- The External Platform sends the price excluding tax to SAP as a manual condition.
- SAP calculates the tax internally.
- The final gross amount in SAP does not match External platform due to differences in internal tax rounding logic.
Cause
The discrepancy is typically caused by the standard rounding rules applied to tax condition types in SAP, which may differ from the calculation logic used in External E-Commerce Platforms.
Resolution
- Option 1: Adjust Rounding Rule via SSCUI
- Navigate to SSCUI 101120 ("Set Condition Types for Pricing").
- Select the relevant Tax Condition Type (e.g., TTX1 or custom equivalent).
- Locate the Rounding Rule field and select the desired option: ' ' (Blank): Commercial rounding (0.004 -> 0.00; 0.005 -> 0.01), 'A': Always Round Up (0.001 -> 0.01) or 'B': Always Round Down (0.009 -> 0.00).
- Save your changes and test a new Sales Order.
- Option 2: If a global rounding rule change is not feasible for all scenarios, implement a manual adjustment:
Add a manual adjustment condition type in your Pricing Procedure located immediately after the tax condition. This allows users or the API to pass a manual "delta" value to correct the final gross amount to match External E-Commerce Platform exactly.
See Also
- SAP Community - Rounding of tax values.
- KBA 3663614 - Unexpected rounding behavior for tax condition type TTX1 in purchase orders in sap s/4hana cloud public edition.
Keywords
tax rounding, rounding rule, rounding rule A, rounding rule B, standard rounding, SSCUI 101120, tax condition type, pricing conditions, gross mismatch, e-commerce api, sales order tax, always round up, always round down, manual adjustment condition, rounding difference , KBA , SD-BF-TX-2CL , Taxes (Public Cloud) , Problem
Product
Attachments
| Pasted image.png |
SAP Knowledge Base Article - Public