Abap İnternal Tablo
&———————————————————————
& Report ZMK_INTERNAL_11_2
*&———————————————————————
&
*&———————————————————————
REPORT ZMK_INTERNAL_11_2.
*Structure tipi olustur
TYPES: BEGIN OF OGRENCI,
OGRENCIID LIKE ZOGRENCI-OGRENCIID,
ADI LIKE ZOGRENCI-ADI,
SOYADI LIKE ZOGRENCI-SOYADI,
TCKIMLIKNO LIKE ZOGRENCI-TCKIMLIKNO,
OGRENCINO LIKE ZOGRENCI-OGRENCINO,
END OF OGRENCI.
*Itab tipi olustur
TYPES ITAB TYPE STANDARD TABLE OF OGRENCI.
DATA: GS_OGRENCI TYPE OGRENCI,
GT_ITAB TYPE ITAB.
*Tablomdaki degerleri itabın icine at
SELECT * FROM ZOGRENCI
INTO CORRESPONDING FIELDS OF TABLE GT_ITAB.
END-OF-SELECTION.
*Itabi yazdir
WRITE 20 ‘TABLO DEGERLERIMIZ’.
ULINE.
LOOP AT GT_ITAB INTO GS_OGRENCI.
WRITE:/10 GS_OGRENCI-OGRENCIID,
GS_OGRENCI-ADI,
GS_OGRENCI-SOYADI,
GS_OGRENCI-TCKIMLIKNO.
ENDLOOP.