Internal Table

Why Trust Techopedia

What Does Internal Table Mean?

In ABAP programming, internal tables are dynamic data objects that are used to provide a mechanism of transferring data from a database or any other fixed structure to working memory for the purposes of array functionality. The data extracted is stored in memory, record by record.
Internal tables are mainly used to process a dataset with a predefined structure within an ABAP program. With the help of internal tables, SAP developers can store and format data within a program extracted from a database table. Due to their dynamic nature, they also save programmers from having to worry about dynamic memory management, which would otherwise be a concern.

Advertisements

Techopedia Explains Internal Table

For an internal table, the minimum size is 256 bytes. Similar to most variable declarations in ABAP, the internal tables are declared with the help of the DATA statement.

The syntax for an internal table is:

DATA <itab> TYPE|LIKE <tabkind> OF <linetype> WITH <key>

One can also declare static internal tables using the STATIC statement. Data statement can be used to construct new or program-based internal tables along with the addition of TYPE or LIKE for existing objects and types.

The table types for internal tables are declared based on the operations to be performed. The most commonly used types include:

Standard Table Type: Used in case individual records are accessed using the records index.
Hashed Table Type: Used if the main operation performed is key access.
Sorted Table Type: Used if the table is to be sorted as the data is stored.

Advertisements

Related Terms

Margaret Rouse
Editor

Margaret jest nagradzaną technical writerką, nauczycielką i wykładowczynią. Jest znana z tego, że potrafi w prostych słowach pzybliżyć złożone pojęcia techniczne słuchaczom ze świata biznesu. Od dwudziestu lat jej definicje pojęć z dziedziny IT są publikowane przez Que w encyklopedii terminów technologicznych, a także cytowane w artykułach ukazujących się w New York Times, w magazynie Time, USA Today, ZDNet, a także w magazynach PC i Discovery. Margaret dołączyła do zespołu Techopedii w roku 2011. Margaret lubi pomagać znaleźć wspólny język specjalistom ze świata biznesu i IT. W swojej pracy, jak sama mówi, buduje mosty między tymi dwiema domenami, w ten…