When processing an internal table with the statement LOOP AT itab... ENDLOOP, what system variable contains the current row number?
21 comments · newest first
SH
Shawnda
11 months ago
Wait, is it really sy-tabix? I thought it was something else!
RO
Ronald
11 months ago
Nope, it's not sy-linno.
TO
Tonette
11 months ago
I thought it was sy-index?
AL
Alverta
11 months ago
Agreed, sy-tabix is the one!
AN
Anastacia
12 months ago
It's definitely sy-tabix!
IR
Irving
12 months ago
I’m leaning towards sy-tabix too, since it’s used for table processing, but I could be mixing it up with something else.
DO
Donte
1 year ago
I’m a bit confused; I thought sy-linno was related to line numbers in output, not internal tables.
RO
Roselle
1 year ago
I remember practicing a question like this, and I believe sy-index was mentioned as well.
TY
Ty
1 year ago
I think the current row number is stored in sy-tabix, but I’m not completely sure.
DA
Daron
1 year ago
I'm a bit confused on this one. Is it sy-index or sy-tabix? I know one of those is used to track the current row, but I can't remember which one. I'll have to review my notes to be sure.
JE
Jesusa
1 year ago
Okay, let me think this through step-by-step. When we use LOOP AT, we're iterating through the rows of an internal table. The system variable that keeps track of the current row number is sy-index. I'm pretty sure that's the right answer.
AN
An
1 year ago
Hmm, I'm not totally sure about this one. I know we use the LOOP AT statement to iterate through internal tables, but I can't remember which system variable holds the current row number. I'll have to think this through carefully.
AL
Alethea
1 year ago
This one seems pretty straightforward. I'm pretty confident the answer is sy-index.
RO
Robt
1 year ago
I believe it's A) sy-index because it represents the current row number in the internal table.
LA
Lavina
1 year ago
I'm not sure, but I think it might be D) sy-tabix.
AR
Argelia
1 year ago
I agree with Celia, sy-index makes sense for the current row number.
FR
Franchesca
1 year ago
Definitely sy-tabix! That's the one we use to keep track of the current row number in the internal table.
LU
Luther
1 year ago
B) sy-subrc
GE
Georgiann
1 year ago
A) sy-index
SH
Shawnda
1 year ago
A) sy-index
CE
Celia
1 year ago
I think the answer is A) sy-index.