SAP ADD-CORRESPONDING ABAP Statements
Warning: Undefined variable $saptab in /customers/b/9/9/trailsap.com/httpd.www/abap-statements/index.php on line 46Get Example source ABAP code based on a different SAP table
Standard SAP Help for ADD-CORRESPONDING
ADD-CORRESPONDING
• ADD-CORRESPONDING ABAP Statement
• TO ADD-CORRESPONDING (obsolete)
ABAP Syntax(Obsolete)
What does it do? This statement, which is not allowed in classes, adds structures by component. Structures must be specified for
The names are compared, as in the statement
Latest notes:This statement is error-prone because, particularly in complex structures, it is not easy to check that components of the same name have the data type and content necessary for a numeric operation.
Example ABAP Coding
The components
x TYPE i,
y TYPE i,
z TYPE i,
END OF struc1,
BEGIN OF struc2,
a TYPE i,
b TYPE i,
x TYPE p LENGTH 8 DECIMALS 0,
y TYPE p LENGTH 8 DECIMALS 0,
END OF struc2.
...
ADD-CORRESPONDING struc1 TO struc2.
Runtime Exceptions
Catchable Exceptions
Reason for error:
Overflow while adding, type I in additions Runtime error:
Reason for error:
Overflow in arithmetic operation (type Runtime error:
Reason for error:
Integer overflow while adding Runtime error:
Reason for error:
Overflow in arithmetic operation (type Runtime error:
Non-catchable Exceptions
Reason for error:
Access to data outside of the range specified in the Runtime error:
Reason for error:
Invalid access to tables, strings, field references, or object references within the range specified by the addition Runtime error:
Reason for error:
Runtime error:
Return to menu