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 Syntax review

Former Member
0 Likes
691

Hi All,

I want to select the external material text from twewt table , for the corresponding material in mara , so I wrote a join statement like this -

Select singlep~ewbez  into gv_extmatdesc from (twewt as p INNER JOIN  mara as c  on C~matnr = rm_matnr)

Join is working fine and giving me output but I like to know this is the proper syntax or not

5 REPLIES 5
Read only

Former Member
0 Likes
653

Hi John,

In your selection query do you have any where clause ?

I can see that you r fetching single record with field EWBEZ ? What is where clause condition for this query ? Since you r fetching single field from TWEWT table why inner join is required ?

Can you paste the full selection query ?

Thanks & Regards,

Arun

Read only

0 Likes
653

Hi Aruna,

I  have  only material number value.

so I have to write like I have to fetch twewt-ewbez  for  mara-extwg  when mara-matnr = my_matnr

..

How Can I achieve this?

Read only

0 Likes
653

Hi John,

Can you paste full inner join selection query ?

Thanks & Regards,

Arun

Read only

Former Member
0 Likes
653

the same as  in the first post

Read only

Former Member
0 Likes
653

I have done it aruna , thanks