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

Count rows in an internal table

Anybody how knows how I can count rows in my internal table?

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 19, 2005 at 06:00 AM

    Linn,

    Try this:

    data: l_lines type i.

    describe table itab lines l_lines.

    Cheers,

    Pat.

    PS. Kindly assign Reward Points to the posts you find helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 06:00 AM

    hi,

    try this one

    DATA: N TYPE I,

    DESCRIBE TABLE ITAB LINES N.

    cheers

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2005 at 06:01 AM

    With release 6.10 there is the statement lines( ). In prior releases you can stick to the describe statement.

    Regards

    Klaus

    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.