LOOP Vs READ TABLE
Hello All,
When there is a Sorted Internal Table, is Looping and Fetching a single record is better or to use a READ TABLE with BINARY SEARCH.
Kindly advice.
Best Regards,
Kasi Raaman.R
Thomas Zloch replied
For single records -> READ TABLE.
BINARY SEARCH is not necessary for sorted tables (declared as such!), it is already implicit when using addition WITH TABLE KEY.
Thomas