Application Development 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: 

select statement problem

Former Member
0 Kudos

Hi,

I am getting problem in select statement.

Plz let me know what's the problem

SELECT SINGLE KUNNR LAND1 NAME1

INTO (LV_KUNNR, LV_LAND1, LV_NAME1)

FROM KNA1.

5 REPLIES 5

Former Member
0 Kudos

Hi Salil,

I don't see any issue with the Select statement.

Hope you have defined the variables properly.

May be some issue before this statement. Check.

Manish

Message was edited by: Manish Kumar

Former Member
0 Kudos

<deleted>

pls post ur error

Former Member
0 Kudos

Hi Singh,

I dont find any problem with this select.have u decleared LV_KUNNR, LV_LAND1, LV_NAME1 these variables?

Thanks

Vikranth Khimavath

Former Member
0 Kudos

with or without space it's the same.

2 possibilities :

you did have a LV Structure so the field is LV-KUNNR

you did forget to define LV_KUNNR and the other 2.

the Statement is correct. check your coding before the select statement.

Former Member
0 Kudos

Hi Salil

I copied your code and wrote it in abap editor and i am getting the output , see the below code

data: lv_kunnr like kna1-kunnr.

data: lv_land1 like kna1-land1.

data: lv_name1 like kna1-name1.

select single kunnr land1 name1

into (lv_kunnr, lv_land1, lv_name1)

from kna1.

write: / lv_kunnr,

lv_land1,

lv_name1.

Thanks