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

Remove Duplicate Record

Former Member
0 Likes
668

Hi

Can any one help me please.My error is...

I was created a ALV report for RG1.On that report A single material doc. Have so many simialr Reference doc. I have to remove that duplicate Reference doc. How can i remove that duplicate reference doc.

Table name is : J_1IRG1

Material Doc(Field name) is: MBLNR

Reference Doc.(Field name) : RDCO1

Thanks

Laxmikanta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
623

hi,

try like this.


sort itab by MBLNR RDCO1.
delete adjacent duplicates from itab comparing MBLNR RDCO1.

this should help.

thanks

tanmaya

4 REPLIES 4
Read only

former_member434229
Active Participant
0 Likes
623

Hi,

Write the below statment before displaying the data display.

DELETE ADJACENT DUPLICATES FROM <itab> comparing MBLNR RDCO1.

Regards,

Ni3

Read only

Former Member
0 Likes
623

Hi,

Yes you can use this statement DELETE ADJACENT DUPLICATES....as mentioned in the above reply, but before writing this statement you must SORT <itab> with the specified fields (fields which you will be using for deletion)

This will definitely work.

Asha

Read only

Former Member
0 Likes
623

Use the command "DELETE ADJACENT DUPLICATES FROM"

Regards

Vinod

Read only

Former Member
0 Likes
624

hi,

try like this.


sort itab by MBLNR RDCO1.
delete adjacent duplicates from itab comparing MBLNR RDCO1.

this should help.

thanks

tanmaya