‎2009 May 22 1:05 PM
Hi All,
I want to create a view on table mbew and mara :
tables are
MBEW
T001
MARA
joining condition are
MARA MANDT = MBEW MANDT
MARA MATNR = MBEW MATNR
then i got the error of Invalid extract structure template .....
then i included T001 table and refrence field now view fields are
ZKDAT DATS 8 Date as of which the price is valid
ZKPRS CURR 11 Future price
WAERS CUKY 5 Currency Key
MTART CHAR 4 Material Type
MATKL CHAR 9 Material Group
MATNR CHAR 18 Material Number
Problem is that the data records in view are in crores bcoz duplicate entries are coming ...
0.00 ARS HALB 301 400000
0.00 ARS HALB 301 400000
0.00 ARS HALB 301 400000
0.00 ARS HALB 301 400000
0.00 ARS HALB 301 400000
0.00 ARS HALB 302 400001
0.00 ARS HALB 302 400001
0.00 ARS HALB 302 400001
0.00 ARS HALB 302 400001
0.00 ARS HALB 302 400001
like this.......
pls tell me where is the prob???
Regards
Shweta
‎2009 May 22 1:26 PM
Hi Shweta,
Check if same materials exists for more than one Valuation Area (BWKEY) and Valuation Type (BWTAR) in the MBEW table. The only reason I see for duplicate entries is that same materials are there with different Valuation Area or Valuation Type in MBEW table. You can check the standard view on MARA and MBEW table 'MACKU'.
Regards,
Nikhil
Edited by: Nikhil Kayal on May 22, 2009 6:07 PM
‎2009 May 22 1:26 PM
Hi Shweta,
Check if same materials exists for more than one Valuation Area (BWKEY) and Valuation Type (BWTAR) in the MBEW table. The only reason I see for duplicate entries is that same materials are there with different Valuation Area or Valuation Type in MBEW table. You can check the standard view on MARA and MBEW table 'MACKU'.
Regards,
Nikhil
Edited by: Nikhil Kayal on May 22, 2009 6:07 PM
‎2009 May 22 1:31 PM
hi,
when creating a database view, put the table name under tables and then click on relationship,
select the mbew and mara combination, your issue of duplication will be remove.
Thanks & Regards,
Kimaya