‎2009 Sep 10 8:18 AM
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.
‎2009 Sep 10 8:41 AM
‎2009 Sep 10 8:41 AM
‎2009 Sep 10 9:20 AM
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
‎2009 Sep 10 9:23 AM
‎2009 Sep 10 9:29 AM
Hi
There might be multiple entries for Vbeln field (sales document) in VBAP table, thats why its fetching the duplicate entries.
Regards,
Prashant
‎2009 Sep 10 10:16 AM
‎2009 Sep 10 11:38 AM
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'
‎2009 Sep 10 2:08 PM
‎2009 Sep 11 4:53 AM
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..
‎2009 Sep 14 9:57 AM
HI,
try this.
VBAP.MANDT = VBAK.MANDT
VBAP.VBELN = VBAK.VBELN
Thanks and Regards,
Ahamed.
‎2009 Sep 14 9:59 AM
hi
and also try this. i forgot show this...
vbap.vbeln = vbkd.vbeln.
Thanks and Regards,
Ahamed.
‎2009 Oct 15 11:34 AM
Hi,
Try to display MANDT in the View Fields, it should solve your problem.
Regards,
Nicolas