Changes rhgrenz4 example report to CUT and insert info-types 1000, 1001 and 1002

Changes rhgrenz4 example report to CUT and insert info-types 1000, 1001 and 1002

Changes rhgrenz4 example report to CUT and insert info-types 1000, 1001 and 1002

To identify duplicates in an internal table in ABAP, you can use a combination of sorting and looping. Here’s an example that shows how to find duplicate entries in an internal table:

DATA: BEGIN OF itab OCCURS 0,
        field1 TYPE i,
        field2 TYPE c LENGTH 10,
      END OF itab,
      wa LIKE LINE OF itab.

* Add sample data to internal table
itab-field1 = 1. itab-field2 = 'A'. APPEND itab.
itab-field1 = 2. itab-field2 = 'B'. APPEND itab.
itab-field1 = 1. itab-field2 = 'A'. APPEND itab.
itab-field1 = 3. itab-field2 = 'C'. APPEND itab.
itab-field1 = 2. itab-field2 = 'B'. APPEND itab.

* Sort internal table by the fields you want to check duplicates for
SORT itab BY field1 field2.

* Compare current record with

 

HR – SRM Organization & User Integration