F5 702

Document won't balance

FB01, BAPI or IDoc posting fails with "Balance in transaction currency" — debits and credits do not net to zero.

Likely root causes

  1. Rounding: an interface or custom program calculates tax or currency conversion line by line, leaving a small difference.
  2. A substitution changes the amount on one line.
  3. The interface payload is missing a line.

What to inspect

  1. Simulate the document to see which lines break the balance
  2. BAPI_ACC_DOCUMENT_CHECK return messages
  3. GGB1 – active substitutions
  4. The interface payload or IDoc data

Resolution path

  1. Simulate the posting and sum the lines to find the difference.
  2. If it is rounding, fix the calculation at the source: compute the total first, then distribute it.
  3. Post any remaining rounding difference to a defined line instead of dropping it.
  4. If a substitution changes an amount, correct the substitution rule.
  5. Test the fix in QA before production.

ERPClimb is an independent platform and is not affiliated with SAP SE.