Skip to Content
avatar image
Former Member

Display a counter

How can I dispaly the total number of records that is in my internal table in the form?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    Apr 04, 2007 at 09:32 AM

    hi,

    use <b>describe table itab lines w_line.</b>

    before calling write form.

    print the same variable in script &w_line&

    regards,

    ananth.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ravikanth Talagana

      hello...........

      did u get more information in that thread..

      basic RULE is to close the thread when u get the answer , and give the points to the person who gave the answer..

      i think you forgot the Basics...

  • avatar image
    Former Member
    Apr 04, 2007 at 09:27 AM

    make use of keyword DESCRIBE

    press F1 in ABAP editor on that keyword

    and pass the same value to Form.

    Regards

    Prabhu

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 04, 2007 at 09:28 AM

    YU can use the Describe statement to find the numberof lines in the itab.

    describe table itab lines v_lines. "V_lines wil have the number of records in the itab.

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2007 at 09:31 AM

    hi,

    do this way...

    data : v_lines type i.

    describle table itab lines v_lines.

    you can even use <b>SY-TFILL</b> variable

    REgards,

    Santosh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2007 at 09:31 AM

    yes as prabu told u have to use the DESCRIBE command to know number of records in an internal table.

    V_LINES TYPE SY-TABIX.
    DESCRIBE TABLE IT_TAB LINE V_LINES.

    Please Close this thread.. when u r problem is solved. Reward all Helpful answers

    Regards

    Naresh Reddy K

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2007 at 09:32 AM

    data: g_lin typ i.

    describe table itab lines g_lin.

    g_lin contains the no.of records in itab.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2007 at 09:36 AM

    data: g_lin typ i.

    describe table itab lines g_lin.

    g_lin contains the no.of records in itab.

    Add comment
    10|10000 characters needed characters exceeded