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

how can i avoid displaying runtime error in intractive report

Former Member
0 Likes
811

hi gurus

my question is, in interactive report when i reach 20th secondary list after that am getting runtime error when i click again. So i wanted to know how can i avoid that run time error.

regars

imran

hi gurus

my question is, in interactive report when i reach 20th secondary list after that am getting runtime error when i click again. So i wanted to know how can i avoid that run time error.

regars

imran

5 REPLIES 5
Read only

Former Member
0 Likes
791

check the condition:

IF SY-LISTI GT 20.

LEAVE PROGRAM ( Or give a message )

Endif.

Thanks,

SKJ

Read only

0 Likes
791

hi skj

i tried but again am getting the same thing.

Read only

0 Likes
791

Then it should be...


IF SY-LISTI GE 20.
LEAVE PROGRAM
ENDIF.

Greetings,

Blag.

Read only

Former Member
0 Likes
791

Hi Imran,

Basically we can have one basic list and 20 interactive lists.

Once when we reached to 20th list then it goes to shortdump.

So, inorder to avoid that we can modify the system field

SY-LSIND.

Just see this example and try this. I hope this will be useful for you.

REPORT ZSAMPLE1111.

data: begin of itab occurs 0,

matnr like mara-matnr,

mtart like mara-mtart,

mbrsh like mara-mbrsh,

end of itab.

data: begin of jtab occurs 0,

maktx like makt-maktx,

spras like makt-spras,

end of jtab.

select matnr mtart mbrsh into table itab from mara up to 10 rows.

loop at itab.

write:/ itab-matnr, itab-mtart, itab-mbrsh.

hide itab-matnr.

endloop.

at line-selection.

select maktx spras into table jtab from makt where spras = 'EN' .

case sy-lsind.

when '1'.

loop at jtab.

write:/ jtab-maktx, jtab-spras.

endloop.

when '20'. * changes see here.

sy-lsind = 1.

when others .

write:/ 'name',sy-lsind.

endcase.

I hope this will be helpful for you.

<REMOVED BY MODERATOR>

Cheers,

Swamy kunche

Edited by: Alvaro Tejada Galindo on Apr 15, 2008 4:01 PM

Read only

Former Member
0 Likes
791

clear