ABAP - Internal Tables in ABAP

Internal Tables in ABAP

Internal tables are an extremely important feature of the ABAP language. An internal table is defined as a vector of structs in C++ or a vector of objects in Java. The main difference with these languages is that ABAP provides a collection of statements to easily access and manipulate the contents of internal tables. Note that ABAP does not support arrays; the only way to define a multi-element data object is to use an internal table.

Internal tables are a way to store variable datasets of a fixed structure in the working memory of ABAP, and provides the functionality of dynamic arrays. The data is stored on a row-by-row basis, where each row has the same structure.

Internal tables are preferably used to store and format the content of database tables from within a program. Furthermore, internal tables in connection with structures are the most important means of defining very complex data structures in an ABAP program.

Following example define an internal table with two fields with the format of database table VBRK:

DATA : BEGIN OF I_VBRK OCCURS 0, VBELN LIKE VBRK-VBELN, ZUONR LIKE VBRK-ZUONR, END OF I_VBRK.

Read more about this topic:  ABAP

Famous quotes containing the words internal and/or tables:

    I have been amazed by the Anglo-Saxon’s lack of curiosity about the internal lives and emotions of the Negroes, and for that matter, any non-Anglo-Saxon peoples within our borders, above the class of unskilled labor.
    Zora Neale Hurston (1891–1960)

    O these encounterers, so glib of tongue,
    That give a coasting welcome ere it comes,
    And wide unclasp the tables of their thoughts
    To every ticklish reader! Set them down
    For sluttish spoils of opportunity
    And daughters of the game.
    William Shakespeare (1564–1616)