LOOP AT itab INTO wtab.
    WRITE: / wtab-matnr, 20 wtab-werks, 27 wtab-lgort.

    AT END OF werks.
      WRITE: '=== At End Of', sy-tabix.
    ENDAT.
  ENDLOOP.


Serkan AKKAVAK
Bilgisayar Mühendisi
serkurumsal@yandex.com