INCLUDE
ARTICLE
No summing-up of memory positions
The variants ADD THEN ... UNTIL ... and ADD FROM ... TO ...
of the statement ADD are not allowed in ABAP Objects.
In ABAP Objects an error message is issued in the following cases:
ADD f1 THEN f2 UNTIL fn GIVING sum.
Reason:
The functionality of these statements depends on the internal structure
of the program's working memory. Such operations should be avoided. As
an alternative, you can use the statement ASSIGN
with the addition INCREMENT .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved