Interactive Report – 2

*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-

c9
c8
c10
s11

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s