Three types of internal tables are in SAP ABAP.
Standard Internal Tables: These tables have a linear index and can be accessed using the index or the key. The response time is in linear relationship with number of table entries. These tables are useful when user wants to address individual table entries using the index.
Sorted Internal Tables: These tables also have an index and the key. But the response time is in logarithmic relationship with number of table entries, since it users binary search algorithm instead of linear search. These tables are useful when user wants the table to be sorted while additional entries have to be added.
Hashed Internal Tables: These tables have no index, but have the key. The response time is constant irrespective of number of table entries, since it uses a Hash algorithm. These tables are useful when user wants to access the entries with key only.
Comments
Post a Comment