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 syntax

Former Member
0 Kudos
98
select zterm vtext 
from tvzbt into table itab8 
for all entries in itab4 
where zterm = vbkd-zterm and vbkd-vbeln = itab4-vbeln and spras = sy-langu.

Error is Field "VBKD-VBELN" unknown.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos
61

Hi,

Please try this.


select tvzbt~zterm tvzbt~vtext 
from tvzbt inner join vbkd on tvzbt~zterm = vbkd~zterm
into table itab8 
for all entries in itab4 
where vbkd~vbeln = itab4-vbeln 
and tvzbt~spras = sy-langu.

Regards,

Ferry Lianto

8 REPLIES 8

ferry_lianto
Active Contributor
0 Kudos
62

Hi,

Please try this.


select tvzbt~zterm tvzbt~vtext 
from tvzbt inner join vbkd on tvzbt~zterm = vbkd~zterm
into table itab8 
for all entries in itab4 
where vbkd~vbeln = itab4-vbeln 
and tvzbt~spras = sy-langu.

Regards,

Ferry Lianto

amit_khare
Active Contributor
0 Kudos
61

where zterm = vbkd-zterm and <b>vbkd-vbeln = itab4-vbeln</b> and spras = sy-langu.

You cann not check the VBKD in the select statement where it is not used with FROm or JOIN clause.

Regards,

Amit

Former Member
0 Kudos
61

vbeln unknown

Former Member
0 Kudos
61

how do i write the join

Former Member
0 Kudos
61

Hello,

In the below select u r selecting data from the table TVZBT.


select zterm vtext 
from tvzbt into table itab8 
for all entries in itab4 
where zterm = vbkd-zterm 
   and vbkd-vbeln = itab4-vbeln   "  Check here
   and spras = sy-langu

Instead give like this

"Check Here   and vbeln = itab4-vbeln   "  Check here

Regards,

Vasanth

Former Member
0 Kudos
61

megan,

try this

select zterm vtext

from tvzbt into table itab8

for all entries in itab4

where zterm = vbkd-zterm and <b>vbeln = itab4-vbeln</b> and spras = sy-langu.

hope it will work.

Regards....

Arun.

Former Member
0 Kudos
61

these statements dont work. it gives me unknown field error

I want to select zterm vtext from tvzbt

vbkd and tvzbt have zterm in common

and vbkd and vbak have vbeln in common

ferry_lianto
Active Contributor
0 Kudos
61

Hi,

Did you try above my sample code?

Let me know ...

Regards,

Ferry Lianto