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

select single with join

Former Member
0 Likes
1,585

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
Read only

Former Member
0 Likes
875

HI

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

3 REPLIES 3
Read only

Former Member
0 Likes
875

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

Read only

Former Member
0 Likes
876

HI

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

Read only

alejandro_bindi
Active Contributor
0 Likes
875

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.