COMPUTE_INT_ZERODIVIDE

low

Division by Zero in Arithmetic Statement

Module: ABAP

What this means

COMPUTE_INT_ZERODIVIDE fires when an ABAP arithmetic expression divides by zero. This typically occurs in calculation routines, percentage computations, or rate derivations where the divisor is derived from data rather than a constant. Common in: pricing routines dividing by quantity when the order line has zero quantity; reporting programs computing ratios when the denominator is zero for a new period; or custom calculations that do not guard against zero-value inputs from user selections or master data.

Recommended Fix

Check ST22 for the exact line. Add a zero-check before the division: IF lv_divisor = 0. Handle the zero case explicitly (return zero, skip the record, or use a default value) rather than letting it dump. For standard program dumps, check for OSS notes — many division by zero errors in standard code are corrected via notes.

Quick Info

ModuleABAP
Severitylow
Diagnose in
ST22