This is a sample program :
data : BEGIN OF itab OCCURS 0,
aubel type vbrp-aubel,
aupos type vbrp-aupos,
end of itab.
data : BEGIN OF itab1 OCCURS 0,
ebeln type mseg-ebeln,
ebelp type mseg-ebelp,
end of itab1.
select vbrp~aubel
vbrp~aupos from vbrp
into CORRESPONDING FIELDS OF TABLE itab.
select ebeln
ebelp from mseg
into CORRESPONDING FIELDS OF TABLE itab1 FOR ALL ENTRIES IN itab1 where ebelp = itab-aupos.
it shows syntax error The WHERE condition does not refer to the FOR ALL ENTRIES table. -
it shows syntax error because technical attribute of mseg-ebelp and vbrp-aupos are different..
this error can be solved by using inner join but my requirement is to use for all entries statement.
Kindly help.
Regards,
Sandeep