Application Development 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: 

Remove Duplicatr data from ABAP quere (SQ02)

Former Member
0 Kudos

Hi experts,

I built a ABAP query by joining more then 5 tables using tcode SQ02.

when I run the query by SQ01 I found some duplicate row which is need to remove.

How can I remove those duplicate row from my Query or infoset.

Rayhan

3 REPLIES 3

former_member184632
Participant
0 Kudos

Hi Rayhan,

You cannot simply eliminate duplicate records (otherwise use abap), you must add a selection on selected records.

For adding ABAP, [read sap library - infoset - abap code|http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/cb4504455611d189710000e8322d00/frameset.htm] and blog 13838 (it uses another abap exit, but it may help you to see how it works)

Thanks ,

Vishall

0 Kudos

Thanks

Former Member
0 Kudos

Hi,

this is not the forum for queries but if you have duplicate records it is because the joining conditions are not correct or the database tables have duplicate records.

The selection on records could not be very helpful, as suggested by Vishall, if you still have an error in your selection/joining conditions.