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

Joining table

Former Member
0 Likes
1,024

Hi

I needed to make a join with CATSDB- AWART TABLE field with T554T-AWART and SPRSL = SY-LANGU and MOABW = ?

There is another primary key in T554T table called MOABW how to join these table filed with catsdb

Regards

Sebastian John

6 REPLIES 6
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
858

Select <fields>

into table <itab>

from catsdb as a inner join T554T as b

on aawart = bawart

aMOABW = bMOABW

where sprsl = sy-langu and

MOABW = ?

Read only

0 Likes
858

Hi Sandeep,

There is no filed like MOABW in catsdb.

That is the problem ?

Regards

Sebastian

Read only

0 Likes
858

Then you can put another join condition for T554S-MOABW and t554T-MOABW.

Read only

Former Member
0 Likes
858

Hi Sebastian,

When multiple SAP tables are logically joined, it is always advisable to use inner join to read the data from them. This certainly reduces the load on the network.

Hence we have

"catsdb as a inner join T554T as b "

since AWART exists in both the tables innerjoin would be perfect.

the syntax goes like this

Select <field1> <field1> <field1> <field1> ====> the fields u want to select

into table <itab> ====>name of the internal table

from catsdb as t1 inner join T554T as t2

on t1awart = t2awart ~ indent denotes the mapping

t1MOABW = t2MOABW

where sprsl = sy-langu and |

MOABW = ? | your select condition goes here

Hope this helps you,

Thanks and regards

Srikanth.P

Read only

Former Member
0 Likes
858

Thanks

Read only

0 Likes
858

Hi Sebastian.

Did you find the solution for the above requirement.

If yes then pls provide me the solution.

I have got the same requirement.

thanks in advance.

Regards,

Obaid.