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

Inner join to view

Former Member
0 Likes
1,098

Hello,

How can I make view of following tables?

tnro table

tnrot table

cus_actobj

tnro-object = tnrot-object

and tnro-code = cus_actobj-tcode

I am able to join 2 table tnro and tnrot. But how can i join tnro-code with cus_actobj-tcode???

Hello,

How can I make view of following tables?

tnro table

tnrot table

cus_actobj

tnro-object = tnrot-object

and tnro-code = cus_actobj-tcode

I am able to join 2 table tnro and tnrot. But how can i join tnro-code with cus_actobj-tcode???

7 REPLIES 7
Read only

Former Member
0 Likes
1,047

Hi

Join tables tnro and tnrot using field named object into internal table ITAB.

For all entries of ITAB fetch the data from cus_actobj where tcode equal to ITAB-code.

Regards

Srilaxmi

Read only

Former Member
0 Likes
1,047

Hi

I am not sure how the data is organised in these tables.

But if you are just looking for creating a view with inner join, here is my suggestion.

Integrity of the data has to be checked by yourself

Since you need a inner join, you should create a Database view.

The join conditions should be

TNRO-OBJECT = TNROT-OBJECT

TNRO-CODE = CUS_ACTOBJ-TCODE

TNRO-OBJECT = CUS_ACTOBJ-SUBOBJNAME

Best Regards,

Manjunadh.

Read only

Former Member
0 Likes
1,047

Hi,

In SE11 under create database view, Table/Join Conditions tab mention all the 3 tables TNRO, TNROT and CUS_ACTOBJ in TABLEs column.

And in Join Condtion area, mention like below.

table field table field

TNRO OBJECT = TNROT OBJECT

TNRO CODE = CUS_ACTOBJ TCODE

And in View Fields mention the required fields as per you requirement. and activate the view.

Read only

0 Likes
1,047

Hi Ravendra,

But I am not able to join the cus_actobj table

Read only

Clemenss
Active Contributor
0 Likes
1,047

Hi sgrshah,

would you kindly explain what you want?

CUS_ACTOBJ                     Customizing Activity - Object List
TNRO                           Definition of number range objects
TNROT                          Text for number range object

I do not know what the tables shall have in common.

Regards,

Clemens

Read only

Former Member
0 Likes
1,047

tcode are common in all three tables.

Read only

Clemenss
Active Contributor
0 Likes
1,047

common is not the same.