Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 07, 2016 at 03:20 PM

    like this?

    fieldname is in FNAM

    assign (fnam) to <fs>.

    <fs> contains field value

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 07, 2016 at 06:14 PM

    First

    assign (fnam) to <fs>.

    Then

    <fs> = dref->*.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.