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

text elemnts during run time

Former Member
0 Likes
532

Hi all,

is it possible to pass the text elements during run time. I have two text elements and i have swith between those

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
503

Hi,

Do you want to change the label of the parameter??

Check this example..

PARAMETERS: p_check AS CHECKBOX USER-COMMAND usr.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(15) v_text FOR FIELD p_land1.

PARAMETERS: p_land1 TYPE t005-land1.

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.

IF p_check = 'X'.

v_text = 'From country'.

ELSE.

v_text = 'To country'.

ENDIF.

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
503

Hi again,

its in the selection screen of the report.

Thanks

Read only

Former Member
0 Likes
504

Hi,

Do you want to change the label of the parameter??

Check this example..

PARAMETERS: p_check AS CHECKBOX USER-COMMAND usr.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(15) v_text FOR FIELD p_land1.

PARAMETERS: p_land1 TYPE t005-land1.

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.

IF p_check = 'X'.

v_text = 'From country'.

ELSE.

v_text = 'To country'.

ENDIF.

Thanks,

Naren

Read only

0 Likes
503

Hi Naren,

I AM NOT TALKING ABOUT SELECTION TEXTS , IAM TALKING ABOUT THE TEXT SYMBOLS I.E THE TEST YOU A FOR A BOX AST SELECTION SCREEN

*selection-screen : begin of block blk2 with frame title text-002.

IAM TALKING ABOUT TEXT-002.

THANKS

Read only

Former Member
0 Likes
503

Hi,

Try this example for changing Frame title dynamically..

PARAMETERS: p_check AS CHECKBOX USER-COMMAND usr.

SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE <b>v_text</b>.

PARAMETERS: p_matnr TYPE matnr.

SELECTION-SCREEN END OF BLOCK blk2.

AT SELECTION-SCREEN OUTPUT.

IF p_check = 'X'.

v_text = 'From country'.

ELSE.

v_text = 'To country'.

ENDIF.

Thanks,

Naren

Read only

0 Likes
503

Hi Naren,

Thnaks

it solved my problem. I am awarding full points to you

Thanks again