Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Custom table data entry

Hi All,

I have a scenario...

where I have three key fields in my table: zgrp, zrole and zdate and two non key fields zdatum and zpur

Now I want to enter the following records:

zgrp - > 1

zrole-> xyz

zdate->12/12/2008

zdatum->12/11/2007

zpur->1

zgrp - > 1

zrole-> xyz

zdate->12/12/2008

zdatum->12/11/2006

zpur->2

zgrp - > 1

zrole-> xyz

zdate->12/12/2008

zdatum->12/11/2007

zpur->3

zgrp - > 2

zrole-> abc

zdate->12/12/2008

zdatum->12/11/2007

zpur->1

zgrp - > 2

zrole-> abc

zdate->12/12/2008

zdatum->12/11/2007

zpur->2

but I am not being able to insert these records, as soon as I enter the first record it gives me the follwoing error:

"An entry already exists with the same key"

Thanks,

Rajeev

Tags:
Former Member
Former Member replied

Hello ,

The first 3 entries that you want to add to you table all have exactly the same values for the key field. That is why you are getting the error.

You will need to rethink the keys that are needed for you table. You may need to add another key field to make the entries in you table unique by those key values.

Regards

Greg Kern

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question