‎2007 Feb 08 4:22 PM
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
‎2007 Feb 08 4:32 PM
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
‎2007 Feb 08 4:28 PM
‎2007 Feb 08 4:32 PM
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
‎2007 Feb 08 4:37 PM
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
‎2007 Feb 08 4:53 PM
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
‎2007 Feb 08 5:50 PM
Hi Naren,
Thnaks
it solved my problem. I am awarding full points to you
Thanks again