Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

using dynamic fieldname while updating work area

uttam_kumar4
Explorer
0 Likes
489

Hi All,

I am getting data from CDPOS and I have to show this on an ALV . Depending upon which field is changed we have to update that field in work area and other fields should remain same as current from actual table.

How can I use this .

I have to create the work area then append it to internal table.

Thanks & Regards,

Rahul

3 REPLIES 3
Read only

roberto_vacca2
Active Contributor
0 Likes
462

Hi..

Declare field symbols work as dynamic memory area where you create a pointer to your static memory area. When you update a field-symbol you're going to change the static area (HEAP/STACK memory)

You can move to a work-area and change your data. What's your purpose?

Hope to help

Bye

Read only

0 Likes
462

I solved it before you reply ..your reply is correct.

Read only

0 Likes
462

Hi Roberto,

I am writing this logic but it is not working.

loop at lt_cdpos into lw_cdpos_op.

READ TABLE gt_op_status INTO lw_op_current INDEX lv_current.

             CONCATENATE 'LW_OP_CURRENT-' lw_cdpos_op-fname INTO lv_value_one.

             ASSIGN lv_value_one TO <fs_any_new>.


<fs_any_new> = lw_cdpos_op-oldvalue.


endloop.

but it is not changing value of workarea field LW_OP_CURRENT-FIELDNAME.

Please check.