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 kunnr from vapma

ayoub695847
Explorer
0 Kudos

Hello,

Im new in abap programing, i want to display all the values in field kunnr from vapma into a field i ve created in my infoset so i did :

SELECT kunnr FROM vapma
INTO t_kunnr
where matnr = mast-matnr.
ENDSELECT.

but it only display one value i want all the values .

Thank you.

4 REPLIES 4

matt
Active Contributor

You've not displayed all your code. The data definitions are important for context. It looks to me like you've defined a table with a header line. The form of SELECT you're using will only fill the header.

In any case, go through the ABAP documentation for keyword SELECT and see if you can find out how to select into a table. Reading the documentation will teach you far more than anyone spoonfeeding answers to you.

0 Kudos

okay thank you t_kunnr is not an internal table in this case it's just an additional field i ve created

0 Kudos

As field holds only single value its displaying one value , if you declare internal table and if you display you will get all values.

ayoub695847
Explorer
0 Kudos

okay thank you