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: 

SAP Query - delete adjacent duplicates

Former Member
0 Kudos

Hi Experts,

I am facing the scenario how to remove duplicate values from Query report.

When i am typing the code in report it is giving the Error. My question is the is it wrong coding ??  and if it is then what should be the correct one.

Regards,

Qamber Abbas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

Dtab u declared as a structure.

try the following

data: dtab type table of quals-prueflos.

8 REPLIES 8

Former Member
0 Kudos

hi,

Dtab u declared as a structure.

try the following

data: dtab type table of quals-prueflos.

0 Kudos

hi noufal,

system takes the code but still in report it odes not sort and delete the duplicate value.

You can go though screen shot.

regards,

Qamber Abbas

Former Member
0 Kudos

DATA: dtab type table of qals.

*populate dtab first

delete adjacent duplicates from dtab comparing prueflos.

0 Kudos

It is now showing the new error, Please Type complete correct coding for my help.

0 Kudos

Change your data delcaration to


DATA: dtab type table of qals.

0 Kudos

I have change the statement but still i got the same issue.

0 Kudos

data dtab type TABLE OF qals.

SELECT * FROM qals into TABLE dtab.

DELETE ADJACENT DUPLICATES FROM dtab COMPARING prueflos.

0 Kudos

It works for me thanks.

Regards,

Qamber Abbas