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

selection text

0 Likes
682

Hi,

I want to change selection text of a select-option in my program. I don't want to change it in goto->textelement.....

In which table selection text are stored.

5 REPLIES 5
Read only

Former Member
0 Likes
661

Hi

Try this

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (35) s_txt02 FOR FIELD s_werks.
SELECT-OPTIONS: s_werks FOR marc-werks .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1 .

*----------------------------------------------------------------------*
* INITIALIZATION EVENT
*----------------------------------------------------------------------*
INITIALIZATION.
  s_txt02 = 'Plant'(t03).

Read only

Former Member
0 Likes
661

it is NOT wise to do it the way you intend to do it.

Read only

Former Member
0 Likes
661

Bala,

I guess this text not save any where in SAP because its exsistance only at runtime.

Amit.

Read only

0 Likes
661

Hi Rajinikanth .

One thing I forgot to mention is it is 40B version. you can't add select-option in between begin of line and end ofline.

If you comment and select-option , select-option display in next line.

That's why I want to code it in program itself.

Hi floraian,

I have to develop a program where I have to hardcode selection text and text symbols inside.

for text symbols I found solution.

Thanks for your reply.

Read only

0 Likes
661

Amit,

you said it wont' save text any where in SAP because its exsistance only at runtime. How come we are editing selection text in goto->text elements->selection text.

Some where it should be stored, then only it can restore the value.

So, it will store the textsymbols and selection text in some tables.

BM