Skip to Content
author's profile photo Former Member
Former Member

Read Statement

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 06:55 PM

    Hi,

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

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 07:00 PM

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

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2006 at 07:01 PM

    Hi,

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

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.