When several lines must be inserted/updated into an internal table, instead of doing those changes line by line, mass operations should be used
because they offer better performance by design.
This rule raises an issue when a single line operation like APPEND
, CONCATENATE
, and INSERT
is performed on
an internal table in a loop.
Noncompliant code example
LOOP AT ITAB1 INTO WA.
APPEND WA TO ITAB2.
ENDLOOP.
Compliant solution
APPEND LINES OF ITAB1 TO ITAB2.