‎2008 May 06 6:16 PM
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.
‎2008 May 06 6:28 PM
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,
‎2008 May 06 6:31 PM
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
‎2008 May 06 11:54 PM
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