CRITICAL
Rule Definition
For performance reason, it is better to avoid accessing database in loops.
Violation Code Sample
loop at i_incl.
select single * from trdir into s_trdir
where name = i_incl-rep
and cdat in s_cdat
and udat in s_udat.
if sy-subrc ne 0.
continue.
endif.
endloop
Reference
SAP
Related Technologies
Technical Criterion
CWE-1084 - Invokable Control Element with Excessive File or Data Access Operations
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.