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

Avoid dump when sy-lsind is 21

Former Member
0 Likes
770

Hi,

How can we avoid dump when sy-lsind is 21?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
684

if sy-lsind gt 20.

sy-lsind = 1.

endif.

6 REPLIES 6
Read only

Former Member
0 Likes
685

if sy-lsind gt 20.

sy-lsind = 1.

endif.

Read only

0 Likes
684

Hi,

I tried what you said, but it is not working.

Thanks and Regards,

V.K.

Read only

0 Likes
684

put condition at end list when it is sy-linds is 20... bcoz

Index of the list currently being created. The basic list has SY-LSIND = 0, detail lists have SY-LSIND > 0. The field is automatically increased by one in each interactive list event. You may change the value of SY-LSIND yourself in the program to enable you to navigate between lists. Changes to SY-LSIND do not take effect until the end of a list event. It is therefore a good idea to place the relevant statement at the end of the corresponding processing block

Read only

Former Member
0 Likes
684

hi,

you can not exceed your limit of sy-slind gretar than 21. other wise you will get dump.

now take one global variable with data type i.

now every time increment this variable according to click on interactive report.

now on check that if variable value is 20. than give warning messge on double click when your variable value is 20 and do not proceed futher to show interactive report.

You can't set the value or reset the value of system variable Sy-slind. So on sy-slind you have to stop.

Regards,

Vipul

Read only

Former Member
0 Likes
684

hi do like this..

report message-id zmsg.

start-of-selection .

write:/ 'this is the basic list'.

at line-selection.

case sy-lsind .

when 1.

write:/ '1st list'.

when 2.

write:/ '2nd list'.

when 3.

write:/ '3st list'.

when 4.

write:/ '4st list'.

when 5.

write:/ '5st list'.

when 6.

write:/ '6st list'.

when 7.

write:/ '7st list'.

when 8.

write:/ '8st list'.

when 9.

write:/ '9st list'.

when 10.

write:/ '10st list'.

when 10.

write:/ '10st list'.

when 11.

write:/ '11st list'.

when 12.

write:/ '12st list'.

when 13.

write:/ '13st list'.

when 14.

write:/ '14st list'.

when 15.

write:/ '15st list'.

when 16.

write:/ '16st list'.

when 17.

write:/ '17st list'.

when 18.

write:/ '18st list'.

when 19.

write:/ '19st list'.

when 20.

write:/ '20st list'.

sy-lsind = 1.

message e000 with 'the list process is not possible beyond'.

endcase .

regards,

venkat

Read only

0 Likes
684

Hi,

Thanks for all your replies.

Thanks and Regards,

V.K.