Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get Reference To structure by name.

Former Member
0 Likes
939

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

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
897

Why can't you use 'RS_REFRESH_FROM_SELECTOPTIONS'?

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

3 REPLIES 3
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
898

Why can't you use 'RS_REFRESH_FROM_SELECTOPTIONS'?

Read only

Former Member
0 Likes
897

I was not aware that existed, that's awesome.  Thank you very much!

Read only

0 Likes
897

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