Application Development 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: 

use of 2 inner joins on 3 tables

Former Member
0 Kudos

I want to use 2 inner joins on 3 tables i.e. ekko,ekpo,ekbz.follwing is code where there is an error;how to proceed:-

select pMENGE pDMBTR into (a1,aamt1)

from (( ekko as

f inner join ekbz as p on febeln = pebeln )

where p~bewtp = 'F' " DCGR

and f~bedat = itab-bedat

inner join ekpo as t on febeln = tebeln ).

2 REPLIES 2

ThomasZloch
Active Contributor
0 Kudos

move the WHERE-conditions after the last JOIN.

Thomas

Former Member
0 Kudos

Hi There,

NO matter Howmany Joins You using WHERE conditions after all the joins...

re