‎2008 Apr 22 5:15 PM
Hi,
I got error message when execution of my program..it says..
error 23 when accessing table vttk.
and the program got terminated at statrt of selection point itself.
here is the select statement I have used..can someone help me out in fixing this.
do u need to declare seperate internal table for zmmda.
Start-of-selection.
select t001bukrs t001butxt
vttkdtabf vttktknum
vttkroute likpvbeln
likpinco1 likplfdat
vttktext3 vttktext1
vttk~add04
zmmda~docnum
into corresponding fields of table int_vttk
from ( ( ( ( ( vttk
inner join ttds
on ttdstplst eq vttktplst )
inner join t001
on t001bukrs eq ttdsbukrs )
inner join vtfa
on vtfavbelv eq vttktknum )
inner join likp
on likpvbeln eq vtfavbeln )
left outer join zconshpmnt
on zmmdatdocnum eq vttktknum )
where vttk~dtabf in s_dtabf
and vttk~shtyp in s_shtyp
and vttk~tdlnr in s_tdlnr
and vttk~route in s_route
and ttds~bukrs in s_bukrs
and vtfa~vbtyp_v eq '8'
and vtfa~vbtyp_n eq 'J'.
Stal.
‎2008 Apr 24 9:29 PM
First of all, you have zmmda in one place and zmmdat in another. Second, I don't even see either table joined in the SELECT statement. Instead, you have a join in some table ZCONSHPMNT, which doesn't have corresponding ON.
I'm not sure how it even got past the syntax check.
‎2008 Apr 24 9:36 PM
I have no SAP system to check, but problem could be this:
left outer join zconshpmnt
on zmmdatdocnum eq vttktknum )
zmmdat -> shouldn't this be zconshpmnt?