Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 07, 2016 at 03:20 PM

    like this?

    fieldname is in FNAM

    assign (fnam) to <fs>.

    <fs> contains field value

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 07, 2016 at 06:14 PM

    First

    assign (fnam) to <fs>.

    Then

    <fs> = dref->*.

    Add comment
    10|10000 characters needed characters exceeded