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.
Updated on: 2019-12-09T06:20:33+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements