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 syntax

Former Member
0 Likes
841
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
Read only

ferry_lianto
Active Contributor
0 Likes
804

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

ferry_lianto
Active Contributor
0 Likes
805

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

Read only

amit_khare
Active Contributor
0 Likes
804

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

Read only

Former Member
0 Likes
804

vbeln unknown

Read only

Former Member
0 Likes
804

how do i write the join

Read only

Former Member
0 Likes
804

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

Read only

Former Member
0 Likes
804

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.

Read only

Former Member
0 Likes
804

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

Read only

ferry_lianto
Active Contributor
0 Likes
804

Hi,

Did you try above my sample code?

Let me know ...

Regards,

Ferry Lianto