You are on page 1of 1

tables:

sflight,
saplane,
scarr.

*********************************************************
types: begin of e_aviones,
planetype type saplane-planetype,
seatsmax type saplane-seatsmax,
end of e_aviones.

data: i_aviones type table of e_aviones.


data: wa_aviones type e_aviones.
*********************************************************
types: begin of e_vuelos,

carrid type sflight-carrid,


connid type sflight-connid,
fldate type sflight-fldate,
planetype type sflight-planetype,
end of e_vuelos.

data: i_vuelos type table of e_vuelos.


data:wa_vuelos type e_vuelos.
***************************************************
selection-screen begin of block b1.
parameters: p_planet type saplane-planetype.
select-options: s_carrid for sflight-carrid.

selection-screen end of block b1.

at selection-screen.
***************************************************
start-of-selection.

select carrid connid fldate planetype


from sflight into table i_vuelos
where carrid in s_carrid.

select planetype seatsmax


from saplane into table i_aviones
where planetype = p_planet.

end-of-selection.
****************************************************
loop at i_aviones into wa_aviones.

write:/ wa_aviones-planetype,
wa_aviones-seatsmax.
endloop.

loop at i_vuelos into wa_vuelos.

write:/ wa_vuelos-connid,
wa_vuelos-fldate,
wa_vuelos-planetype.
endloop.

You might also like