07-13-2007 1:25 PM
Hi
some problem at <b>INTO</b>. Pls can any one suggest something.
the format of ( vbakvbeln eq lipsvgbel ) is not correct. It is problem with ( ) and space.
select single lipsvbeln vbakkunnr
from lips
inner join vbak
on ( vbakvbeln eq lipsvgbel )
into (lips-vbeln,vbak-kunnr)
where lips~vbeln eq likp-vbeln.
Regards
Thiru.
07-13-2007 1:42 PM
07-13-2007 1:34 PM
See the example code :
report zxyz.
data : begin of wa_makt,
matnr like mara-matnr,
maktx like makt-maktx,
end of wa_makt.
parameters p_matnr like mara-matnr.
start-of-selection.
select single amatnr bmaktx into wa_makt
from mara as a inner join makt as b on bmatnr = amatnr
where a~matnr = p_matnr.
write:/ wa_makt.
Thanks
Seshu
07-13-2007 1:42 PM
07-13-2007 2:00 PM
Use the TABLES adition as in this code:
TABLES: likp,
lips,
vbak.
SELECT SINGLE lips~vbeln vbak~kunnr
FROM lips
INNER JOIN vbak
ON ( vbak~vbeln EQ lips~vgbel )
INTO (lips-vbeln,vbak-kunnr)
WHERE lips~vbeln EQ likp-vbeln.
Please reward points if this solves your problem.