Application Development 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: 

assign data->* to (name)???

Former Member
0 Kudos

Hi,

I have a value (type ref to data): lr_data

I need to assign lr_data->* to a variable, but the name of the variable is determined at runtime and is in lv_name (for example: <lv_data>).

So i need something like assign lr_data->* to (lv_name) that at the end

<lv_data> is lr_data->*.

2 REPLIES 2

former_member226519
Active Contributor
0 Kudos

like this?

fieldname is in FNAM

assign (fnam) to <fs>.

<fs> contains field value

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

First

assign (fnam) to <fs>.

Then

<fs> = dref->*.