Skip to Content
0
Former Member
Jan 19, 2008 at 03:14 PM

Can we use use ' join ' with in a function module !!!

12 Views

In my case its giving an error

SELECT vbak~vbeln

vbak~erdat

vbak~vkorg

ABRVW

augru

kunnr

posnr

matnr

vbap~vkaus

vbap~spart

vbap~netwr

vbap~waerk

kwmeng

kondm

mvgr1

mvgr2

mvgr3

mvgr4

mvgr5

FROM vbak AS vbak INNER JOIN vbap AS vbap

ON vbakvbeln EQ vbapvbeln

INTO corresponding fields of TABLE tvbak

WHERE vbak~vbeln = vbeln1.

for the above code which is a part of function module.its

giving run time exception.....as its saying it cant read data from table VBAK.....NEED HLP