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: 

Pls any one guide me to this problem

Former Member
0 Kudos

Hi ABAP Consultants,

Pls guide me to this problem,

I developed one report for inqury and quattaion and sales order on the same list.

there dupulicate vales are coming, i need to remove to this problem.

for that i wrote a duplicate addjusent squary. after that in inquary duplicates are not coming but in quataion and so repeated records are printed.

Pls pls any one say some thing about the problem.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

How are you displaying the entries is this done via ALV and did you first create an internal table which you pass to the ALV. When having an internal table you can simply do:

DELETE ADJACENT DUPLICATES FROM itab

You can even give key fields.

If you are using an SELECT and ENDSELECT statement and then a write statement in between, I would suggest to drop the SELECT and ENDSELECT statement and do:

SELECT * FROM TABLE INTO itab WHERE ...

Then you can loop over the table and do your write statements.

Best regards,

Guido Koopmann

4 REPLIES 4

Former Member
0 Kudos

hi

use for all entries..and compare with key properly in read statement

for ex..

loop at itab1

read table itab2 with key <fld> = itab1-<fld>.

endloop.

also check out the append statements....use modify instead of append.

hope it will solve ur problem.

Rgs

Rajat.

0 Kudos

THANKS FOR HELP ME.

I TRIED THAT IT SOLVED.

Former Member
0 Kudos

HI,

How are you displaying the entries is this done via ALV and did you first create an internal table which you pass to the ALV. When having an internal table you can simply do:

DELETE ADJACENT DUPLICATES FROM itab

You can even give key fields.

If you are using an SELECT and ENDSELECT statement and then a write statement in between, I would suggest to drop the SELECT and ENDSELECT statement and do:

SELECT * FROM TABLE INTO itab WHERE ...

Then you can loop over the table and do your write statements.

Best regards,

Guido Koopmann

0 Kudos

HI,

THAKS FOR HELP TO ME.

I GOT THE SOLUTION FROM UR GUIDE.