*& lt - local table
*& lty - local table type
*& lv - local value
*& local bir type oluşturma.
" 10 karakter uzunluğunda veri tipi tanımlama
TYPES: lty_musteri_ismi TYPE c LENGTH 10,
lv_calisan_sayisi TYPE i,
lv_number TYPE n LENGTH 6,
lv_date TYPE datum,
lv_time TYPE t.
*** 5 alanlı bir structure bildirimi, yukarıda tanımlanan tipler ile..
TYPES : BEGIN OF customer_structure,
name TYPE lty_musteri_ismi,
n_musteri TYPE lv_calisan_sayisi,
ucret TYPE lv_number,
duzenlenme_tarihi TYPE lv_date,
duzenlenme_zamani TYPE lv_time,
END OF customer_structure.
*& local bir type ' ı repository(depo)' den alma
* sflight repository' de bulunan bir tablo.
TYPES : lty_ucuslar TYPE sflight.
"repository'den bir tablonun internal tablosu (lt_ucus) üretilmiştir.
" repository'den bir tablonun internal structure (ls_ucus)
DATA: lt_ucus TYPE TABLE OF lty_ucuslar,
ls_ucus TYPE lty_ucuslar .
TYPES : lty_fly_date TYPE sflight-fldate. " fly_date <- sflight-fldate den alıyor veri type'ini
" sbook bir global tablo, bu tablodan tablo type oluşturuyoruz.
TYPES: BEGIN OF flight_booking,
carrid TYPE sbook-carrid,
connid TYPE sbook-connid,
fldate TYPE sbook-fldate,
bookid TYPE sbook-bookid,
customid TYPE sbook-customid,
END OF flight_booking.
BREAK-POINT.
Yorum bırakın