Finding a particular value in internal table itab in ABAP



you can use a READ statement in combination with TRANSPORTING NO FIELDS. This will skip the values to be transferred to the work area and avoid the loop. Here is an example:

READ TABLE itab WITH KEY FIELD = 'ABC' TRANSPORTING NO FIELDS.
IF SY-SUBRC = 0.
"Field Match.”
ENDIF.

Advertisements