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

SAP Query - delete adjacent duplicates

Former Member
0 Likes
2,578

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
Read only

Former Member
0 Likes
2,384

hi,

Dtab u declared as a structure.

try the following

data: dtab type table of quals-prueflos.

8 REPLIES 8
Read only

Former Member
0 Likes
2,385

hi,

Dtab u declared as a structure.

try the following

data: dtab type table of quals-prueflos.

Read only

0 Likes
2,383

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

Read only

Former Member
0 Likes
2,383

DATA: dtab type table of qals.

*populate dtab first

delete adjacent duplicates from dtab comparing prueflos.

Read only

0 Likes
2,381

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

Read only

0 Likes
2,381

Change your data delcaration to


DATA: dtab type table of qals.

Read only

0 Likes
2,381

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

Read only

0 Likes
2,381

data dtab type TABLE OF qals.

SELECT * FROM qals into TABLE dtab.

DELETE ADJACENT DUPLICATES FROM dtab COMPARING prueflos.

Read only

0 Likes
2,381

It works for me thanks.

Regards,

Qamber Abbas