Application Development and Automation 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: 
Read only

non unique key?

vikash_pathak
Participant
0 Likes
1,453

Hi Experts,

i am little confused abut non-unique key?

how to create and call with internal table?

please brief me with example.

Thanks

vikash

2 REPLIES 2
Read only

Venkat_Pendyala
Explorer
0 Likes
781

Hi Vikash,

We can use NON-Unique key tag on Standard and sorted internal tables... Name shows that key should not be unique..

Regards,

Venkat

Read only

SwadhinGhatuary
Active Contributor
0 Likes
781

hi,

When we use key internal table it faster the searching process at the read process.So the key may be unique or non unique.You can specify whether the key should be UNIQUE or NON-UNIQUE. Internal tables with a unique key cannot contain duplicate entries. The uniqueness depends on the table access method.


The user-defined key can contain any columns of the internal table that are not references or themselves internal tables. Internal tables with a user-defined key are called key tables. When you define the key, the sequence of the key fields is significant. You should remember this, for example, if you intend to sort the table according to the key.

Internal tables (SAP Library - ABAP Programming (BC-ABA))

ABAP Internal Table Secondary Key Performance comparison | ABAP Help Blog