9/26/25, 12:16 AM Standard Internal Table - LearnSapAbap
HOME ABOUT US CONTACT US
Discover more ABAP Development for SAP HANA Database ABAP for Hana
SAP ERP SAP
HOME BASICS STATEMENT CONTROL BREAK DATABASE QUERY ADVANCE ABAP DOWNLOAD APPLICATION
SUBSCRIBE
Standard Internal Table LearnSapAbap
12:17 PM YouTube 5K
Standard table is an index table which has non-unique key. It can be accessed by index or key also. If we want
to access by key then the key must be defined otherwise default key would be considered. The declaration is
as follows:
DATA: it_mat TYPE STANDARD TABLE OF ty_mat WITH NON-UNIQUE KEY matnr. GOOGLE TRANSLATE
OR
Select Language ▼
DATA
SEARCH THIS BLOG
Search
SLIDEBAR
Discover more SAP
: it_mat TYPE TABLE OF ty_mat WITH NON-UNIQUE KEY matnr.
ABAP Development for SAP HANA
OR
DATA: it_mat TYPE TABLE OF ty_mat. Database ABAP for Hana
If we don’t mention “STANDARD TABLE OF” clause then by default the system takes it as a standard internal
SAP ERP
table. We can enter data into a standard internal table by using the APPEND statement. APPEND always
enters data at the last row of the table.
APPEND wa_mat TO it_mat.
FOLLOW US
We can sort data records in the standard table.
SORT itab BY item.
Here item is the field of the table. We can sort table by any of its fields or multiple fields. Here we have an
example of Standard table.
3 0 2
5 4
REPORT .
4
zabap_gui.
* Declaring the local structure of internal table
TYPES:
BEGIN
OF ty_tab, SUBSCRIBE
item TYPE char10,
quantity TYPE
Subscribe via Email
i,
price TYPE Enter email address he Submit
i,
END
OF ty_tab.
* Declaring the Standard internal table with non unique key
POPULAR POSTS
DATA:
itab TYPE STANDARD TABLE OF ty_tab WITH NON-UNIQUE KEY item, Parallel Cursor in SAP
wtab TYPE ty_tab. ABAP | Parallel cursor in
abap | Parallel cursor in
* Entering records to each field sap
wtab-item = 'Rice'. wtab-quantity = 2. wtab-price = 80.
[Link] 1/3
9/26/25, 12:16 AM Standard Internal Table - LearnSapAbap
Extra Programs
* Now one single row has been fulfilled with data
* Next appending one single row data into the table
APPEND wtab TO itab.
wtab-item = 'Suger'. wtab-quantity = 1. wtab-price = 90. Object Oriented ABAP -
APPEND wtab TO itab. Events
wtab-item = 'Tea'. wtab-quantity = 1. wtab-price = 100.
APPEND wtab TO itab. How to Display ALV table
as pop up screen | ALV
wtab-item = 'Rice'. wtab-quantity = 3. wtab-price = 150. table | Display ALV output
APPEND wtab TO itab. table.
wtab-item = 'Horlicks'. wtab-quantity = 1. wtab-price = 200.
APPEND wtab TO itab.
wtab-item = 'Suger'. wtab-quantity = 2. wtab-price = 70.
APPEND wtab TO itab.
WRITE: /3 'Item',
PAGEVIEWS PAST WEEK
17 'Quantity',
4 0 2 7
32 'Price'.
WRITE / '=========================================='.
SKIP. " Skipping one single line
LOOP AT itab INTO wtab.
WRITE: /3 wtab-item,
12 wtab-quantity,
25 wtab-price.
ENDLOOP.
SKIP.
WRITE '=========================================='.
RELATED POSTS
PREVIOUS NEXT
Internal Table Basics Sorted Internal Table
POST A COMMENT
No comments
[Link] 2/3
9/26/25, 12:16 AM Standard Internal Table - LearnSapAbap
To leave a comment, click the button below to sign in with Google.
SIGN IN WITH GOOGLE
Discover more SAP ERP Database ABAP for Hana SAP
ABAP Development for SAP HANA
RECENT POSTS POPULAR POSTS
ABAP CDS View With Input Parallel Cursor in SAP ABAP |
parameters | Parameters in CDS Parallel cursor in abap | Parallel
Views | CDS View with Parameters cursor in sap
May 01, 2020
Extra Programs
ABAP For Iteration with Where
condition | For Statement with
Where clause | For syntax with
Where condition
April 25, 2020 Object Oriented ABAP - Events
ABAP 7.40 For Iteration Expression |
For Iteration in SAP ABAP | For
Statement in SAP ABAP 7.40 | For
syntax in ABAP
April 19, 2020
CREATED BY SORATEMPLATES | DISTRIBUTED BY GOOYAABI TEMPLATES
[Link] 3/3