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

Views

Former Member
0 Likes
386

Hi All,

My query is related to views.

If we have two tables ZEMP(employee data) and ZDEP(Depatment data). Using these two tables we want to make a view. Now bothe the tables have following fields in common.

1. client

2. carrid(airline id)

3. department code

But there are few foreign key relations in the table ZEMP, those are:

SCAR-CARRID = ZEMP-CARRID

SCARR-MANDT = ZEMP-CLIENT

where SCARR is the check table.

Could you please tell me how we will define the table join conditions using the Relationships tab and using the fields.

Regards,

Dhiraj

2 REPLIES 2
Read only

Former Member
0 Likes
353

goto se11.

give the name of the view and click on crete

under table/join condition.

under tables column give ur two tables.

in join condition give like this

table fieldname table fieldname

zemp client = zdep client

zemp carrid = zdep carrid

zemp department = zdep department

and in view fields give the table and field name that you want to see as output

and if you want to restrict some vlaues then go to selection condtion tab and maintain the condions.

Thanks

mahehs

Read only

0 Likes
353

Thanks Mahesh for your note.

Please also let me know that how we can use the foreign key relationship as i have shown in the join conditions. We use the relationship tab on the view maintainence screen to add all the join conditions due to foreign keys, if i am not wrong.

Please help me with this point too.