2016 Jul 14 3:19 PM
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
2016 Jul 14 3:27 PM
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
2016 Jul 14 3:27 PM
2016 Jul 14 3:31 PM
I was not aware that existed, that's awesome. Thank you very much!
2016 Jul 15 10:08 AM
Hi Chris,
Moderator Message :
Good to see that your problem is resolved.
A simple SCN or Google search could have solved your problem , please make this a habit before posting here.
Regards
Kesav
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |