Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Processing Internal Data →  Internal Tables →  Processing Statements for Internal Tables →  FIND IN TABLE itab 

FIND IN TABLE - options

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


... [{RESPECTING|IGNORING} CASE] 
    [MATCH COUNT  mcnt]
    { {[MATCH LINE   mlin]
       [MATCH OFFSET moff]
       [MATCH LENGTH mlen]}
    | [RESULTS result_tab|result_wa] }
    [SUBMATCHES s1 s2 ...] ...

Effect

The MATCH LINE addition saves the number of the row in which the last substring was found (using FIND IN TABLE) to the data object mlin. mlin expects a variable of the data type i. If the substring is not found, mlin keeps its previous value.

For searches in individual table rows, the other additions have the same meaning as in the statement FIND for elementary character strings or byte strings.

If the RESULTS addition is used, the row numbers of each find are saved in the component LINE of the matching table row of result_tab or the row number of the last find is saved in result_wa and the rows of result_tab are sorted by the columns LINE, OFFSET, and LENGTH.