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

Syntax error with innerjoins

Former Member
0 Likes
398

Hello,

Kinldy check the below select statement and correct the error.

Error is : You cannot compare with 'MVKE-MATNR' Each comparision in the ON condition must contain a field from the RH table.

select j_1bnflinwerks j_1bnflinmatnr j_1bnflin~menge

j_1bnflinnbm j_1bnfdocnfnum j_1bnfdoc~series

j_1bnfdocpstdat j_1bnfdocdocnum j_1bnfdoc~parid

j_1bnflinitmnum j_1bnflinstatit j_1bnflin~refkey

j_1bnflinrefitm j_1bnfdocbranch j_1bnflin~charg

j_1bnfdocnftype j_1bnflincfop

into table ti_aux_detalhe

from j_1bnflin

inner join nast

on j_1bnflindocnum = nastobjky

inner join j_1bnfdoc

on j_1bnflindocnum = j_1bnfdocdocnum

inner join mara

on j_1bnflinmatnr = maramatnr

inner join mvke

on j_1bnflin~matnr = mvke-matnr

where j_1bnfdoc~branch in so_bran

and j_1bnflin~werks in p_centro

and mara~mtart in r_mtart.

1 REPLY 1
Read only

Former Member
0 Likes
365

problem is solved