Application Development 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 TEXTPOOL for selection criteria

Clemenss
Active Contributor
0 Kudos

Hi,

I'm using FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' to get the values entered on selection screen.

My report gets the selection-screen texts using statement READ TEXTPOOL INTO <itab>.

Combining both into a listing allows us to interpret the reports results.

Now, on ECC 600, the READ TEXTPOOL statement returns only the texts of the selection criteria which are not marked as 'Dictionary'.

Is there any simple method to get the missing texts?

TIA.

Regards,

Clemens

6 REPLIES 6

former_member181962
Active Contributor
0 Kudos

Hi Clemens,

Is it happening with only ECC 6? Because i don;t have any problem in ECC 5.0.

More over , the FM RS_REFRESH_FROM_SELECTOPTIONS' does return the texts for the parameters and select-options along with their values.

Regards,

Ravi

0 Kudos

Hi Ravi,

ECC 6 or ECC 5.0, I don't know and do not have the chance to test it right away. But your remark "RS_REFRESH_FROM_SELECTOPTIONS' does return the text" casted some doubt on why I read the textpool. I analyzed and found that in my system RS_REFRESH_FROM_SELECTOPTIONS returns a table parameter of type RSPARAMS. This has only field names and values.

Let me know from where to get the texts.

TIA,

Regards,

Clemens

0 Kudos

Hi Clemens,

what sort of failure are you getting?

here's some code which has worked since about r/3 2.2

DATA IT_TEXTPOOL LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE.

DATA V_MESSAGE_TEXT(132).

READ TEXTPOOL SY-REPID INTO IT_TEXTPOOL LANGUAGE SY-LANGU.

TOP-OF-PAGE.

WRITE:/ SY-TITLE,50 'Time:',SY-UZEIT,'Date:',SY-DATUM.

WRITE: / 'Program:',SY-REPID,65 'Page:',SY-PAGNO.

ULINE.

FIELD-SYMBOLS: <PARAMETER>.

LOOP AT IT_TEXTPOOL WHERE ID = 'S'.

ASSIGN (IT_TEXTPOOL-KEY) TO <PARAMETER>.

CONDENSE IT_TEXTPOOL-ENTRY.

CONCATENATE IT_TEXTPOOL-ENTRY(30) <PARAMETER>

INTO V_MESSAGE_TEXT SEPARATED BY SPACE.

WRITE:/ V_MESSAGE_TEXT.

ENDLOOP.

ULINE.

SKIP.

0 Kudos

Hi Neil,

please read the thread. Thank You.

Regards,

Clemens

0 Kudos

Hi Clemens,

I did read the thread. I think your problem would have been a lot better explained and perhaps you would have got more answers if you had posted the code you have used. A picture is worth a thousand words. I don't have access to an ecc system to check but I find it hard to believe that it has started operating in the way you describe for read text-pool. Is this behaviour documented or is this just your assumption?

Regards

Neil

Clemenss
Active Contributor
0 Kudos

Thank you.