Skip to Content
0
Former Member
Dec 19, 2006 at 03:46 AM

Which to use -> Sy-index or sy-tabix ??

25 Views

This is what i found out about SY-INDEX and SY-TABIX but which one to use when i want to delete a line of data from an internal table ? I tried both sy-index and sy-tabix and both works fine and returning the expected output for me but which one is better of to use ?

SY-TABIX :- For Internal Table, Current Line Index

SY-INDEX :- For Loops, Current Loop Pass

The below code is where i uses the Delete ..

LOOP AT dmg.

CONCATENATE

dmg-dmg00

dmg-dmg01

dmg-dmg02

dmg-dmg03

dmg-dmg04

dmg-dmg07

dmg-dmg08

dmg-dmg09 INTO tli_down1 SEPARATED BY '*'.

APPEND tli_down1. CLEAR tli_down1.

DELETE dmg INDEX sy-index.

EXIT.

ENDLOOP.