‎2008 Dec 12 6:59 AM
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.
‎2008 Dec 12 7:01 AM