11-25-2007 12:35 PM
hi
i have internal table itab and i wont to now the best way to search value in this table
e.g.
<b>itab</b>
pernr date
123456 10.1.2007
564788 12.2.2007
i wont to check in itab if i have pernr num 123456 what is the best way to do that
from performance isue
regards
11-25-2007 12:44 PM
Hi,
Do like this
Sort itab by pernr.
Read table itab into wa with key pernr = '123456' binary search.
Regards,
Satish
11-25-2007 12:37 PM
hi
read table itab with key pernr = '123456'.
this ll do the best
regards
karthik
11-25-2007 12:44 PM
Hi,
Do like this
Sort itab by pernr.
Read table itab into wa with key pernr = '123456' binary search.
Regards,
Satish
11-25-2007 2:15 PM
sort itab by pernr.
read table itab with table key pernr = '123456' into gwa binary search.
if sy-subrc eq 0.
.....................
endif.
Best regards,
Rebeka