‎2007 Dec 10 11:00 AM
Hi Gurus,
Please tell me how to set "Cancel search after hits' to 999 in my Z report program
Regards,
‎2007 Dec 10 11:13 AM
select * from ekko into lt_ekko.
append lt_ekko.
if sy-tabix >= 999.
return.
endif.
endselect.
‎2007 Dec 10 11:14 AM
‎2007 Dec 10 11:17 AM
Hi,
DO like this
data : lv_index like sy-tabix.
Loop at itab.
lv_index = sy-tabix.
if lv_index GT '999'.
Exit.
endif.
endloop.
Regards,
pRashant
‎2007 Dec 10 11:30 AM
Hi,
Check out if sy-tabix GT '999'.if its true give exit command.
sy-tabix stores the count the no. of hits as it is a system generated field i syst table.
The code will be same as above said.Hope it will be clear.
Thanks,
Sakthi.C
*Rewards if useful*
‎2007 Dec 10 11:41 AM
Hi All,
Thanks for quick reply ,
but i need to display the 999 into my search popup box by default it is showing '100' so instead for that i use 999 ??
Any suggestion welcome ,
Regards,
‎2007 Dec 10 11:46 AM
‎2007 Dec 10 11:49 AM
When i execute my ZREPORT then there is predefined search buttons Find(CTRL+F) in that there is "Cancel search after hits" so that is by default set to 100 and i needed to change it to 999.
hope now it gives clear idea.
Regards,