2008 Apr 15 8:32 PM
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
2008 Apr 15 8:37 PM
check the condition:
IF SY-LISTI GT 20.
LEAVE PROGRAM ( Or give a message )
Endif.
Thanks,
SKJ
2008 Apr 15 8:46 PM
2008 Apr 15 8:49 PM
Then it should be...
IF SY-LISTI GE 20.
LEAVE PROGRAM
ENDIF.
Greetings,
Blag.
2008 Apr 15 8:57 PM
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
2008 Sep 16 11:28 AM