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: 

Read Statement

Former Member
0 Kudos

Hello friends,

I have to read a internal table based on it_zzsd-Kunnr.

I am using,

READ TABLE it_knvv WITH KEY kunnr = it_zzsd-kunnr.

However in table it_knvv there are multiple records for a single it_zzsd-kunnr.

I just want to pick the first.

Will the read statement serve my purpose or it wont.

Shejal.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Yes..READ TABLE will pick the first record that matches the key..

Thanks,

Naren

4 REPLIES 4

Former Member
0 Kudos

Hi,

Yes..READ TABLE will pick the first record that matches the key..

Thanks,

Naren

Former Member
0 Kudos

It will pick the first, but that first record will depend on the order in which it is sorted.

Rob

ferry_lianto
Active Contributor
0 Kudos

Hi,

Yes, you can use READ TABLE statement to select first record when the condition is matching.

Regards,

Ferry Lianto

0 Kudos

Thanks Everyone.

Shejal.