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

Secondary Lists In Interactive Reporting

Former Member
0 Likes
2,275

How many secondary list we can generate in reporting.

Basic List + 20 Secondary lists OR Basic List + 19 Secondary lists ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,848

20 secondary lists and one basic list.

Rgds,

Abhishek

How many secondary list we can generate in reporting.

Basic List + 20 Secondary lists OR Basic List + 19 Secondary lists ?

12 REPLIES 12
Read only

Former Member
0 Likes
1,849

20 secondary lists and one basic list.

Rgds,

Abhishek

Read only

0 Likes
1,848

How can i test this statement ? If you send the sample code, i will test now itself. I am in the lab now

Please send

Read only

0 Likes
1,848

It is diffcult to get a sample code containing 20 secondary lists :).

Rgds,

Abhishek Raj.

Read only

0 Likes
1,848

I think this is a frequent question in the Interview.

How to navigate between the secondary lists ? Can you help me in answering this effectively ?

Read only

0 Likes
1,848

using sy-lsind.

start-of-selection.

write:/ 'this is the source list'.

at line-selection.

if sy-lsind = 1.

write:/ 'this is the first list'.

elseif sy-lsind = 2.

write:/ 'this is the second list'.

elseif sy-lsind = 3.

write:/ 'this is the third list'.

elseif sy-lsind = 4.

write:/ 'this is the fourth list'.

elseif sy-lsind = 5.

write:/ 'this is the fifth list'.

sy-lsind = 1.

endif.

Regards

Abhishek

Read only

0 Likes
1,848

Say Ex: now the source list (Basic LIst got displayed). Now if we click on Source list , we will navigate to first list,

Similarly now we are in the Fourth List. Now i want to got to first list ?

How ?

Read only

Former Member
0 Likes
1,848

Hi,

Do the below code and check your answer.

WRITE:/ `Basic List`.

AT LINE-SELECTION.

WRITE:/ `Secondary List = `, sy-lsind.

sy-lsind = sy-lsind + 1.

Regards,

kumar.

Read only

0 Likes
1,848

How this works ? I am not sure ......

Read only

0 Likes
1,848

Hi,

at line selection event is used for displaying the

secondary list on the basic list.this is work on the basic

list and the secondary list.suppose if u click on the basic

list the detail information is opened into the secondary list.

by using the key words like double click or function key F2.

Regards,

Kumar.

Read only

0 Likes
1,848

Say Ex: using the below code , after four clicks i am now in the Fourth list.

-


start-of-selection.

write:/ 'this is the source list'.

at line-selection.

if sy-lsind = 1.

write:/ 'this is the first list'.

elseif sy-lsind = 2.

write:/ 'this is the second list'.

elseif sy-lsind = 3.

write:/ 'this is the third list'.

elseif sy-lsind = 4.

write:/ 'this is the fourth list'.

elseif sy-lsind = 5.

write:/ 'this is the fifth list'.

sy-lsind = 1.

endif.

-


Now we are in the Fourth List. Now i want to got to first secondary list ?

According to your code ,

-


AT LINE-SELECTION.

WRITE:/ `Secondary List = `, sy-lsind.

sy-lsind = sy-lsind + 1.

-


How my requirement is fullfilled ?

Can you explain how the above code works if i click on the fourth list ?

Please kindly explain me .........

Read only

Former Member
0 Likes
1,848

Hi,

check out this code ... copy-paste.......then.........

data : it type STANDARD TABLE OF vbak,

wa type vbak.

data : ctr TYPE sy-lsind.

data : str(20) type c.

select * from vbak into table it UP TO 10 ROWS.

PERFORM list.

at LINE-SELECTION.

perform list.

form list.

set TITLEBAR 'LIST' with str.

ctr = sy-lsind.

move ctr to str.

loop at it into wa.

skip 1.

write wa-vbeln.

endloop .

endform.

.........................set titlebar "LIST' as 'List details : &'.

(double-click on 'LIST'......

create object......

set 'TITLE' as 'List details : &'.

activate and run.......)

continue double-clicking and get solved !!!!!!!!!!!

ANSWER : 20 detailed and 1 basic

(sy-lsind for basic list is not set )

Reward points if helpful....................

Edited by: Akashdeep Basu on May 7, 2008 7:10 AM

Edited by: Akashdeep Basu on May 7, 2008 7:12 AM

Read only

Former Member
0 Likes
1,848

I Myself solved the issue.