Skip to Content

Get Reference To structure by name.

I figure there's probably a way to do what I'm wanting, but I've not been able to word search terms to find what I'm looking for.

I have read in the the names of the select options of my report from the text pool. I would now like to use these names to reference the select-options of the program. See the blue highlighted text in the code snippet below.

DATA: texts TYPE TABLE OF textpool,

w_text LIKE textpool.

READ TEXTPOOL 'ZPROG' INTO texts LANGUAGE 'E'.

DELETE texts WHERE id NE 'S'.

DATA: SELTAB TYPE TABLE OF RSPARAMS,

SELTAB_WA LIKE LINE OF SELTAB.

LOOP AT texts INTO w_text.

MOVE-CORRESPONDING (This is where I want to use the field w_text-key which contains the select option name) to move the contents of the select-options into seltab_wa) INTO seltab_wa.

ENDLOOP.


Any input would be appreciated, even if it's to tell me I'm a fool and it can't be done.


Thanks,

-Chris

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 14, 2016 at 02:27 PM

    Why can't you use 'RS_REFRESH_FROM_SELECTOPTIONS'?

    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.