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: 

Variable Field name while calling WA

Former Member
0 Kudos

Hello All,

This might sound very weird but can we do something like this..

data : variable type string value 'FIELD1'.

loop at itab.
   wa-(variable) = 'Some Value..!'.
   append wa to itab.
endloop.

Meaning, can we use a variable as a Field name while calling wa-Field1...??

Any pointers ???

Thanks,

Tatvagna Shah.

2 REPLIES 2

Former Member
0 Kudos

It seems Forum is quite active, as soon as i posted this question, it went to the second page!!

Former Member
0 Kudos

Closing....It just dies of age..!