0% found this document useful (0 votes)
11 views3 pages

Understanding Hashed Internal Tables

Hashed Internal Table

Uploaded by

Sampath Bs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Understanding Hashed Internal Tables

Hashed Internal Table

Uploaded by

Sampath Bs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

9/26/25, 12:17 AM Hashed Internal Table - LearnSapAbap

HOME ABOUT US CONTACT US 

Discover more SAP ERP SAP ABAP for Hana Database

ABAP Development for SAP HANA

HOME BASICS STATEMENT CONTROL BREAK DATABASE QUERY ADVANCE ABAP DOWNLOAD APPLICATION 

SUBSCRIBE
Hashed Internal Table LearnSapAbap
12:52 PM  YouTube 5K

Hashed table is not an index table. It follows the hash algorithm. Here the declaration of key is must and also
the key must be unique. Hence no duplicate entry will be in the hashed table. We can access records only by
the key. Similar to sorted tables data can be inserted here by INSERT statement. Hashed tables are used when
the internal table contains huge volume of data.
GOOGLE TRANSLATE

Select Language ​▼
REPORT zabap_gui.

* Declaring the local structure of internal table


TYPES:
BEGIN OF ty_tab,
SEARCH THIS BLOG
item TYPE char10,
quantity TYPE i, Search
price TYPE i,
END OF ty_tab.

* Declaring the Hashed internal table with non unique key


DATA: SLIDEBAR
itab TYPE HASHED TABLE OF ty_tab WITH UNIQUE KEY item,
wtab TYPE ty_tab. Discover more SAP SAP ERP

* Entering records to each field Database ABAP for Hana


wtab-item = 'Rice'. wtab-quantity = 2. wtab-price = 80.
ABAP Development for SAP HANA
* Now one single row has been fulfilled with data
* Next inserting one single row data into the table
INSERT wtab INTO TABLE itab.

FOLLOW US
wtab-item = 'Suger'. wtab-quantity = 1. wtab-price = 90.
INSERT wtab INTO TABLE itab.

wtab-item = 'Tea'. wtab-quantity = 1. wtab-price = 100.


  
3 0 2
INSERT wtab INTO TABLE itab. 5 4
.
4
wtab-item = 'Rice'. wtab-quantity = 3. wtab-price = 150.
INSERT wtab INTO TABLE itab.

wtab-item = 'Horlicks'. wtab-quantity = 1. wtab-price = 200.


INSERT wtab INTO TABLE itab.
SUBSCRIBE
wtab-item = 'Suger'. wtab-quantity = 2. wtab-price = 70.
INSERT wtab INTO TABLE itab.
Subscribe via Email
WRITE: /3 'Item', Enter email address he Submit

13 'Quantity(KG)',
28 'Price(Rs)'.
WRITE / '=========================================='.
SKIP. " Skipping one single line

LOOP AT itab INTO wtab.


POPULAR POSTS
WRITE: /3 wtab-item, Parallel Cursor in SAP
12 wtab-quantity, ABAP | Parallel cursor in
25 wtab-price. abap | Parallel cursor in
ENDLOOP. sap

[Link] 1/3
9/26/25, 12:17 AM Hashed Internal Table - LearnSapAbap
SKIP.
Extra Programs
WRITE '=========================================='.

Object Oriented ABAP -


Events

How to Display ALV table


as pop up screen | ALV
table | Display ALV output
table.

Due to uniqueness of the key similar entries are ignored.

PAGEVIEWS PAST WEEK

4 0 2 9

Hashed table can be sorted. If we sort this table it will be as follows.

    

RELATED POSTS

PREVIOUS NEXT
Sorted Internal Table Read Table and Describe Table

POST A COMMENT
3 comments:

Jennifer
 February 6, 2019 at 6:12 PM

Hence no duplicate entry will be in the hashed table. We can access records only by the
key. Similar to sorted tables data can be inserted here by INSERT statement. Hashed tables
are used when the internal table contains huge volume of data. 250-437 dumps

Reply

Shona67
 March 3, 2023 at 5:43 PM

[Link] 2/3
9/26/25, 12:17 AM Hashed Internal Table - LearnSapAbap
This comment has been removed by the author.

Reply

Alice Chris
 March 3, 2023 at 6:06 PM

A humility board screens the front edge and some of the time the sides of the desk to
forestall seeing under.
[Link]

Reply

To leave a comment, click the button below to sign in with Google. 

SIGN IN WITH GOOGLE

Discover more SAP ERP SAP ABAP for Hana Database

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
Object Oriented ABAP - Events
 April 25, 2020

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

You might also like