rspec/rules/S1501/abap/rule.adoc

16 lines
389 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Whenever more than one line needs to be read, inserted or deleted from a database table, it is more efficient to work with an internal table than to read, insert or delete the lines one by one inside a loop.
== Noncompliant Code Example
----
LOOP AT TAB INTO TAB_WA.
INSERT INTO CUSTOMERS VALUES TAB_WA.
ENDLOOP.
----
== Compliant Solution
----
INSERT CUSTOMERS FROM TABLE TAB.
----