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

problem in view

Former Member
0 Likes
873

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
648

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

2 REPLIES 2
Read only

Former Member
0 Likes
649

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

Read only

Former Member
0 Likes
648

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