SAP DATA ITAB ABAP Statements
Get Example source ABAP code based on a different SAP table
DATA - TABLE OF
• TABLE OF DATA
• INITIAL SIZE DATA
• STANDARD TABLE DATA
• SORTED TABLE DATA
• HASHED TABLE DATA
• TABLE OF CLASS-DATA
• STANDARD TABLE CLASS-DATA
• SORTED TABLE CLASS-DATA
• HASHED TABLE CLASS-DATA
• INITIAL SIZE CLASS-DATA
• TABLE OF STATICS
• STANDARD TABLE STATICS
• SORTED TABLE STATICS
• HASHED TABLE STATICS
• INITIAL SIZE STATICS
• TABLE OF CONSTANTS
• STANDARD TABLE CONSTANTS
• SORTED TABLE CONSTANTS
• HASHED TABLE CONSTANTS
• INITIAL SIZE CONSTANTS
ABAP_BASIC_FORM_5
What does it do? This statement defines an internal table. The definition of the row type, table category
Latest notes:When an internal table is created as a data object, only the administration entry for an internal table is generated. The actual table rows are not inserted until runtime.
Several obsolete variants for declaring standard tables exist, described under
When an internal table is defined, the start value after the
Example ABAP Coding
Declares an internal hashed table. The row type corresponds to the structure of the database table
WITH UNIQUE KEY carrid connid,
spfli_wa LIKE LINE OF spfli_tab.
SELECT *
FROM spfli
INTO TABLE spfli_tab
WHERE carrid = 'LH'.
spfli_wa = spfli_tab[ KEY primary_key
carrid = 'LH' connid = '0400' ].
...
Return to menu