DATA: gwa_employee TYPE zemployee,
gt_employee TYPE TABLE OF zemployee.
SELECT * FROM zemployee INTO TABLE gt_employee.
WRITE:/ 'Display all the records in the internal table' COLOR 5.
LOOP AT gt_employee INTO gwa_employee.
WRITE:/ gwa_employee-id, gwa_employee-name, gwa_employee-place.
ENDLOOP.
SKIP.
WRITE:/ 'Display only first 2 records in the internal table' COLOR 5.
LOOP AT gt_employee INTO gwa_employee TO 2.
WRITE:/ gwa_employee-id, gwa_employee-name, gwa_employee-place.
ENDLOOP.
SKIP.
WRITE:/ 'Dont Display first 2 records in the internal table' COLOR 5.
LOOP AT gt_employee INTO gwa_employee FROM 3.
WRITE:/ gwa_employee-id, gwa_employee-name, gwa_employee-place.
ENDLOOP.
SKIP.
WRITE:/ 'Display only 2nd & 3rd records in the internal table' COLOR 5.
LOOP AT gt_employee INTO gwa_employee FROM 2 TO 3.
WRITE:/ gwa_employee-id, gwa_employee-name, gwa_employee-place.
ENDLOOP.
SKIP.
WRITE:/ 'Display records based on condition' COLOR 5.
WRITE:/ 'Display records where place is LONDON' COLOR 5.
LOOP AT gt_employee INTO gwa_employee WHERE place = 'LONDON'.
WRITE:/ gwa_employee-id, gwa_employee-name, gwa_employee-place.
ENDLOOP.
Serkan AKKAVAK
Bilgisayar Mühendisi
serkurumsal@yandex.com
Social Plugin