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: 

sql statement

Former Member
0 Kudos

hi all

i want to store the record into an internal table. What is the syntax?

example

select name from student where class = 'abc'.

i want to store all the name from the class 'abc' into a internal table. How can i do it? thankz.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Gary,

data: begin of itab occurs 0,

name type student-name,

end of itab.

select name

from student

INTO TABLE itab

where class = 'abc'.

Regards,

Atish

1 REPLY 1

Former Member
0 Kudos

Hi Gary,

data: begin of itab occurs 0,

name type student-name,

end of itab.

select name

from student

INTO TABLE itab

where class = 'abc'.

Regards,

Atish