Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete duplicate database entries

Former Member
0 Likes
647

Hi,

I would like to know if there is any special command to delete entries from one database that already exist in another. I've already implemented it selecting the table keys from one database into an internal table and deleting this entries in the other database using the internal table referred. Eventhough, I would like to know if there's a better solution to do that that can prevent me from having a huge internal table.

Best regards,

Nuno Barros

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
620

No I don't think so ..Any special command through which you can compare two tables data in open sql statements.

Thanx.

Regards

Bibek

3 REPLIES 3
Read only

Former Member
0 Likes
621

No I don't think so ..Any special command through which you can compare two tables data in open sql statements.

Thanx.

Regards

Bibek

Read only

0 Likes
620

I don't think that there's another way than going the way via internal tables. But function module RS_VERS_COMPARE_TAB will help to compare both tables, so that you don't have to read every single key.

Regards

Nicola

Read only

Former Member
0 Likes
620

Hi,

You could already use an inner join select on both table. This will result in all entries in table 2 that are present in table 1.

Then you would just have to use a delete table2 from table itab...No loop needed here.

Kr,

Manu