rspec/rules/S1670/abap/rule.adoc

26 lines
533 B
Plaintext

Internal tables can quickly become a source of performance problems if not accessed correctly, ``++SORTED++`` and ``++HASHED++`` tables should always be accessed with the appropriate key or partial key.
== Noncompliant Code Example
----
READ TABLE it INTO work_area INDEX 1.
----
== Compliant Solution
----
READ TABLE it INTO work_area WITH KEY color = 'RED'.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]