Get Example source ABAP code based on a different SAP table
FIND IN TABLE - options
Short Reference • MATCH LINE FIND IN TABLE • RESPECTING CASE FIND IN TABLE • IGNORING CASE FIND IN TABLE • MATCH OFFSET FIND IN TABLE • MATCH LENGTH FIND IN TABLE • SUBMATCHES FIND IN TABLE • RESULTS FIND IN TABLE
What does it do? The addition MATCH LINE returns the number of the row in which the last substring was found using FIND IN TABLE in data object mlin. The following can be specified for mlin: An existing variable that expects the data type i. An inline declaration DATA(var). The declared variable has the data type i.
If the substring is not found, mlin retains its previous value or stays initial.
The remaining additions used for searching in the individual table rows have the same meaning as in the statement FIND for elementary character strings and byte strings.
If the addition RESULTS is used, the row numbers of each occurrence in the component LINE of the table row in question in result_tab or the row number of the last occurrence are also saved to result_wa and the rows in result_tab are sorted by the columns LINE, OFFSET, and LENGTH.