Application Development and Automation 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: 
Read only

Variable Field name while calling WA

Former Member
0 Likes
467

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
Read only

Former Member
0 Likes
430

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

Read only

Former Member
0 Likes
430

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