*Interactive report Using SY-LSIND *
report zinteractive_rep1 no standard page heading line-count 15(2).
data : it_spfli type table of spfli,
wa_spfli type spfli.
select-options : p_carrid for wa_spfli-carrid.
start-of-selection.
select * from spfli into table it_spfli where carrid in p_carrid.
end-of-selection.
loop at it_spfli into wa_spfli.
write wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-countryfr,
wa_spfli-countryto,
wa_spfli-cityfrom,
wa_spfli-cityto,
wa_spfli-airpfrom,
wa_spfli-airpto.
endloop.
top-of-page.
write ‘flight details’.
uline.
end-of-page.
write ‘thanks visit again’.
uline.
at line-selection. ” event triggers when user double clicks on the “basic list
case sy-lsind. ” sy-lsind – list index system variable
when ‘1’.
write ‘this is secondary list number =’, sy-lsind.
when ‘2’.
write ‘this is secondary list number =’, sy-lsind.
endcase.
top-of-page during line-selection.
case sy-lsind.
when ‘1’.
write ‘details from sflight table’.
when ‘2’.
write ‘details from sbook table’.
endcase.
uline.
Output-



