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



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
Updated on: 2020-01-28T05:36:38+05:30

273 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements