Skip to Content
0
Former Member
Feb 10, 2010 at 09:18 PM

Simple Select Issue.

28 Views

Hello experts,

Iu2019m trying to write a simple select but canu2019t make it working. All Iu2019m trying to do is to get values from KNA1 into 2 variables as follows.

select kunnr ktokd into v_kunnr v_ktokd

from kna1

where kunnr = v_kunnr.

endselect.

When I check SAP says u201CV_KTOKDu201D is not expected. However when I do the same code for 1 variable it work fine.

select kunnr into v_kunnr

from kna1

where kunnr = v_kunnr.

endselect.

Can please somebody correct my mistake.

Thanks a lot in advance,