What are the types of internal tables in SAP ABAP?

What are the different types of internal tables in SAP ABAP ? Difference between standard, sorted and hashed internal tables in SAP ABAP

+ -

There are three types of internal tables in SAP ABAP programming, an ABAP developer must know and understand before using them in ABAP programs.

  • Standard Internal Tables
  • Sorted Internal Tables
  • Hashed Internal Tables

Difference between Standard internal tables, Sorted internal tables and Hashed internal tables

# Standard Internal tables Sorted Internal Tables Hashed Internal tables
1 These are default internal tables. These are a special type of internal tables, where data is already(automatically) sorted as you insert the record These are used with logical databases i:e with all fields and all records.
2 To read a record we use either key or index operation. To read a record we use either key or index operation. Here the index operation is not allowed, we only use key operation.
3 To search for a record, we can use either linear search or binary search. To search for a record, we use binary search as data is already sorted. To search for a record we use hashed algorithm.
4 We can use sort operation. We do not use sort as data is already sorted. -
5 We can use insert and append to add records. We only use insert, not append. These are mainly used in ABAP with BI projects

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 59 People out of 65 think this lesson helpful


    Lesson Navigation

    ←Previous Chapter
    Next Lesson → Select Statements types