Skip to Content
-2
Former Member
Jun 20, 2018 at 12:46 PM

ABAP routine for showing duplicates in the output

183 Views Last edit Jun 20, 2018 at 01:48 PM 2 rev

Hi ABAP'ers.

I am trying to create an APD model which would show duplicate values between 2 fields. The data is taken from 2 different tables which are connected via transformation and finally will be connected to DSO.

I sorted the table to 2 fields: Field 1 and Field 2. After runing an ABAP routine I would like to only see the duplicates, where field 1 and field 2 matched values twice.

Here is an example of data-set:

Field 1 Field 2

A 100

B 120

C 130

C 130

D 140

Can someone help me with ABAP code?