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

DB View Problem

Former Member
0 Likes
1,616

Hello Guys,

I am trying to Create a View to link between the tables MSEG, VBAK and VBEP tables to get the following info.

The Sales order number in the SO No. field (MSEG-MAT_KDAUF) should be linked to VBAK-LIFSK to get the Header Block information.

The Sales order number in the SO. No. field (MSEG-MAT_KDAUF) and SO Item (MSEG-MAT_KDPOS) should be linked to VBEP-LIFSP to get the item block.

i am getting following errors -

Not all the base tables are linked with join conditions

The view ignores client-dependency of the base tables

could you explain the view to get the data.

thanks

Shekar

1 REPLY 1
Read only

varma_narayana
Active Contributor
0 Likes
685

Hi shekar.

1. Not all the base tables are linked with join conditions.

Solution:

<b> In the Table/Join conditions TAB.</b>

Enter one table name like VBAK.

Use the <b>Relationships</b> button to copy the relationships automoatically.

Select the tables VBAP and MSEG from the List of related tables in the popup.

So that the System will automatically copy the Relationships.

2. The view ignores client-dependency of the base tables

This is bcoz the MANDT field is not included as the First field in the view.

<b>REWARD IF HELPFUL.</b>