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: 

How to move value of field symbol to a variable?

Former Member
0 Kudos

Hi friends,

pls see the code below.

field-symbols:<fs>.

data: x type c value 1,

y type c.

assign x to <fs>.

Now want to move <fs> value into variable y. how to do it?

Regards

Jaker.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Simply write y = <fs>.

This will do.

Regards,

Himanshu

Former Member
0 Kudos

you do it like you do for normat fields...

e.g. move <fs> to y.

just ensure that field symbol and the field are of same type.

0 Kudos

please you  can do below like that..

DATA: lv_v type c.

LV_V = <FS>

or MOVE <FS> to LV_V