Application Development 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: 

Database view multiple records

kumaro412
Active Participant
0 Kudos

Dear all,

There has been created a database view to find some values from vbak, vbap, vbep and mvke ...

The join conditions seems correct, but still the result returns 2 records (in stead of 1 record) ... The difference between the two records is the value of the field from MVKE ?

Does anyone know why this is wrong ?

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos

Quick guess, no guarantee: MANDT field is missing from the link to MVKE, maybe try including this.


Thomas

4 REPLIES 4

ThomasZloch
Active Contributor
0 Kudos

Quick guess, no guarantee: MANDT field is missing from the link to MVKE, maybe try including this.


Thomas

Former Member
0 Kudos

Hi Kurt,

Include MVKE-MANDT in Join conditions. Otherwise you will get multiple entries if you have MKVE entries in other clients.

edgar_nagasaki
Contributor
0 Kudos

Hi Kurt,

Noticed that only table you're not using all key fields is VBPE (ETENR - Delivery Schedule Line Number -  is missing) therefore would suggest you to check if you don't have 2 entries there for you selection.

Regards,

Edgar

0 Kudos

In time, if it's the case you could add a criteria in selection conditions tab.