DIVIDE (ABAP Keyword) introduction & syntax details
DIVIDE n1 BY n2.
Divides the contents of n1 by n2 and
places the result in n1 .
This is equivalent to: n1 = n1 /
DATA: SUM TYPE P, NUMBER TYPE P.
DIVIDE SUM BY
The details regarding conversions and performance
given under COMPUTE apply equally to DIVIDE . Furthermore: Division by 0 is not
allowed, except where 0 / 0 results in 0.
BCD_BADDATA : P field contains no correct BCD
BCD_FIELD_OVERFLOW : Result field is too small (type P
BCD_OVERFLOW : Overflow during arithmetic operation (type P
BCD_ZERODIVIDE : Division by 0 (type P )
Division by 0 (type F )
COMPUTE_INT_DIV_OVERFLOW : Whole number overflow with
COMPUTE_INT_ZERODIVIDE : Division by 0 (type I )
COMPUTE , DIVIDE-CORRESPONDING