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: 

Changing Selection Texts

Former Member
0 Kudos

Is it possible to change the selection texts of the select-options while displaying on the selection screen.

Depending on one of the field values(pr_pt) on the screen.

I need to display different selection texts for the two select-options( so_usfd1, so_usfd2) on the screen, say,

1.) If (pr_pt) = A, then (so_usfd1) should b seen on screen as 'Water' and (so_usfd2) should b seen on screen as 'Oil'.

2.) If (pr_pt) = B, then (so_usfd1) should b seen on screen as 'Fat' and (so_usfd2) should b seen on screen as 'Color'.

Plz help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Annie,

As mentioned by Ranganath,

You can use FM

SELECTION_TEXTS_MODIFY..

Pass select option name in RSSELTEXTS-name,

RSSELTEXTS-kind = 'S' and RSSELTEXTS-TEXT = <new text you want to display>.

Regards,

Mohaiyuddin

9 REPLIES 9

Former Member
0 Kudos

In SE38 u go to GOTO in Menu Bar and TEXT ELEMENTS

TEXT ELEMENTS having three options SELECTION TEXT , TEXT SYMBOLS and LIST HEADEING ,

Regards.

Former Member
0 Kudos

u can keep 2 fields ..

if pr_pt) = A then display the first field and second field should be disabled...

pr_pt) = B then second should get displayed and first shoul be disabled.

using

if pr_pt = 'A'.

loop at SCREEN.

if screen-name = 'FIELD2'.

screen-active = 0.

modify screen.

endloop.

elseif pr_pt = 'B'.

loop at SCREEN.

if screen-name = 'FIELD1'.

screen-active = 0.

modify screen.

endloop.

endif.

Former Member
0 Kudos

Hi,

You can got se38. Take the report.

go to->text elements->selection texts*

There you can either type in the text or if you tick the check box the text will be taken from the field description you have given in Se11 for the data element.

Regards,

Renjith Michael.

Former Member
0 Kudos

I can't set it in the se38 selection texts, as it will be fixed I need to pouplate it by the texts stored in one of the transparent tables. And so it needs to be changed during run time depending on the value of the field (pr_pt).

Plz help.

0 Kudos

Hi, store all your req texts ina gloabal variable and call as per your requirement. Based on ur condition call again.

Suku

0 Kudos

Hi

Please check the FM "SELECTION_TEXTS_MODIFY" ... Couldn't find the exact usage of this FM.

Hope this help !

~ Ranganath

Former Member
0 Kudos

Hi Annie,

As mentioned by Ranganath,

You can use FM

SELECTION_TEXTS_MODIFY..

Pass select option name in RSSELTEXTS-name,

RSSELTEXTS-kind = 'S' and RSSELTEXTS-TEXT = <new text you want to display>.

Regards,

Mohaiyuddin

Former Member
0 Kudos

Hi,

If ur unable to write through text elements in SE38 program.

u try second method as follows.

first u write selection text name then u have to create text element like T-001 then double click on that then it directly go to the text elements there u have edit option in application tool bar, u have to select that one and edit the text. then u will get the answer. Here u i am giving example as follows..

S_text = 'WELCOME' T-001

then double click on that then the cursore will go to the text elements there u can write ur own text...

if it is use full answer reward me a points..

praveen

Former Member
0 Kudos

Check this program

REPORT zyh284_test3.

TABLES:

VBAK,

MARA.

PARAMETERS:

p_test(1) TYPE c default '1'.

selection-screen begin of line.

selection-screen comment 2(15) w_text1.

SELECT-OPTIONS: s_vbeln for vbak-vbeln.

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 2(15) w_text2.

SELECT-OPTIONS: s_matnr for mara-matnr.

selection-screen end of line.

at selection-screen output.

IF p_test eq '2'.

w_text1 = 'Water'.

w_text2 = 'Oil'.

ELSEIF p_test eq '1'.

w_text1 = 'Fat'.

w_text2 = 'Color'.

ENDIF.