‎2008 Jul 26 2:48 PM
I have an upload program to upload csv file to itab, and i need a sample code for the employee id to give me an error message if a duplicate employee id is found during execution.
‎2008 Jul 26 2:52 PM
rather than this it is better to delete the duplicate entries after data coming to the internal table .......
‎2008 Jul 26 2:53 PM
DELETE ADJACENT DUPLICATES FROM itab COMPARING <yourempid>.
if sy-subrc = 0.
message.
endif.
‎2008 Jul 26 2:53 PM
After Upload you can delete the Duplicates comparing the employee Id.
It Will be Possible only when you use OLE and read the file records line by Line. I am not sure of the error Handling with OLE control. It may lead to some performance issues..