Skip to Content

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

Duplicate records in Internal table

Hi All,

I want to find out the duplicate entry in the internal table. I have used,

Delete Adjacent duplicates from itab.

It is straight away deleting the record.

I want the user to correct that duplicate record.

May be some error message.

I have tried, with read,

Read table itab with key bzirk = itab-bzirk vkorg = itab-vkorg kunnr = itab-kunnr

matnr = itab-matnr comparing bzirk vkorg kunnr matnr.

But it's giving sy-subrc = 0 for the first record also.

Even, I have tried like, but it's giving syntax error.

Loop at itab where bzirk = itab-bzirk vkorg = itab-vkorg kunnr = itab-kunnr

matnr = itab-matnr.

Endloop.

Any method in case on Table control entries.

Thanks & Regards,

Kalyan Chandramouli

SAP Consultant

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question