2019 Jul 18 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?
2019 Jul 18 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.
2019 Jul 18 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.
2019 Jul 18 4:00 PM
And it works for any variable of course, not only for global variables corresponding to screen fields.
2019 Jul 19 8:37 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |