02-11-2011 5:24 AM
Hi All,
I have a scenario where in my work area description is stored inside a text variable, say,
v_text = 'wa_temp-age'. ( Actually wa_temp-age contains value 20)
The content of v_text is dynamic.
Now I want to populate that value in another variable.
i.e v_age = (value of content stored v_text).
02-11-2011 11:41 AM
DATA:wa_text TYPE char20,
v_text TYPE char20,
v_age TYPE char20.
FIELD-SYMBOLS:<fs> TYPE ANY.
wa_text = '12345'.
v_text = 'WA_TEXT'.
ASSIGN (v_text) TO <fs>.
v_age = <fs>.
WRITE v_age.
02-11-2011 6:39 AM
Hi
You can do it by using field symbols. If you just copy a part of your code then it would be good to explain.
Best Regards,
Nikhil Patil
02-11-2011 11:41 AM
DATA:wa_text TYPE char20,
v_text TYPE char20,
v_age TYPE char20.
FIELD-SYMBOLS:<fs> TYPE ANY.
wa_text = '12345'.
v_text = 'WA_TEXT'.
ASSIGN (v_text) TO <fs>.
v_age = <fs>.
WRITE v_age.
02-13-2011 6:09 AM