Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Warehouse
Viewing all articles
Browse latest Browse all 6532

Duplicate records management

$
0
0

Hi experts,

 

I have an issue with the suppression of duplicates records, here it is:

Let’s take the following example in DSO 1:

 

Id

Code 1

Code 2

1

A

B

2

A

B

3

D

E

4

D

E

5

C

F

 

I would like to delete the duplicates from this DSO comparing Code 1 and Code 2.

So I’m doing the following:

 

Sort source package 1 by id code 1 code 2.

Delete adjacent duplicates comparing code 1 code 2.

So which gives this:

Id

Code 1

Code 2

1

A

B

3

D

E

5

C

F

 

I would like to enhance this code by reading another DSO (DSO 2), if the id is in that DSO, so I have to keep the record.

For example, if id2 is in DSO2. My final DSO has to be like this even if I have a duplicate record comparing code1 and code2 :

 

Id

Code 1

Code 2

1

A

B

2

A

B

3

D

E

5

C

F

 

How can I do it?

Thanks.

Amine


Viewing all articles
Browse latest Browse all 6532

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>