new page
REPORT zsap4.
TABLES sflights.
DATA my_flights LIKE sflights OCCURS 10 WITH HEADER LINE.
SELECT * FROM sflights INTO TABLE my_flights
ORDER BY PRIMARY KEY.
LOOP AT my_flights.
AT NEW carrid.
NEW-PAGE.
WRITE: / my_flights-carrid.
CLEAR my_flights-seatsocc .
ENDAT.
ADD my_flights-seatsocc TO my_flights-seatsocc.
WRITE / my_flights-seatsocc.
AT END OF carrid.
WRITE / my_flights-seatsocc.
ENDAT.
ENDLOOP.
Comments
Post a Comment