Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Interactive list

lakshminarasimhan_n4
Active Contributor
0 Likes
812

Hi abapers,

What is interactive list? What are the elements used for building them? Please provide sample code...

Regards,

Lakshminarasimhan.N

6 REPLIES 6
Read only

Former Member
0 Likes
763

Hi,

Intercative Lists are the lists with which user can interact

It gives further lists.

Various ways of creating interactive list are through

1. At Line-selection

2. At User-Command

3. At PFnn

Ex:

WRITE:/ 'HI GUYS'.

AT LINE-SELECTION.

WRITE:/ 'YOU HAVE SELECTED A LINE'.

In the above example, first it will display "HI GUYS".

When you double click on that line, it will display a new list .

At max you can display upto 20 secondary lists.

Reward if helpful.

Read only

Former Member
0 Likes
763

when u select some line it gives more detail list dats call interactive list..

u can make max 20 list with one main list.

Read only

Former Member
0 Likes
763

hi,

here is details of interactive list.

interactive report allows the user to participate actively in retrieving and presenting the data during the session.

Instead of one extensive list and detailed list, with interactive reporting. you can create a condensed basic list from which the user can call detailed information by postioning the cursor and entering commands.

interactive reporting thus reduces information retrieval to data actually required. report itself generates list.

nteractive report/list means any input(double click or single click or user command ) on the screen will results a new screen with the corresponding fields....this is upto 20 levels only check this..

report .

start-of-selection.

write:/ 'this is the source list'.

at line-selection .

if sy-lsind = 1 .

write:/ ' this is the 1st list'.

elseif.

if sy-lsind = 2 .

write:/ ' this is the 2 list'.

if sy-lsind = 3 .

write:/ ' this is the 3 list'.

if sy-lsind = 4 .

write:/ ' this is the 4 list'.

if sy-lsind = 5 .

write:/ ' this is the 5 list'.

if sy-lsind = 6 .

write:/ ' this is the 6 list'.

if sy-lsind = 7 .

write:/ ' this is the 7 list'.

if sy-lsind = 8.

write:/ ' this is the 8 list'.

if sy-lsind = 9 .

write:/ ' this is the 9 list'.

if sy-lsind = 10 .

write:/ ' this is the 10 list'.

endif.

Interactive Reports

As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.

And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.

We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).

Events associated with Interactive Reports are:

AT LINE-SELECTION

AT USER-COMMAND

AT PF<key>

TOP-OF-PAGE DURING LINE-SELECTION.

HIDE statement holds the data to be displayed in the secondary list.

sy-lisel : contains data of the selected line.

sy-lsind : contains the level of report (from 0 to 21)

Interactive Report Events:

AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.

AT PFn: For predefined function keys...

AT USER-COMMAND : It provides user functions keys.

TOP-OF-PAGE DURING LINE-SELECTION :top of page event for secondary list.

MAX we can go for 20 SECONDARY LIST AND ONE BASIC LIST TOTAL 21

sy-lsind EQ 5.

sy-lsind = 9.

endif.

Ex:

REPORT demo_list_interactive_2 .

START-OF-SELECTION.

WRITE: 'Basic List, SY-LSIND =', sy-lsind.

AT LINE-SELECTION.

IF sy-lsind = .5

sy-lsind = 9.

ENDIF.

WRITE: 'Secondary List, SY-LSIND =', sy-lsind.

I just gave an example at this link for filling and retrieving data to a text editor.

hope this is helpful for you.

regards,

Vipul

Read only

Former Member
0 Likes
763

Interactive lists - Users interacting with the list.

We call the First list as Basic list.From basic list we can create 20 more lists.That we call it as Secondary lists.

We can view secondary lists by double clicking the reqd field from the displayed list.

We have to write the code for these using the events listed below.

At Line-selection.

At user-command.

At PFn.

Top-of-page During Line-Selection

Read only

Former Member
0 Likes
763

HI ,

To make the report more details we use interactive reports

.

To make report interactive we have to use 3 statements

1) At line-selection

or2) At user-command

or3) At Pf-key ..

Reward points if useful

Read only

Former Member
0 Likes
763

hi check this simple interactive report..

http://www.saptechnical.com/Tutorials/ABAP/InteractiveReport/Demo.htm

regards,

venkat