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 statements

Former Member
0 Likes
623

Hi,

I hve problem in this statement, only vttk values get populated and not the likp or ttds...

SELECT ktknum tbukrs kroute kdtabf kadd04 ktext2 ktext3 ktext1 lvbeln linco1 l~ntgew

l~btgew

INTO TABLE gt_vttk

FROM vttk AS k INNER JOIN vttp AS

p ON ktknum = ptknum

INNER JOIN ttds as

t on ttplst = ktknum

INNER JOIN likp AS

l ON pvbeln = lvbeln

WHERE k~tknum in s_tknum.

SORT gt_vttk BY tknum.

can someone check this and tell me whats wrong...

Stal.

3 REPLIES 3
Read only

Former Member
0 Likes
531

Hello,

I suggest you to use FOR ALL ENTRIES, first because the performance and second that it made you debug and see the problem.

Regards,

Read only

Former Member
0 Likes
531

Hi,

Your second inner join (below one) is not correct. here you are doing the join comparing shipment document (TKNUM) with Transportation planning point (TPLST). Please correct it.

t on ttplst = ktknum

Read only

Former Member
0 Likes
531

Hi,

Check your select query and correct it like this

t on ttplst = ktknum this is wrong.

correct like this.

t on ttplst = ktplst .

Regards,

Kinjal