ABAP – Reading internal table in reverse

Internal table can be read in reverse order by t=using the following code

 

DESCRIBE TABLE itab LINES no_lines.
DO no_lines times.
  READ TABLE itab INDEX no_lines.
  WRITE: /001 itab-f1.
  no_lines = no_lines - 1.
ENDDO.
Here no_lines contains the number of entries in that internal table itab.

0 Comments

Leave A Reply