02-03-2007 6:22 AM
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
02-03-2007 6:24 AM
Hi,
How did you declare your internal table..
Is it a hash table??
Please post your internal table declaration..
Thanks,
Naren
02-03-2007 6:24 AM
in your insert just add accepting duplicate keys
it will not give any error but update only one value.
regards
shiba dutta
02-03-2007 6:26 AM
Hi laxmi,
r u again trying to insert the already existing records into the table,plz check...
02-03-2007 6:39 AM
before inserting check with the key (if there is already existing)
based on that, insert the records.
02-03-2007 6:41 AM
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