07-18-2019 2:19 PM
Hello everyone,
I have a variable in which I have stored the name of an i/o field from a screen. How can I assign a value to that i/o field using the name from the variable?
07-18-2019 2:42 PM
Hi,
something like this should work:
PARAMETERS: p_value TYPE char10..
DATA : gv_variable TYPE char10 VALUE 'P_VALUE' .
FIELD-SYMBOLS : <fs> TYPE any.
ASSIGN (gv_variable) TO <fs>.
<fs> = 'Testing'.
write: 'writing :', p_value.
07-18-2019 2:42 PM
Hi,
something like this should work:
PARAMETERS: p_value TYPE char10..
DATA : gv_variable TYPE char10 VALUE 'P_VALUE' .
FIELD-SYMBOLS : <fs> TYPE any.
ASSIGN (gv_variable) TO <fs>.
<fs> = 'Testing'.
write: 'writing :', p_value.
07-18-2019 4:00 PM
And it works for any variable of course, not only for global variables corresponding to screen fields.
07-19-2019 8:37 AM