2006 Nov 07 6:38 AM
1.I have 3 columns in ITAB say col1,col2,col3
SORT itab BY col1 col2 col3.
Reab TABLE itab WITH KEY col1 = ... col3 = ... col2=.... WITH BINARY SEARCH.
Will it work? If not why....
2.What are the things we need to check before a READ statement with binary search?
Hi Siva,
The prerquisites is that the standard table must be sorted in ascending order by the specified search key.The binary search works faster than the linear search.
regards,
nagaraj
2006 Nov 07 7:08 AM
2006 Nov 07 7:18 AM
Hi Siva,
The prerquisites is that the standard table must be sorted in ascending order by the specified search key.The binary search works faster than the linear search.
regards,
nagaraj
2006 Nov 07 7:20 AM
Hi Siva,
Some Corrections are there in the Code Which u have Written After with Keys no need of writing "with " Directly u give binary seach it will work. And It is compulsary to check that the internal table is Sorted. Ok
Bye
Murthy
2006 Nov 07 7:26 AM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |