Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

can u pls tell me the syntax for hash tables

Former Member
2 REPLIES 2

Former Member
0 Kudos

<b>Hashed tables</b>

This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.

Syntax of hashed table is :

DATA: ITAB LIKE HASHED TABLE OF MARA INITIAL SIZE 0 WITH HEADER LINE.

Reward if useful

Regards

Prax

former_member196280
Active Contributor
0 Kudos

DATA: <internal table name> LIKE HASHED TABLE OF <work area/table name> INITIAL SIZE 0 WITH HEADER LINE.

Rgds,

Sai