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

ABAP

Former Member
0 Likes
1,009

Hi Gurus,

Please tell me how to set "Cancel search after hits' to 999 in my Z report program

Regards,

7 REPLIES 7
Read only

Former Member
0 Likes
986
select * from ekko into lt_ekko.

  append lt_ekko.
  if sy-tabix >= 999.
    return.
  endif.
endselect.
Read only

Former Member
0 Likes
986

Use UP TO 999 in select query.

Regards,

Satish

Read only

former_member386202
Active Contributor
0 Likes
986

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

Read only

Former Member
0 Likes
986

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*

Read only

0 Likes
986

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,

Read only

0 Likes
986

Can You write how You're calling that popup box ?

Read only

0 Likes
986

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,