Skip to Content
0
Former Member
May 08, 2010 at 03:18 AM

Change Variable Name

84 Views

Hi

I have a requirement where I want to loop 10 times over an internal table, but passing the same value to all.

For ex.

Do 10 times.
Read table itab into wa index sy-index.
  if sy-subrc = 0.
    var1 = wa-field.
  endif.
Enddo.

My requirement is to change this VAR1 to VAR2 in next iteration, then to VAR3.......upto VAR10 for every iteration of loop.

Regards

Kapil