2008 May 07 3:54 AM
How many secondary list we can generate in reporting.
Basic List + 20 Secondary lists OR Basic List + 19 Secondary lists ?
2008 May 07 3:56 AM
2008 May 07 3:56 AM
2008 May 07 4:02 AM
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
2008 May 07 4:06 AM
It is diffcult to get a sample code containing 20 secondary lists :).
Rgds,
Abhishek Raj.
2008 May 07 4:07 AM
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 ?
2008 May 07 4:09 AM
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
2008 May 07 4:13 AM
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 ?
2008 May 07 4:18 AM
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.
2008 May 07 4:21 AM
2008 May 07 4:32 AM
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.
2008 May 07 5:00 AM
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 .........
2008 May 07 6:07 AM
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
2008 Jul 15 4:50 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |