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: 

select single with join

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI

IF YOU DON'T MIND CAN YOU TEL ME WHAT YOUR TRYING TO DO THERE

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

HI

IF YOU DON'T MIND CAN YOU TEL ME WHAT YOUR TRYING TO DO THERE

alejandro_bindi
Active Contributor
0 Kudos

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.