Professional Documents
Culture Documents
3
3
do 8 TIMES.
APPEND wa to it.
CLEAR wa.
append wa to it.
CLEAR wa.
append wa to it.
CLEAR wa.
else.
wa-carrier_id = 'LH'.
wa-connection_id = '0941'.
wa-seats_occu = 195.
wa-max_seats = 200.
append wa to it.
CLEAR wa.
ENDIF.
ENDDO.
do 2 times.
if sy-index = 1.
char = 'DL'.
else.
char = 'UA'.
ENDIF.
if sy-subrc eq 0.
DO 2 TIMES.
APPEND wa to it1.
ENDDO.
ENDIF.
ENDDO.
write: / wa-carrier_id,wa-connection_id,wa-seats_occu,wa-max_seats.
ENDLOOP.
***************************************************************************
(b)
do 8 TIMES.
APPEND wa to it.
CLEAR wa.
append wa to it.
CLEAR wa.
append wa to it.
CLEAR wa.
else.
wa-carrier_id = 'LH'.
wa-connection_id = '0941'.
wa-seats_occu = 195.
wa-max_seats = 200.
append wa to it.
CLEAR wa.
ENDIF.
ENDDO.
sort it by carrier_id.
write: / wa-carrier_id,wa-connection_id,wa-seats_occu,wa-max_seats.
ENDLOOP.