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

ABAP

Hi All,

Pleae can anybody expalins me what is the difference between sy-tabix and sy-index(Loop Index) ?

Because in one case i am Modifyimg the internal table inside the do loop by giving sy-index ((Index of Internal Tables)(MODIFY scarr_tab INDEX sy-index FROM scarr_wa TRANSPORTING currcode. ) in the syntax and in other case inside loop statement i am modifyng same record by giving sy-tabix MODIFY scarr_tab INDEX sy-tabix FROM scarr_wa TRANSPORTING currcode.) in the syntax.In both cases its working fine but i am not getting which one i have to use where to modify the internal table?

regards

Satya

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 02:09 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:27 AM

    Index is loop Index and Tabix is Index of Internal table.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Satya,

      <b>Sy-tabix</b> is nothing but Table index , This should be used between LOOP and ENDLOOP as a record counter in an Internal tables. where <b>sy-index</b> it is also used as a counter and is used between DO and ENDDO for identifying the number of times these statments were performed .

      Regards,

      Narendra.

  • Posted on Nov 30, 2007 at 05:40 PM

    Point hunting?

    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.