Hi-
What you can do is: Move your final internal table values into an temporary table. And delete duplicates in temporary table comparing your first field name. Then by using DESCRIBE statement find the number of entries in both the table if they are equal then no duplicates else populate an error message.
-Venkat