‎2004 Aug 25 6:43 AM
we have a scenario, where the work area field that i need to populate is not known till runtime. how do i dynamically populate the correct workarea field.
presently i am doing :
case job-keyfig.
when 'Z_FFORD'.
wa-zfford = keyval.
endcase.
what i need is something like this :
wa-(job-keyfig) = keyval.
any answers ? please reply asap.
‎2004 Aug 25 7:15 AM
Hi,
have look at this, hope this will help.
DATA name(20).
name = 'SBOOK'.
FIELD-SYMBOLS <fs> TYPE ANY.
ASSIGN name TO <fs>.
CASE <fs>.
WHEN 'BOOK'.
WHEN 'SBOOK'.
WRITE ' SBOOK'.
ENDCASE.
Regards,
Prabhu Rajesh.
‎2004 Aug 28 3:20 PM
The best solution for this is to use the Field-symbol of type any and use the assign statement. Using that you can solve your problem.
Regards,
amit
‎2004 Sep 06 3:11 PM
Hello,
A small example could be :
PARAMETERS: pa_fname TYPE fieldname.
FIELD-SYMBOLS: = 'XX'.
Regards,
Sükrü