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

Duplicate records data on view

Former Member
0 Likes
1,949

Dear Gurus

I create view and join some colume of table VBAK VBAP VBKD

This join condition.

VBAP.MANDT = VBAK.MANDT

VBAP.VBELN = VBAK.VBELN

VBAP.VBELN = VBKD.VBELN

Data records is dupplicate, what happen and how to resolve?

Thank.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,727

Hello

And what fields from what tables are present in view ?

11 REPLIES 11
Read only

Former Member
0 Likes
1,728

Hello

And what fields from what tables are present in view ?

Read only

0 Likes
1,727

Dear Maroz

MANDT CLNT 3 Client

VBELN CHAR 10 Sales Document

MATNR CHAR 18 Material Number

COMMINV CHAR 10 Commercial Invoice No.

KUNNR CHAR 10 Sold-to party

ZROUTE CHAR 6 Route

ERDAT DATS 8 Date on Which Record Was Created

KNUMV CHAR 10 Number of the document condition

POSNR NUMC 6 Sales Document Item

KWMENG QUAN 15 Cumulative Order Quantity in Sales Units

ZJOBNO CHAR 20 Job No.

ZJOBDATE DATS 8 Job Date

BSTKD CHAR 35 Customer purchase order number

ZTERM CHAR 4 Terms of Payment Key

KURSK DEC 9 Exchange Rate for Price Determination

Read only

0 Likes
1,727

Hello

Try to add in join conditions:

VBAP.POSNR = VBKD.POSNR

Read only

0 Likes
1,727

Hi

There might be multiple entries for Vbeln field (sales document) in VBAP table, thats why its fetching the duplicate entries.

Regards,

Prashant

Read only

0 Likes
1,727

Thank Maroz

I alredy try, no record select.

Read only

0 Likes
1,727

Hello

In such event try this:

join conditions:

VBAP.MANDT = VBAK.MANDT

VBAP.VBELN = VBAK.VBELN

VBAP.MANDT = VBKD.MANDT

VBAP.VBELN = VBKD.VBELN

selection conditions:

VBKD-POSNR = '000000'

Read only

Former Member
0 Likes
1,727

try with

vbak-vbeln = vbap-vbeln

vbak-vbeln = vbkd-vbeln

Read only

Former Member
0 Likes
1,727

Join conditions will be as below :

VBAK and VBAP by VBELN

VBKD by VBELN and POSNR from VBAP.

Duplicate entries should not come after this..

Read only

Former Member
0 Likes
1,727

HI,

try this.

VBAP.MANDT = VBAK.MANDT

VBAP.VBELN = VBAK.VBELN

Thanks and Regards,

Ahamed.

Read only

Former Member
0 Likes
1,727

hi

and also try this. i forgot show this...

vbap.vbeln = vbkd.vbeln.

Thanks and Regards,

Ahamed.

Read only

Former Member
0 Likes
1,727

Hi,

Try to display MANDT in the View Fields, it should solve your problem.

Regards,

Nicolas