Skip to Content
0
Former Member
Nov 09, 2006 at 11:53 PM

Refer to a variable via another variable

24 Views

Hi all,

I have a structure with many fields eg

begin of struc

field01

field02

fieldnn

end of struc

I then work out a variable to get to one field in struc eg

concatenate 'struc-field' lv_num into lv_temp.

(lv_temp now has 'struc-field15' in it as a value).

I would like to use something like:

move '12345' to lv_temp. (where I want the value 12345 to end up in struc-field15 not in lv_temp).

Any help will be appreciated.

Regards

Michael