Skip to Content
0

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

Dec 07, 2016 at 01:34 PM

51

avatar image
Former Member

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->*.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Volker Binder Dec 07, 2016 at 03:20 PM
0

like this?

fieldname is in FNAM

assign (fnam) to <fs>.

<fs> contains field value

Share
10 |10000 characters needed characters left characters exceeded
Horst Keller
Dec 07, 2016 at 06:14 PM
0

First

assign (fnam) to <fs>.

Then

<fs> = dref->*.

Share
10 |10000 characters needed characters left characters exceeded