Application Development 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: 

can we create more than 20 secondary lists

Former Member
0 Kudos

hi

can we create more than 20 secondary lists

if we can how

thankx

venkat

13 REPLIES 13

Former Member
0 Kudos

Hi

Are you speaking about ABAP list?

Every time you write an abap list in the event AT SELECTION-SCREEN and/or USER-COMMAND you'll create a secondary list, but there's a limit, I don't rember which the max number of list you can create, after a dump should occur.

Max

former_member181962
Active Contributor
0 Kudos

Hi venkat,

20 is the maximum limit.

But what you can do is to call another report program when you reach the 20th and that way you can have 20 more lists.

Regards,

Ravi

0 Kudos

hi ravi is this correct

i faced this question in of the interviews i gave tha same reply but they did not agree

thanks

venkat

Former Member
0 Kudos

Hi venkat,

1. If u are using ALV list using FM,

then we can go to any level.

(Bcos this concept does not use normal list concept,

it has got its own screen)

regards,

amit m.

0 Kudos

hi

is not possible in normal abap list

thanks venkat

0 Kudos

Hi again,

1. its not possible.

2. to get a taste of it,

just copy paste the program.

(then go on double-clicking the

number, and it will generate

secondary list till 20.)

After that it will give error.

3.

report abc.

write sy-listi.

at line-selection.

write sy-listi.

regards,

amit m.

0 Kudos

Hi

No 20 is the limit as the guy said you, anyway you can reset the secondary list index, in this way your list'll always be in the primary list.

at selection-screen.

write: 'Bye Bye'.

sy-LSIND = sy-LSIND - 1.

Max

Message was edited by: max bianchi

0 Kudos

hi

thank u all

venkat

0 Kudos

Venkat,

v can create maximum upto 20 secondary lists

but the generation of the 21st secondary list is possible,

there is a possibility to do

for this v have to move the control back to the first after finish of 20th secondary list

if v go in the sequence it is impossible to display the 21st secondary list even though u designed the logic for it, it gives error

the only possibility as i said is u have to move the controle back and v can display the 21st secondary list.

i think as per knowledge this is my explanation

Regards

Naveen

0 Kudos

hi venkat yes u can create more than 20 lists by making sy-lsind = 1 after 20 lists but it is overwrite the first secondary list.

thanks......

Former Member
0 Kudos

Hi Venkat,

20 is the maximum limit in normal lists..

U cant exceed that or else u would get a dump.

Call another program after you reach 20 list and continue.

Regards,

Tanveer.

Please mark helpful answers.

Former Member
0 Kudos

hi

in normal reporting u cant have more than 20,the maximum secondary lists u can have is 20 only..

thanks,

priya

former_member188685
Active Contributor
0 Kudos

Hi,

what do you want to Do exactly. Is it really a requirement. No user likes this kind of Requirement. Instead they will Go for Another Report(Interactive). any way you can achieve this Using ALV you can do more than 20 interactive lists.

Regards

vijay