2012 Jun 23 6:19 AM
hi binary searchn not working
data itab type table of sflight .
data itab1 type sflight .
sort itab .
read table itab with table key carrid = 'AA' into itab1 binary search .
Program Z
The addition "BINARY SEARCH" must not be used with index access or
general table search. .
Moderator Message: Please read SAP help.
Message was edited by: Kesavadas Thekkillath
2012 Jun 23 7:12 AM
Hi,
If you have such basic doubts then please go through the f1 documentation for statement. Here your construct of the statement is completely wrong
READ TABLE lt_table INTO ls_table
WITH KEY field = lv_value
BINARY SEARCH.
Regards,
Kartik