COMPUTE_BCD_OVERFLOW

low

BCD (Packed Decimal) Arithmetic Overflow

Module: ABAP

What this means

COMPUTE_BCD_OVERFLOW occurs when a packed decimal (BCD / type P) arithmetic operation produces a result that exceeds the defined field length. SAP uses BCD/packed decimal for currency amounts, quantities, and financial figures — ABAP type P. If a calculation multiplies two large currency values and stores the result in a P field that is too short, the overflow triggers this dump. It is also common when importing data from external sources with values larger than the receiving field can accommodate.

Recommended Fix

Check ST22 for the exact variable and calculation. Review the field declaration — increase the length (digits) of the target P field if the current definition is too small for realistic data values. Add range checks before calculations that could overflow. For financial calculations, use CURR fields defined to match the SAP currency table (TCURX) precision rather than hard-coded lengths.

Quick Info

ModuleABAP
Severitylow
Diagnose in
ST22