In the middle of coding, I need logic to count the specific entries inside a internal table.
Instead of looping per cycle then saving it into counter variable, I found a better way to achieve that.

LOOP AT itab
TRANSPORTING NO FIELDS WHERE aubel = itab-aubel.
        add 1 to lv_vbeln_counter.
ENDLOOP. 

source: link