Skip to Content
0
Former Member
Oct 28, 2005 at 10:50 AM

select statment not working with variables

27 Views

Hi experts,

Iam trying to select some data using the follwoing code

with radio buttons r6 & r7.

If r6 selected,it takes from parameter and

if r7 selected it takes from select options...

data: l_datbi type a005-datbi,l_datab type a005-datab.

if r6 = 'X'.

l_datbi = pvalid.

l_datab = pvalid.

elseif r7 = 'X'.

l_datab = svalid-low.

l_datbi = svalid-high.

endif.

select vtweg matnr knumh datbi datab into corresponding fields of i_itab

from A004

where kappl eq 'V'

and kschl eq pkschl

and vkorg eq pvkorg

and vtweg in svtweg

and matnr in smatnr

and datab le l_datab #######

and datbi ge l_databi. #######

This select statement is not working.

It is taking only one value at a time.(r6 value or r7value)

What might be the reason...?

reward gurarenteed

maggy