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

duplicate keys

Former Member
0 Likes
655

hai all,

i have the intarnal table which has duplicate entries .

after that by using sort function and delete duplicate entries i deleted duplicate entries

then i am usinh insert to insert the records. now it's going to short dump, its saying that they are duplicate entris..

i was unable to solve this issue.

please give me some suggessions to under stand the scenario.

how to handle duplicate entries . if possiable please send the code

thanks

laxmi

5 REPLIES 5
Read only

Former Member
0 Likes
620

Hi,

How did you declare your internal table..

Is it a hash table??

Please post your internal table declaration..

Thanks,

Naren

Read only

Former Member
0 Likes
620

in your insert just add accepting duplicate keys

it will not give any error but update only one value.

regards

shiba dutta

Read only

Former Member
0 Likes
620

Hi laxmi,

r u again trying to insert the already existing records into the table,plz check...

Read only

SantoshKallem
Active Contributor
0 Likes
620

before inserting check with the key (if there is already existing)

based on that, insert the records.

Read only

Former Member
0 Likes
620

Hi,

If you are inserting the records to the database table..

Use MODIFY..If the record if there it will modify otherwise it will INSERT..

Example

DATA: T_ZTABLE TYPE TABLE OF ZTABLE.

MODIFY ZTABLE FROM TABLE T_ZTABLE.

Thanks,

Naren