02-25-2009 5:23 PM
Hello,
I am using field-symols for dynamic internal table and dynamic wo0rk areas.
When I do following, the dynamic work area gets updated with the value of field in SF4. The <dyn_wa> is also automactially updated with value of field SF4 field which is equated to <DATA> in code (a) below.
a)
ASSIGN COMPONENT v_component of STRUCTURE <dyn_wa> TO <DATA>.
<DATA> = SF4
But when I do following, I see that <DATA> now contains value of field SF4 but the
dynamic work area still does not have value of <DATA>.
b)
ASSIGN COMPONENT v_component of STRUCTURE <dyn_wa> TO <DATA>.
v_screenfield = SF4.
assign (v_screenfield) to <DATA>
I want to use code technique (b) because then I would not have to code for case-endcase for each screen-fields, but I want to make sure that dynamic work area gets updated as in code (a).
Regards,
Jainam.
02-25-2009 5:27 PM
I think SF4. is the field name. then
v_screenfield = 'SF4'. " Put this in single quotes
write (v_screenfield) to <data>.
and try.
a®
02-25-2009 5:27 PM
I think SF4. is the field name. then
v_screenfield = 'SF4'. " Put this in single quotes
write (v_screenfield) to <data>.
and try.
a®
02-25-2009 6:30 PM
Well there is issue with write statement for date. The date gets convrted to user format.
So, if v_screenfild = 20090202, the execution of statement below will cause <data> to have 02.02.2009 (user defined format) but I want <data> = 20090202
v_screenfield = 'SF4'. " Put this in single quotes
write (v_screenfield) to <data>.
Regards,
Jainam.