SAP NetWeaver AS ABAP Release 750, ©Copyright 2016 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Reference → Processing Internal Data → Numeric Calculations → Statements for Numeric Calculations →
SUBTRACT
Syntax
SUBTRACT dobj1 FROM dobj2.
Effect
This statement has the same effect as the statement
The content of dobj1 is subtracted from the content of dobj2 and the result is assigned to dobj2. The data objects dobj1 and dobj2 have to be numeric. Only data objects can be specified, no calls or other expressions. The calculation type is determined like an arithmetic expression.
Programming Guideline
Note
One obsolete form of the statement SUBTRACT is SUBTRACT-CORRESPONDING.
Handleable Exceptions
CX_SY_ARITHMETIC_OVERFLOW
CX_SY_CONVERSION_OVERFLOW
Non-Handleable Exceptions