ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Numeric Calculations →  Statements for Numeric Calculations → 

DIVIDE  Syntax Diagram

Short Reference

Syntax

DIVIDE dobj1 BY dobj2.

Effect

This statement has the same effect as the statement

dobj1 = dobj1 / dobj2.

The content of dobj1 is divided by the content of dobj2 and the result is assigned to dobj1. The data objects dobj1 and dobj2 have to be numeric. Predefined functions or functional methods cannot be specified. The calculation type is determined like an arithmetic expression.

Programming Guidelines

Notes

Exceptions

Catchable Exceptions

CX_SY_ARITHMETIC_OVERFLOW

CX_SY_CONVERSION_OVERFLOW

CX_SY_ZERODIVIDE

Non-Catchable Exceptions