CRITICAL
Rule Definition
For systems running on HANA, SAP recommends to keep the result sets small. Executing Open SQL queries without any condition leads to database table full scan and will decrease the performance of application programs.
Remediation
Add conditions in WHERE clause to make the result set as lower as possible.
Violation Code Sample
data: ld_ebeln type ekko-ebeln.
update EKKO set ERNAM = sy-uname.
Fixed Code Sample
data: ld_ebeln type ekko-ebeln.
update EKKO set ERNAM = sy-uname
where ebeln = ld_ebeln.
Reference
SAP - Considerations for Custom ABAP Code When Migrating to SAP HANA - Best Practices and Recommendations
Related Technologies
Technical Criterion
HA - unexpected workload mitigation
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.