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

ABAP Runtime Error "ITAB_DUPLICATE_KEY"

former_member605561
Participant
0 Likes
3,386

Hi all,

I am getting Abap runtime dump "ITAB_DUPLICATE_KEY" There is already a line with the same key.

details are..........

Program............. "SAPLRMPU "

Error analysis

You wanted to add an entry to table "\PROG=RMPU_SEL_SCREEN\DATA=REP_SR-PKHDIX",

which you declared with a UNIQUE KEY. However, there was already an entry with thesame key.

This may have been in an INSERT or MOVE statement, or within a

SELECT ... INTO statement.

In particular, you cannot insert more than one initial line into a

table with a unique key using the INSERT INITIAL LINE... statement.

What might be the Cause of Error?

How to correct this Error?

It is an Standard SAP program if u have any OSS notes Regarding this please mention.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,633

Hi,

The problem is it is trying to insert a record to the internal table which is already there for the defined key..

From help

ITAB_DUPLICATE_KEY: You inserted a set of lines, more than oneof which had the same key (target table defined with UNIQUE).

Thanks

Naren

Hi all,

I am getting Abap runtime dump "ITAB_DUPLICATE_KEY" There is already a line with the same key.

details are..........

Program............. "SAPLRMPU "

Error analysis

You wanted to add an entry to table "\PROG=RMPU_SEL_SCREEN\DATA=REP_SR-PKHDIX",

which you declared with a UNIQUE KEY. However, there was already an entry with thesame key.

This may have been in an INSERT or MOVE statement, or within a

SELECT ... INTO statement.

In particular, you cannot insert more than one initial line into a

table with a unique key using the INSERT INITIAL LINE... statement.

What might be the Cause of Error?

How to correct this Error?

It is an Standard SAP program if u have any OSS notes Regarding this please mention.

3 REPLIES 3
Read only

Former Member
0 Likes
2,633

Hi,

Looks like it is a standard sap program..check the oss notes with the program..

Thanks

Naren

Read only

0 Likes
2,633

Hi naren,

Do u now what is the exact cause of the error.

Here the Table PKHD is an transparant table ...

Read only

Former Member
0 Likes
2,634

Hi,

The problem is it is trying to insert a record to the internal table which is already there for the defined key..

From help

ITAB_DUPLICATE_KEY: You inserted a set of lines, more than oneof which had the same key (target table defined with UNIQUE).

Thanks

Naren