Adding a condition using SQL or an ABAP program and difference in performance

SAPABAPMySQL

As there are just 500, there would not be much difference among both options. You can use either of them.

The ABAP code is as below −

LOOP AT lt_table TRANSPORTING NO FIELDS WHERE exp > 5
   ADD 1 TO lt_counter
ENDLOOP
raja
Updated on 28-Jan-2020 05:36:38

Advertisements