Professional Documents
Culture Documents
ABAP BI Internal Tables
ABAP BI Internal Tables
Internal Table
Temporary table stored in RAM on application server (not on GUI) Created & filled during execution of program Consists of one or more rows with identical structure. Identical to a field string declaration
Header line holds current row being retrieved or added to the table.
Automatically created using begin of Using like will not create header line. Nested internal table does not have header line
BEGIN OF creates header LIKE does not create a header line LIKE add WITH HEADER LINE creates a header line.
APPEND itab to itab is identical to APPEND itab. (Default header line implicit work area) APPEND INITIAL LINE TO itab
Appends a row containing initial values (blanks & zeros) Same as CLEAR ITAB APPEND ITAB
Itab
1
2 3
A
B C
XX
YY YY
LOOP AT itab. write: / sy-tabix, itab-f1, itab-f2. ENDLOOP. WRITE: / 'done. sy-tabix =', sy-tabix, / ' sy-subrc =', sy-subrc. OUTPUTS: 1 A XX 2 B YY 3 C YY Done sy-tabix = 99 sy-subrc = 0