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

sy-tabix for internal table in smartform

Hi friends,

How to capture the sy-tabix value for the entries in an internal table which has been looped into the loop of table node of a smartform?? I need to print something immedaitely after the end of the table

For every record the value of sy-tabix is showing 1 !!

Advance Thanks

Aadarsh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2005 at 06:46 AM

    Hi Aadarsh,

    Give ur sy-tabix at the end of the loop.

    loop at itab.

    //table node populations.

    endloop.

    give a seperate loop for this.

    loop at itab.

    sy-tabix.

    endloop

    get the total no and print it after the table.

    If u r using do loop then give sy-index.

    Hope tihs helps u,

    Regards,

    Nagarajan.

    Message was edited by: Nagarajan Kumarappan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2005 at 06:45 AM

    Hi Adarsh,

    Have a local variable declared in the smart form.

    After the loop, create a program code node, and just keep incrememnting this. This will just simulate your sy-tabix.

    Remember to reset it once your looping is done.

    Pls reward points & close the thread if your Q is answered.

    Rgds,

    Prabhu>

    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.