Passing value to Work area Column dynamically
I have a requirement to pass value to work area field and field name will be dynamic.
Below are details :
1. Loop at string
2. split values according to offset and length
3. now first value for field lifnr is available in w_lifnr.
4. Now move w_lifnr to w_itab-lifnr ........................... here field lifnr of w_itab will be dynamic. it will vary in each iteration.
How can we change fields of work area dynamically and move respective values?
like w_itab-(w_field) and w_field will have different value in each iteration like lifnr,vtweg,vkorg etc.
We cannot hardcode these values ,field name of w_itab needs to be passed dynamically.
Is there any way?