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

How to avoid duplicated entries in database view

Former Member
0 Likes
848

Hi,

I created a database view to show all the customers from KNA1 who has order(s) in VBAK, here is

my join condition:

KNA1-MANDT = VBAK-MANDT

KNA1-KUNNR = VBAK-KUNNR

In view fields I have KNA1-KUNNR and KNA1-NAME1.

My problem is, if a customer has 10 orders, then it's id and name will show 10 times in the view.

How can I avoid the duplicates?

Thank you.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
504

I don't think this is possible. You have SELECT....DISTINCT while selecting records from these database view.

a®

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
505

I don't think this is possible. You have SELECT....DISTINCT while selecting records from these database view.

a®