SAP ADD-CORRESPONDING ABAP Statements
Get Example source ABAP code based on a different SAP table
ID ADD-CORRESPONDING
• ADD-CORRESPONDING ABAP Statement
• TO ADD-CORRESPONDING (obsolete)
• SUBTRACT-CORRESPONDING ABAP Statement
• FROM SUBTRACT-CORRESPONDING (obsolete)
• MULTIPLY-CORRESPONDING ABAP Statement
• BY MULTIPLY-CORRESPONDING (obsolete)
• DIVIDE-CORRESPONDING ABAP Statement
• BY DIVIDE-CORRESPONDING (obsolete)
ABAP_SYNTAX_OBS
What does it do?
These statements, which are forbidden in classes, add, subtract, multiply, or divide structures by component. Structures must be specified for
The names are compared, as in the statement
is executed internally, and the appropriate conversions are performed, if necessary. In complex structures, the names of the field pairs in question must be completely identical at all hierarchical levels.
Latest notes:
These statements are error-prone because, particularly in complex structures, it is not easy to check that identically named components have the data type and content necessary for a numeric operation.
ABAP_HINT_END
Example ABAP Coding
The components
ABEXA 00002
ABAP_EXAMPLE_END
Runtime Exceptions
Catchable Exceptions
Reason for error:
Overflow in addition, type I in the additions Runtime error:
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
Reason for error:
Runtime error:
ABAP_NONCAT_END
Return to menu