Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question