SAP SUBTRACT MULTIPLY DIVIDE ABAP Statements
Get Example source ABAP code based on a different SAP table
ID SUBTRACT
ID MULTIPLY
ID DIVIDE
• SUBTRACT ABAP Statement
• FROM SUBTRACT (obsolete)
• MULTIPLY ABAP Statement
• BY MULTIPLY (obsolete)
• DIVIDE ABAP Statement
• BY DIVIDE (obsolete)
ABAP_SYNTAX_OBS
What does it do?
These statements have the same effect as the statements
that are the same as
The content of
and the result is assigned to
Division by the value 0 is undefined and raises a catchable exception. The only situation where division by 0 does not raise an exception is if the dividend is also 0. Here, the result is set to 0.
Latest notes:
The statements shown here have been fully replaced by
NON_V5_HINTS
ABAP_HINT_END
Example ABAP Coding
The variables
ABEXA 00695
ABAP_EXAMPLE_END
Runtime Exceptions
Catchable Exceptions
Reason for error:
Overflow in arithmetic operation (type Runtime error:
Reason for error:
Integer overflow in addition Runtime error:
Reason for error:
Overflow in arithmetic operation (type Runtime error:
Reason for error:
Division by 0 (type Runtime error:
Reason for error:
Division by 0 (type Runtime error:
Reason for error:
Division by 0 (type Runtime error:
Non-catchable Exceptions
Runtime error:
Reason for error:
Runtime error:
ABAP_NONCAT_END
Return to menu