Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

hello

Former Member
0 Kudos

what system variable is reset at the exit of a loop of an internal table?

7 REPLIES 7

Former Member
0 Kudos

Hi,

SY-Index and the SY-TABIX will be reset.

Regards

Sudheer

Former Member
0 Kudos

sy-tabix.

regds,

kiran

Former Member
0 Kudos

Hi,

When you exit from the loop... the SY-TABIX is set back to the first record index. For example... if you exit loop when sy-tabix = 5., the sy-tabix would contain 1 outside the loop.

Regards,

Vara

Former Member
0 Kudos

Hi Darsh,

Sy-subrc will be reset.

ohter variables like sy-tabix remains smae until new loop starts.

Reward points for helpful answers.

Ashven

0 Kudos
sy-tabix  and sy-subrc

<b><i>is reset while exiting from the loop</i></b>.

0 Kudos

Hi Chidanand,

Create an internal table in prgram & append two or three line in it. execute the program in debugging mode & watch out the result.

Ashven

Former Member
0 Kudos

Hi

While exiting from the loop <b>SY-TABIX</b> refreshes to 1.