on 11-30-2007 11:04 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Point hunting?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Index is loop Index and Tabix is Index of Internal table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.